Image labels can be created within the Dockerfile with the LABEL instruction.
Although not officially documented, we could get these via the already implemented manifests:
- V2 S1 they are stored in the first element of the
history array, and
- V2 S2 they are stored in the
config array.
On quay.io there's an API endpoint for getting labels, which requires a manifestref that must be fetched via the listRepoTags endpoint first.
Implementation state
Image labels can be created within the Dockerfile with the LABEL instruction.
Although not officially documented, we could get these via the already implemented manifests:
historyarray, andconfigarray.On quay.io there's an API endpoint for getting labels, which requires a manifestref that must be fetched via the listRepoTags endpoint first.
Implementation state
get_labels()method, test and example #59Quay API(calling out to this directly shouldn't go into this crate)