Expand description
APIs for creating container images from OSTree commits
StructsΒ§
- Config
- Configuration for the generated container.
- Export
Opts - 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/barwill return("/foo/bar", None), whereas e.g./foo/bar:latestwill return(β/foo/barβ, Some(βlatestβ))`.