api/docs.go (133 lines of code) (raw):
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
// Package api Code generated by swaggo/swag. DO NOT EDIT
package api
import "github.com/swaggo/swag"
const docTemplate = `{
"schemes": {{ marshal .Schemes }},
"swagger": "2.0",
"info": {
"description": "{{escape .Description}}",
"title": "{{.Title}}",
"contact": {},
"version": "{{.Version}}"
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/blobs/{url}": {
"get": {
"summary": "Get a blob by URL",
"parameters": [
{
"type": "string",
"description": "The URL of the blob",
"name": "url",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "The blob content",
"schema": {
"type": "string"
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "string"
}
}
}
}
},
"/v2/{repo}/blobs/{digest}": {
"get": {
"summary": "Get a manifest or a blob by repository and reference or digest",
"parameters": [
{
"type": "string",
"description": "The repository name",
"name": "repo",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The digest of the blob",
"name": "digest",
"in": "path"
}
],
"responses": {
"200": {
"description": "The manifest or blob information",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "string"
}
}
}
}
},
"/v2/{repo}/manifests/{reference}": {
"get": {
"summary": "Get a manifest or a blob by repository and reference or digest",
"parameters": [
{
"type": "string",
"description": "The repository name",
"name": "repo",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The reference of the manifest",
"name": "reference",
"in": "path"
}
],
"responses": {
"200": {
"description": "The manifest or blob information",
"schema": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"404": {
"description": "Not Found",
"schema": {
"type": "string"
}
}
}
}
}
}
}`
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "",
Host: "",
BasePath: "",
Schemes: []string{},
Title: "",
Description: "",
InfoInstanceName: "swagger",
SwaggerTemplate: docTemplate,
LeftDelim: "{{",
RightDelim: "}}",
}
func init() {
swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
}