Update API spec to reference digest instead of tarsum
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
parent
80abf9fce0
commit
6fbda8fa26
1 changed files with 5 additions and 5 deletions
|
@ -135,7 +135,7 @@ const (
|
||||||
"tag": <tag>,
|
"tag": <tag>,
|
||||||
"fsLayers": [
|
"fsLayers": [
|
||||||
{
|
{
|
||||||
"blobSum": <tarsum>
|
"blobSum": "<digest>"
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
|
@ -606,7 +606,7 @@ var routeDescriptors = []RouteDescriptor{
|
||||||
"code": "BLOB_UNKNOWN",
|
"code": "BLOB_UNKNOWN",
|
||||||
"message": "blob unknown to registry",
|
"message": "blob unknown to registry",
|
||||||
"detail": {
|
"detail": {
|
||||||
"digest": <tarsum>
|
"digest": "<digest>"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
...
|
...
|
||||||
|
@ -712,7 +712,7 @@ var routeDescriptors = []RouteDescriptor{
|
||||||
Name: RouteNameBlob,
|
Name: RouteNameBlob,
|
||||||
Path: "/v2/{name:" + RepositoryNameRegexp.String() + "}/blobs/{digest:" + digest.DigestRegexp.String() + "}",
|
Path: "/v2/{name:" + RepositoryNameRegexp.String() + "}/blobs/{digest:" + digest.DigestRegexp.String() + "}",
|
||||||
Entity: "Blob",
|
Entity: "Blob",
|
||||||
Description: "Fetch the blob identified by `name` and `digest`. Used to fetch layers by tarsum digest.",
|
Description: "Fetch the blob identified by `name` and `digest`. Used to fetch layers by digest.",
|
||||||
Methods: []MethodDescriptor{
|
Methods: []MethodDescriptor{
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -898,7 +898,7 @@ var routeDescriptors = []RouteDescriptor{
|
||||||
{
|
{
|
||||||
Name: "digest",
|
Name: "digest",
|
||||||
Type: "query",
|
Type: "query",
|
||||||
Format: "<tarsum>",
|
Format: "<digest>",
|
||||||
Regexp: digest.DigestRegexp,
|
Regexp: digest.DigestRegexp,
|
||||||
Description: `Digest of uploaded blob. If present, the upload will be completed, in a single request, with contents of the request body as the resulting blob.`,
|
Description: `Digest of uploaded blob. If present, the upload will be completed, in a single request, with contents of the request body as the resulting blob.`,
|
||||||
},
|
},
|
||||||
|
@ -1173,7 +1173,7 @@ var routeDescriptors = []RouteDescriptor{
|
||||||
{
|
{
|
||||||
Name: "digest",
|
Name: "digest",
|
||||||
Type: "string",
|
Type: "string",
|
||||||
Format: "<tarsum>",
|
Format: "<digest>",
|
||||||
Regexp: digest.DigestRegexp,
|
Regexp: digest.DigestRegexp,
|
||||||
Required: true,
|
Required: true,
|
||||||
Description: `Digest of uploaded blob.`,
|
Description: `Digest of uploaded blob.`,
|
||||||
|
|
Loading…
Reference in a new issue