mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Add an utility to retrieve manifest info
This commit is contained in:
parent
66ac7e56f8
commit
1ea76ded9b
1 changed files with 10 additions and 0 deletions
|
@ -209,6 +209,16 @@ def list_tags(image):
|
|||
click.echo(tag)
|
||||
|
||||
|
||||
@main.command()
|
||||
@click.argument("image")
|
||||
@click.argument("tag")
|
||||
def get_manifest(image, tag):
|
||||
registry, org, package, _ = parse_image_location(image)
|
||||
client = RegistryClient(registry, org, package)
|
||||
resp = client.get_manifest(tag, extra_headers={"Accept": OCI_IMAGE_MANIFEST})
|
||||
click.echo(resp.content)
|
||||
|
||||
|
||||
@main.command()
|
||||
@click.argument("image")
|
||||
@click.option(
|
||||
|
|
Loading…
Reference in a new issue