Closed
Description
Overview
The terms "image name" and "repository" can be thought of as interchangeable in the CNCF distribution registry spec (at least how I understand it). There is an API endpoint in the CNCF distribution registry spec for listing all tags for a given image name (aka repository).
GET /v2/<name>/tags/list
For reference:
The return value of this endpoint
{
"name": <name>,
"tags": [
<tag>,
...
]
}
is included in the output of skopeo inspect
in the RepoTags
property.
{
"RepoTags": [
<tag>,
...
]
}
Hence, in order to develop equivalent functionality to skopeo inspect
we must develop client functionality to reach this endpoint.
Acceptance
- A client method in the
ContainerImageRegistryClient
class are written to interact with this API endpoint generically - A method in the
ContainerImage
class is written to list the tags for an image - The
ContainerImageInspect
schema is updated to require theRepoTags
parameter - The
inspect
method in theContainerImage
class is updated to call the list tags method and include it in theContainerImageInspect
dict - Unit tests are written for the new functionality, and the unit tests all pass