Module import

Module import 

Source
Expand description

APIs for extracting OSTree commits from container images

StructsΒ§

ImportStats πŸ”’
Statistics from import.
Importer πŸ”’
Importer machine.
TarImportOptions
Configuration for tar import.

EnumsΒ§

ImporterMode πŸ”’

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-link link target into the corresponding checksum.
validate_metadata_header πŸ”’
Validate size/type of a tar header for OSTree metadata object.
validate_sha256 πŸ”’