This base extension namespace for OCI namespaced extension endpoints.
This component is for endpoints relating to extensions on the registry API being queried.
This endpoint may be queried to discover extensions available on this registry API.
Registry-level extensions may be discovered with a standard GET
as follows.
GET /v2/_oci/ext/discover
Repository-level extensions may be discovered with a standard GET as follows.
GET /v2/{name}/_oci/ext/discover
The base extension returns an array of supported extensions with details of the endpoints as shown below.
200 OK
Content-Length: <length>
Content-Type: application/json
{
"extensions": [
{
"name": "_<extension>",
"description": "",
"url": "..."
}
]
}
-
extensions
array of extension objects, REQUIREDThis property contains a list of supported extension endpoints.
-
name
string, REQUIREDThe name of the extension (i.e. '
_oci
') as it will appear in the URL path. -
url
string, REQUIREDURL link to the documentation defining this extension and its endpoints.
-
description
string, OPTIONALHuman readable description of this endpoint.
-
endpoints
array of strings, REQUIREDEnumeration of the endpoints provided on this registry (as not all "OPTIONAL" endpoints may be present in all registries)
-
Golang structures for these JSON structures is available at github.com/opencontainers/distribution-spec/specs-go/v1/extensions
Registry implementations MAY chose to not support any extension and the base extension MAY return the following error message.
Code | Message | Description |
---|---|---|
UNSUPPORTED |
The operation is unsupported. | The operation was unsupported due to a missing implementation or invalid set of parameters. |