Expand description
APIs for extracting OSTree commits from container images
StructsΒ§
- Import
Stats π - Statistics from import.
- Importer π
- Importer machine.
- TarImport
Options - Configuration for tar import.
EnumsΒ§
- Importer
Mode π
ConstantsΒ§
- MAX_
METADATA_ πSIZE - Limit on metadata objects (dirtree/dirmeta); this is copied from ostree-core.h. TODO: Bind this in introspection
- MAX_
XATTR_ πSIZE - Arbitrary limit on xattrs to avoid RAM exhaustion attacks. The actual filesystem limits are often much smaller.
- REPO_
PREFIX π - SMALL_
REGFILE_ πSIZE - Upper size limit for βsmallβ regular files.
FunctionsΒ§
- entry_
to_ πvariant - Given a tar entry, read it all into a GVariant
- header_
attrs π - import_
tar - Read the contents of a tarball and import the ostree commit inside. Returns the sha256 of the imported commit.
- import_
tar_ objects - Read the contents of a tarball and import the content objects inside. Generates a synthetic commit object referencing them.
- objtype_
from_ πstring - parse_
checksum π - parse_
object_ πentry_ path - Parse an object path into (parent, rest, objtype).
- parse_
xattrs_ πlink_ target - Parse a
.file-xattrs-linklink target into the corresponding checksum. - validate_
metadata_ πheader - Validate size/type of a tar header for OSTree metadata object.
- validate_
sha256 π