mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 02:12:36 +02:00
Add an utility to retrieve manifest info
This commit is contained in:
parent
5817650633
commit
bcd1ec2173
1 changed files with 10 additions and 0 deletions
|
@ -209,6 +209,16 @@ def list_tags(image):
|
||||||
click.echo(tag)
|
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()
|
@main.command()
|
||||||
@click.argument("image")
|
@click.argument("image")
|
||||||
@click.option(
|
@click.option(
|
||||||
|
|
Loading…
Reference in a new issue