pub(crate) enum Command {
Transaction,
Cat {
name: String,
},
GC {
root: Vec<String>,
dry_run: bool,
},
ImportImage {
reference: String,
},
Oci {
cmd: OciCommand,
},
Mount {
name: String,
mountpoint: String,
},
CreateImage {
fs_opts: FsReadOptions,
image_name: Option<String>,
},
ComputeId {
fs_opts: FsReadOptions,
},
CreateDumpfile {
fs_opts: FsReadOptions,
},
ImageObjects {
name: String,
},
}Variants§
Transaction
Take a transaction lock on the repository. This prevents garbage collection from occurring.
Cat
Reconstitutes a split stream and writes it to stdout
Fields
GC
Perform garbage collection
Fields
ImportImage
Imports a composefs image (unsafe!)
Oci
Commands for dealing with OCI images and layers
Fields
cmd: OciCommandMount
Mounts a composefs image, possibly enforcing fsverity of the image
Fields
CreateImage
Read rootfs located at a path, add all files to the repo, then create the composefs image of the rootfs, commit it to the repo, and print its image object ID
Fields
fs_opts: FsReadOptionsComputeId
Read rootfs located at a path, add all files to the repo, then compute the composefs image object id of the rootfs. Note that this does not create or commit the composefs image itself.
Fields
fs_opts: FsReadOptionsCreateDumpfile
Read rootfs located at a path, add all files to the repo, then dump full content of the rootfs to a composefs dumpfile and write to stdout.
Fields
fs_opts: FsReadOptionsImageObjects
Lists all object IDs referenced by an image
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more