Crate ostree_ext

Crate ostree_ext 

Source
Expand description

§Extension APIs for ostree

This crate builds on top of the core ostree C library and the Rust bindings to it, adding new functionality written in Rust.

§Key Modules

  • container: Bidirectional mapping between OCI container images and ostree commits. This is the core of bootc’s ability to deploy container images as bootable systems.
  • tar: Lossless export and import of ostree commits as tar archives.
  • sysroot: Extensions for managing ostree deployments.
  • chunking: Splitting ostree commits into layers for efficient container updates.

Re-exports§

pub use composefs;
pub use composefs_boot;
pub use composefs_oci;
pub use containers_image_proxy;
pub use containers_image_proxy::oci_spec;
pub use ostree;
pub use ostree::gio;
pub use ostree::gio::glib;

Modules§

bootabletree
Helper functions for bootable OSTrees.
chunking
Split an OSTree commit into separate chunks
cli
Commandline parsing
commit
This module contains the functions to implement the commit procedures as part of building an ostree container image. https://github.com/ostreedev/ostree-rs-ext/issues/159
container
APIs bridging OSTree and container images
container_utils
Helpers for interacting with containers at runtime.
diff
Compute the difference between two OSTree commits.
fsverity
Integration with fsverity
generic_decompress 🔒
This module primarily contains the Decompressor struct which is used to decompress a stream based on its OCI media type.
globals
Module containing access to global state.
ima
Write IMA signatures to an ostree commit
isolation 🔒
keyfileext
Helper methods for [glib::KeyFile].
logging 🔒
objectsource
Metadata about the source of an object: a component or package.
objgv 🔒
ostree_manual 🔒
Manual workarounds for ostree bugs
ostree_prepareroot
Logic related to parsing ostree-prepare-root.conf.
prelude
Prelude, intended for glob import.
refescape
Escape strings for use in ostree refs.
repo_options
Configuration options for an ostree repository
selinux
SELinux-related helper APIs.
statistics 🔒
This module holds implementations of some basic statistical properties, such as mean and standard deviation.
sysroot
Helpers for interacting with sysroots.
tar
Losslessly export and import ostree commits as tar archives
tokio_util
Helpers for bridging GLib async/mainloop with Tokio.
utils 🔒

Functions§

systemd_has_soft_reboot
Check if the system has the soft reboot target, which signals systemd support for soft reboots.

Type Aliases§

Result 🔒
Our generic catchall fatal error, expected to be converted to a string to output to a terminal or logs.