Crate cfsctl

Crate cfsctl 

Source
Expand description

Library for cfsctl command line utility

This crate also re-exports all composefs-rs library crates, so downstream consumers can take a single dependency on cfsctl instead of listing each crate individually.

use cfsctl::composefs::repository::Repository;
use cfsctl::composefs::fsverity::Sha256HashValue;

let repo = Repository::<Sha256HashValue>::open_path(
    rustix::fs::CWD,
    "/nonexistent",
);
assert!(repo.is_err());

Re-exportsยง

pub use composefs;
pub use composefs_boot;
pub use composefs_oci;

Structsยง

App
cfsctl
FsReadOptions ๐Ÿ”’
Common options for reading a filesystem from a path
OCIConfigFilesystemOptions ๐Ÿ”’
Common options for operations using OCI config manifest streams that may transform the image rootfs
OCIConfigOptions ๐Ÿ”’
Common options for operations using OCI config manifest streams

Enumsยง

Command ๐Ÿ”’
HashType
TODO: Hash type
OciCommand ๐Ÿ”’

Functionsยง

open_repo
Open a repo
run_cmd_with_repo
Run with cmd
run_from_iter
Acts as a proxy for the cfsctl CLI by executing the CLI logic programmatically
verity_opt ๐Ÿ”’