mirror of
https://github.com/distribution/distribution
synced 2024-11-06 19:35:52 +01:00
Correct documentation errors in urls package
This commit is contained in:
parent
83f882b427
commit
e14e5d14b1
@ -87,7 +87,7 @@ func (ub *URLBuilder) BuildManifestURL(name, tag string) (string, error) {
|
|||||||
return manifestURL.String(), nil
|
return manifestURL.String(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// BuildLayerURL constructs the url for the blob identified by name and dgst.
|
// BuildBlobURL constructs the url for the blob identified by name and dgst.
|
||||||
func (ub *URLBuilder) BuildBlobURL(name string, dgst digest.Digest) (string, error) {
|
func (ub *URLBuilder) BuildBlobURL(name string, dgst digest.Digest) (string, error) {
|
||||||
route := ub.cloneRoute(RouteNameBlob)
|
route := ub.cloneRoute(RouteNameBlob)
|
||||||
|
|
||||||
@ -99,8 +99,8 @@ func (ub *URLBuilder) BuildBlobURL(name string, dgst digest.Digest) (string, err
|
|||||||
return layerURL.String(), nil
|
return layerURL.String(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// BuildBlobURL constructs a url to begin a blob upload in the repository
|
// BuildBlobUploadURL constructs a url to begin a blob upload in the
|
||||||
// identified by name.
|
// repository identified by name.
|
||||||
func (ub *URLBuilder) BuildBlobUploadURL(name string) (string, error) {
|
func (ub *URLBuilder) BuildBlobUploadURL(name string) (string, error) {
|
||||||
route := ub.cloneRoute(RouteNameBlobUpload)
|
route := ub.cloneRoute(RouteNameBlobUpload)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user