Module encapsulate

Module encapsulate 

Source
Expand description

APIs for creating container images from OSTree commits

StructsΒ§

Config
Configuration for the generated container.
ExportOpts
Options controlling commit export into OCI

ConstantsΒ§

BLOB_OSTREE_ANNOTATION πŸ”’
Annotation injected into the layer to say that this is an ostree commit. However, because this gets lost when converted to D2S2 https://docs.docker.com/registry/spec/manifest-v2-2/ schema, it’s not actually useful today. But, we keep it out of principle.
BOOTC_LABEL
The label for bootc.
DIFFID_LABEL
The label which indicates where the ostree layers stop, and the derived ones start.
LEGACY_VERSION_LABEL
The label which may be used in addition to the standard OCI label.

FunctionsΒ§

build_impl πŸ”’
Helper for build() that avoids generics
build_oci πŸ”’
Generate an OCI image from a given ostree root
commit_meta_to_labels πŸ”’
encapsulate
Given an OSTree repository and ref, generate a container image.
export_chunked πŸ”’
Write an ostree commit to an OCI blob
export_chunks πŸ”’
parse_oci_path_and_tag πŸ”’
Interpret a filesystem path as optionally including a tag. Paths such as /foo/bar will return ("/foo/bar", None), whereas e.g. /foo/bar:latestwill return(β€œ/foo/bar”, Some(β€œlatest”))`.