Versions in this module Expand all Collapse all v0 v0.5.0 Feb 5, 2016 Changes in this version + const RouteNameBase + const RouteNameBlob + const RouteNameBlobUpload + const RouteNameBlobUploadChunk + const RouteNameCatalog + const RouteNameManifest + const RouteNameTags + var APIDescriptor = struct{ ... } + var ErrorCodeBlobUnknown = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeBlobUploadInvalid = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeBlobUploadUnknown = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeDigestInvalid = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeManifestBlobUnknown = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeManifestInvalid = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeManifestUnknown = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeManifestUnverified = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeNameInvalid = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeNameUnknown = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeSizeInvalid = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + var ErrorCodeTagInvalid = errcode.Register(errGroup, errcode.ErrorDescriptor{ ... }) + func Router() *mux.Router + func RouterWithPrefix(prefix string) *mux.Router + type BodyDescriptor struct + ContentType string + Format string + type MethodDescriptor struct + Description string + Method string + Requests []RequestDescriptor + type ParameterDescriptor struct + Description string + Examples []string + Format string + Name string + Regexp *regexp.Regexp + Required bool + Type string + type RequestDescriptor struct + Body BodyDescriptor + Description string + Failures []ResponseDescriptor + Headers []ParameterDescriptor + Name string + PathParameters []ParameterDescriptor + QueryParameters []ParameterDescriptor + Successes []ResponseDescriptor + type ResponseDescriptor struct + Body BodyDescriptor + Description string + ErrorCodes []errcode.ErrorCode + Fields []ParameterDescriptor + Headers []ParameterDescriptor + Name string + StatusCode int + type RouteDescriptor struct + Description string + Entity string + Methods []MethodDescriptor + Name string + Path string + type URLBuilder struct + func NewURLBuilder(root *url.URL) *URLBuilder + func NewURLBuilderFromRequest(r *http.Request) *URLBuilder + func NewURLBuilderFromString(root string) (*URLBuilder, error) + func (ub *URLBuilder) BuildBaseURL() (string, error) + func (ub *URLBuilder) BuildBlobURL(name string, dgst digest.Digest) (string, error) + func (ub *URLBuilder) BuildBlobUploadChunkURL(name, uuid string, values ...url.Values) (string, error) + func (ub *URLBuilder) BuildBlobUploadURL(name string, values ...url.Values) (string, error) + func (ub *URLBuilder) BuildCatalogURL(values ...url.Values) (string, error) + func (ub *URLBuilder) BuildManifestURL(name, reference string) (string, error) + func (ub *URLBuilder) BuildTagsURL(name string) (string, error)