Module ostree_ext::container::store
source · Expand description
APIs for storing (layered) container images as OSTree commits
§Extension of encapsulation support
This code supports ingesting arbitrary layered container images from an ostree-exported
base. See encapsulate
for more information on encaspulation of images.
Structs§
- Locally cached metadata for an update to an existing image.
- Context for importing a container image.
- Configuration for the proxy.
- Sent across a channel to track the byte-level progress of a layer fetch.
- State of an already pulled layered image.
- A container image layer with associated downloaded-or-not state.
- Information about which layers need to be downloaded.
Enums§
- Sent across a channel to track start and end of a container fetch.
- Result of invoking
ImageImporter::prepare
.
Constants§
- The ostree ref prefix for “base” image references that are used by derived images. If you maintain tooling which is locally building derived commits, write a ref with this prefix that is owned by your code. It’s a best practice to prefix the ref with the project name, so the final ref may be of the form e.g.
ostree/container/baseimage/bootc/foo
. - Value of type
a{sa{su}}
containing number of filtered out files
Functions§
- Copy a downloaded image from one repository to another, while also optionally changing the image reference type.
- Garbage collect unused image layer references.
- Given an image, if it has any non-ostree compatible content, return a suitable warning message.
- List all images stored
- Return the original digest of the manifest stored in the commit metadata. This will be a string of the form e.g.
sha256:<digest>
. - Query metadata for a pulled image.
- Query metadata for a pulled image via an OSTree commit digest. The digest must refer to a pulled container image’s merge commit.
- Remove the specified image reference. If the image is already not present, this function will successfully perform no operation.
- Remove the specified image references. If an image is not found, further images will be removed, but an error will be returned.
Type Aliases§
- The type used to store content filtering information with
META_FILTERED
.