go-imageinspect

APACHE-2.0 License

Stars
15
Committers
3

go-imageinspect

Go library for accessing container images with their associated objects and typed metadata.

Experimental 🧪

This repository is considered EXPERIMENTAL and under active development until further notice. It is subject to non-backward compatible changes or removal in any future version.

Rationale

Image authors are increasingly distributing associated metadata and artifacts alongside their images, such as OCI annotations, SLSA Provenance, SBOMs, signatures, and more. The exact method of storage can differ across the ecosystem, making this information difficult to consume.

This library provides a unified interface for accessing this metadata and ensuring that it can be consumed consistently.

Support

This library supports pulling metadata from the following formats:

Usage

go-imageinspect is intended to be used as a library. However, for development purposes, a simple command line tool is provided for prototyping:

$ docker buildx bake bin
$ ./bin/imageinspect moby/buildkit:latest

Contributing

Want to contribute? Awesome! You can find information about contributing to this project in the CONTRIBUTING.md