Skip to content

Commit

Permalink
spec: catalog operations optional.
Browse files Browse the repository at this point in the history
This commit redefines the `_catalog` endpoint as an optional operation.

Background on the issue:
#22
https://groups.google.com/a/opencontainers.org/forum/#!topic/dev/rJ72OtZuhbc
opencontainers/tob#35
opencontainers/tob#46
opencontainers/tob#50

Signed-off-by: Atlas Kerr <atlaskerr@gmail.com>
  • Loading branch information
bsatlas committed Jan 4, 2019
1 parent 0a02fd5 commit 620c621
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,8 @@ Content-Type: application/json
}
```

Note that the contents of the response are specific to the registry implementation.
Note that catalog operations are optional for registry implementations.
Contents of the response are specific to the registry implementation.
Some registries may opt to provide a full catalog output, limit it based on the user's access level or omit upstream results, if providing mirroring functionality.
Subsequently, the presence of a repository in the catalog listing only means that the registry *may* provide access to the repository at the time of the request.
Conversely, a missing entry does *not* mean that the registry does not have the repository.
Expand Down Expand Up @@ -911,7 +912,7 @@ A list of methods and URIs are covered in the table below:
| PATCH | `/v2/<name>/blobs/uploads/<uuid>` | Blob Upload | Upload a chunk of data for the specified upload. |
| PUT | `/v2/<name>/blobs/uploads/<uuid>` | Blob Upload | Complete the upload specified by `uuid`, optionally appending the body as the final chunk. |
| DELETE | `/v2/<name>/blobs/uploads/<uuid>` | Blob Upload | Cancel outstanding upload processes, releasing associated resources. If this is not called, the unfinished uploads will eventually timeout. |
| GET | `/v2/_catalog` | Catalog | Retrieve a sorted, json list of repositories available in the registry. |
| GET | `/v2/_catalog` | Catalog | (OPTIONAL) Retrieve a sorted, json list of repositories available in the registry. |

The detail for each endpoint is covered in the following sections.

Expand Down Expand Up @@ -4643,7 +4644,7 @@ The error codes that may be included in the response body are enumerated below:
|-------------------|-------------------|---------------------------------------------------------------------|
| `TOOMANYREQUESTS` | too many requests | Returned when a client attempts to contact a service too many times |

### Catalog
### Catalog (OPTIONAL)

List a set of available repositories in the local registry cluster.
Does not provide any indication of what may be available upstream.
Expand Down

0 comments on commit 620c621

Please sign in to comment.