Skip to content

Develop client functionality for listing tags for a repository #35

Closed
@whatsacomputertho

Description

@whatsacomputertho

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 the RepoTags parameter
  • The inspect method in the ContainerImage class is updated to call the list tags method and include it in the ContainerImageInspect dict
  • Unit tests are written for the new functionality, and the unit tests all pass

Metadata

Metadata

Labels

v1.0.0-beta.1Features & bug fixes to be released in version 1.0.0-alpha.1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions