Debian Codegraph @

docs/docs.go

raw
1 // Package docs Code generated by swaggo/swag. DO NOT EDIT
2 package docs
3
4 import "github.com/swaggo/swag"
5
6 const docTemplate = `{
7 "schemes": {{ marshal .Schemes }},
8 "swagger": "2.0",
9 "info": {
10 "description": "{{escape .Description}}",
11 "title": "{{.Title}}",
12 "contact": {
13 "name": "Archivista Contributors",
14 "url": "https://github.com/in-toto/archivista/issues/new"
15 },
16 "license": {
17 "url": "https://opensource.org/licenses/Apache-2"
18 },
19 "version": "{{.Version}}"
20 },
21 "host": "{{.Host}}",
22 "basePath": "{{.BasePath}}",
23 "paths": {
24 "/download/{gitoid}": {
25 "get": {
26 "description": "download an attestation",
27 "produces": [
28 "application/json"
29 ],
30 "summary": "Download",
31 "deprecated": true,
32 "parameters": [
33 {
34 "type": "string",
35 "description": "gitoid",
36 "name": "gitoid",
37 "in": "path",
38 "required": true
39 }
40 ],
41 "responses": {
42 "200": {
43 "description": "OK",
44 "schema": {
45 "$ref": "#/definitions/dsse.Envelope"
46 }
47 },
48 "400": {
49 "description": "Bad Request",
50 "schema": {
51 "type": "string"
52 }
53 },
54 "404": {
55 "description": "Not Found"
56 },
57 "500": {
58 "description": "Internal Server Error",
59 "schema": {
60 "type": "string"
61 }
62 }
63 }
64 }
65 },
66 "/upload": {
67 "post": {
68 "description": "stores an attestation",
69 "produces": [
70 "application/json"
71 ],
72 "summary": "Upload",
73 "deprecated": true,
74 "responses": {
75 "200": {
76 "description": "OK",
77 "schema": {
78 "$ref": "#/definitions/api.StoreResponse"
79 }
80 }
81 }
82 }
83 },
84 "/v1/artifacts": {
85 "get": {
86 "description": "retrieves details about all available Artifacts",
87 "produces": [
88 "application/json"
89 ],
90 "tags": [
91 "Artifacts"
92 ],
93 "summary": "List all Artifacts",
94 "responses": {
95 "200": {
96 "description": "OK",
97 "schema": {
98 "type": "object",
99 "additionalProperties": {
100 "$ref": "#/definitions/artifactstore.Artifact"
101 }
102 }
103 },
104 "400": {
105 "description": "Bad Request",
106 "schema": {
107 "type": "string"
108 }
109 },
110 "500": {
111 "description": "Internal Server Error",
112 "schema": {
113 "type": "string"
114 }
115 }
116 }
117 }
118 },
119 "/v1/artifacts/{name}": {
120 "get": {
121 "description": "retrieves details about all available versions of a specified artifact",
122 "produces": [
123 "application/json"
124 ],
125 "tags": [
126 "Artifacts"
127 ],
128 "summary": "List Artifact Versions",
129 "parameters": [
130 {
131 "type": "string",
132 "description": "artifact name",
133 "name": "name",
134 "in": "path",
135 "required": true
136 }
137 ],
138 "responses": {
139 "200": {
140 "description": "OK",
141 "schema": {
142 "type": "object",
143 "additionalProperties": {
144 "$ref": "#/definitions/artifactstore.Version"
145 }
146 }
147 },
148 "400": {
149 "description": "Bad Request",
150 "schema": {
151 "type": "string"
152 }
153 },
154 "500": {
155 "description": "Internal Server Error",
156 "schema": {
157 "type": "string"
158 }
159 }
160 }
161 }
162 },
163 "/v1/artifacts/{name}/{version}": {
164 "get": {
165 "description": "retrieves details about a specified version of an artifact",
166 "produces": [
167 "application/json"
168 ],
169 "tags": [
170 "Artifacts"
171 ],
172 "summary": "Artifact Version Details",
173 "parameters": [
174 {
175 "type": "string",
176 "description": "artifact name",
177 "name": "name",
178 "in": "path",
179 "required": true
180 },
181 {
182 "type": "string",
183 "description": "version of artifact",
184 "name": "version",
185 "in": "path",
186 "required": true
187 }
188 ],
189 "responses": {
190 "200": {
191 "description": "OK",
192 "schema": {
193 "$ref": "#/definitions/artifactstore.Version"
194 }
195 },
196 "400": {
197 "description": "Bad Request",
198 "schema": {
199 "type": "string"
200 }
201 },
202 "404": {
203 "description": "Not Found"
204 },
205 "500": {
206 "description": "Internal Server Error",
207 "schema": {
208 "type": "objecpec"
209 }
210 }
211 }
212 }
213 },
214 "/v1/download/artifact/{name}/{version}/{distribution}": {
215 "get": {
216 "description": "downloads a specified distribution of an artifact",
217 "produces": [
218 "application/octet-stream"
219 ],
220 "tags": [
221 "Artifacts"
222 ],
223 "summary": "Download Artifact",
224 "parameters": [
225 {
226 "type": "string",
227 "description": "name of artifact",
228 "name": "name",
229 "in": "path",
230 "required": true
231 },
232 {
233 "type": "string",
234 "description": "version of artifact to download",
235 "name": "version",
236 "in": "path",
237 "required": true
238 },
239 {
240 "type": "string",
241 "description": "distribution of artifact to download",
242 "name": "distribution",
243 "in": "path",
244 "required": true
245 }
246 ],
247 "responses": {
248 "200": {
249 "description": "OK",
250 "schema": {
251 "type": "file"
252 }
253 },
254 "400": {
255 "description": "Bad Request",
256 "schema": {
257 "type": "string"
258 }
259 },
260 "404": {
261 "description": "Not Found"
262 },
263 "500": {
264 "description": "Internal Server Error",
265 "schema": {
266 "type": "string"
267 }
268 }
269 }
270 }
271 },
272 "/v1/download/{gitoid}": {
273 "get": {
274 "description": "download an attestation",
275 "produces": [
276 "application/json"
277 ],
278 "tags": [
279 "attestation"
280 ],
281 "summary": "Download",
282 "parameters": [
283 {
284 "type": "string",
285 "description": "gitoid",
286 "name": "gitoid",
287 "in": "path",
288 "required": true
289 }
290 ],
291 "responses": {
292 "200": {
293 "description": "OK",
294 "schema": {
295 "$ref": "#/definitions/dsse.Envelope"
296 }
297 },
298 "400": {
299 "description": "Bad Request",
300 "schema": {
301 "type": "string"
302 }
303 },
304 "404": {
305 "description": "Not Found"
306 },
307 "500": {
308 "description": "Internal Server Error",
309 "schema": {
310 "type": "string"
311 }
312 }
313 }
314 }
315 },
316 "/v1/query": {
317 "post": {
318 "description": "GraphQL query",
319 "produces": [
320 "application/json"
321 ],
322 "tags": [
323 "graphql"
324 ],
325 "summary": "Query GraphQL",
326 "responses": {
327 "200": {
328 "description": "OK",
329 "schema": {
330 "$ref": "#/definitions/archivista.Resolver"
331 }
332 }
333 }
334 }
335 },
336 "/v1/upload": {
337 "post": {
338 "description": "stores an attestation",
339 "produces": [
340 "application/json"
341 ],
342 "tags": [
343 "attestation"
344 ],
345 "summary": "Upload",
346 "responses": {
347 "200": {
348 "description": "OK",
349 "schema": {
350 "$ref": "#/definitions/api.StoreResponse"
351 }
352 }
353 }
354 }
355 }
356 },
357 "definitions": {
358 "api.StoreResponse": {
359 "type": "object",
360 "properties": {
361 "gitoid": {
362 "type": "string"
363 }
364 }
365 },
366 "archivista.Resolver": {
367 "type": "object"
368 },
369 "artifactstore.Artifact": {
370 "type": "object",
371 "properties": {
372 "versions": {
373 "type": "object",
374 "additionalProperties": {
375 "$ref": "#/definitions/artifactstore.Version"
376 }
377 }
378 }
379 },
380 "artifactstore.Distribution": {
381 "type": "object",
382 "properties": {
383 "sha256digest": {
384 "type": "string"
385 }
386 }
387 },
388 "artifactstore.Version": {
389 "type": "object",
390 "properties": {
391 "description": {
392 "type": "string"
393 },
394 "distributions": {
395 "type": "object",
396 "additionalProperties": {
397 "$ref": "#/definitions/artifactstore.Distribution"
398 }
399 }
400 }
401 },
402 "dsse.Envelope": {
403 "type": "object",
404 "properties": {
405 "payload": {
406 "type": "array",
407 "items": {
408 "type": "integer"
409 }
410 },
411 "payloadType": {
412 "type": "string"
413 },
414 "signatures": {
415 "type": "array",
416 "items": {
417 "$ref": "#/definitions/dsse.Signature"
418 }
419 }
420 }
421 },
422 "dsse.Signature": {
423 "type": "object",
424 "properties": {
425 "certificate": {
426 "type": "array",
427 "items": {
428 "type": "integer"
429 }
430 },
431 "intermediates": {
432 "type": "array",
433 "items": {
434 "type": "array",
435 "items": {
436 "type": "integer"
437 }
438 }
439 },
440 "keyid": {
441 "type": "string"
442 },
443 "sig": {
444 "type": "array",
445 "items": {
446 "type": "integer"
447 }
448 },
449 "timestamps": {
450 "type": "array",
451 "items": {
452 "$ref": "#/definitions/dsse.SignatureTimestamp"
453 }
454 }
455 }
456 },
457 "dsse.SignatureTimestamp": {
458 "type": "object",
459 "properties": {
460 "data": {
461 "type": "array",
462 "items": {
463 "type": "integer"
464 }
465 },
466 "type": {
467 "$ref": "#/definitions/dsse.SignatureTimestampType"
468 }
469 }
470 },
471 "dsse.SignatureTimestampType": {
472 "type": "string",
473 "enum": [
474 "tsp"
475 ],
476 "x-enum-varnames": [
477 "TimestampRFC3161"
478 ]
479 }
480 }
481 }`
482
483 // SwaggerInfo holds exported Swagger Info so clients can modify it
484 var SwaggerInfo = &swag.Spec{
485 Version: "v1",
486 Host: "",
487 BasePath: "",
488 Schemes: []string{},
489 Title: "Archivista API",
490 Description: "Archivista API",
491 InfoInstanceName: "swagger",
492 SwaggerTemplate: docTemplate,
493 LeftDelim: "{{",
494 RightDelim: "}}",
495 }
496
497 func init() {
498 swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
499 }