pub(crate) enum ContainerImageOpts {
List {
repo: Utf8PathBuf,
},
Pull {
repo: Utf8PathBuf,
imgref: OstreeImageReference,
ostree_digestfile: Option<Utf8PathBuf>,
proxyopts: ContainerProxyOpts,
quiet: bool,
check: Option<Utf8PathBuf>,
},
History {
repo: Utf8PathBuf,
imgref: ImageReference,
},
Metadata {
repo: Utf8PathBuf,
imgref: ImageReference,
config: bool,
},
ClearCachedUpdate {
repo: Utf8PathBuf,
imgref: ImageReference,
},
Copy {
src_repo: Utf8PathBuf,
dest_repo: Utf8PathBuf,
imgref: OstreeImageReference,
},
Reexport {
repo: Utf8PathBuf,
src_imgref: ImageReference,
dest_imgref: ImageReference,
authfile: Option<PathBuf>,
compression_fast: bool,
},
ReplaceDetachedMetadata {
src: ImageReference,
dest: ImageReference,
contents: Option<Utf8PathBuf>,
},
Remove {
repo: Utf8PathBuf,
imgrefs: Vec<ImageReference>,
skip_gc: bool,
},
PruneLayers {
repo: Utf8PathBuf,
},
PruneImages {
sysroot: Utf8PathBuf,
and_layers: bool,
full: bool,
},
Deploy {Show 13 fields
sysroot: Option<String>,
stateroot: Option<String>,
imgref: Option<String>,
image: Option<String>,
transport: Option<String>,
no_signature_verification: bool,
enforce_container_sigpolicy: bool,
ostree_remote: Option<String>,
proxyopts: ContainerProxyOpts,
target_imgref: Option<OstreeImageReference>,
no_imgref: bool,
karg: Option<Vec<String>>,
write_commitid_to: Option<Utf8PathBuf>,
},
}Expand description
Options for import/export to tar archives.
Variants§
List
List container images
Fields
repo: Utf8PathBufPath to the repository
Pull
Pull (or update) a container image.
Fields
repo: Utf8PathBufPath to the repository
imgref: OstreeImageReferenceImage reference, e.g. ostree-remote-image:someremote:registry:quay.io/exampleos/exampleos:latest
proxyopts: ContainerProxyOptsHistory
Output metadata about an already stored container image.
Fields
repo: Utf8PathBufPath to the repository
imgref: ImageReferenceContainer image reference, e.g. registry:quay.io/exampleos/exampleos:latest
Metadata
Output manifest or configuration for an already stored container image.
Fields
repo: Utf8PathBufPath to the repository
imgref: ImageReferenceContainer image reference, e.g. registry:quay.io/exampleos/exampleos:latest
ClearCachedUpdate
Remove metadata for a cached update.
Fields
repo: Utf8PathBufPath to the repository
imgref: ImageReferenceContainer image reference, e.g. registry:quay.io/exampleos/exampleos:latest
Copy
Copy a pulled container image from one repo to another.
Fields
src_repo: Utf8PathBufPath to the source repository
dest_repo: Utf8PathBufPath to the destination repository
imgref: OstreeImageReferenceImage reference, e.g. ostree-remote-image:someremote:registry:quay.io/exampleos/exampleos:latest
Reexport
Re-export a fetched image.
Unlike encapsulate, this verb handles layered images, and will
also automatically preserve chunked structure from the fetched image.
Fields
repo: Utf8PathBufPath to the repository
src_imgref: ImageReferenceSource image reference, e.g. registry:quay.io/exampleos/exampleos:latest
dest_imgref: ImageReferenceDestination image reference, e.g. registry:quay.io/exampleos/exampleos:latest
ReplaceDetachedMetadata
Replace the detached metadata (e.g. to add a signature)
Remove
Unreference one or more pulled container images and perform a garbage collection.
Fields
repo: Utf8PathBufPath to the repository
imgrefs: Vec<ImageReference>Image reference, e.g. quay.io/exampleos/exampleos:latest
PruneLayers
Garbage collect unreferenced image layer references.
Fields
repo: Utf8PathBufPath to the repository
PruneImages
Garbage collect unreferenced image layer references.
Fields
sysroot: Utf8PathBufPath to the system root
Deploy
Perform initial deployment for a container image
Fields
stateroot: Option<String>Name for the state directory, also known as “osname”.
If the current system is booted via ostree, then this will default to the booted stateroot.
Otherwise, the default is default.
imgref: Option<String>Source image reference, e.g. ostree-remote-image:someremote:registry:quay.io/exampleos/exampleos@sha256:abcd…
This conflicts with --image.
This conflicts with --image. Supports registry:, docker://, oci:, oci-archive:, containers-storage:, and dir:
image: Option<String>Name of the container image; for the registry transport this would be e.g. quay.io/exampleos/foo:latest.
This conflicts with --imgref.
no_signature_verification: boolThis option does nothing and is now deprecated. Signature verification enforcement proved to not be viable.
If you want to still enforce it, use --enforce-container-sigpolicy.
proxyopts: ContainerProxyOptstarget_imgref: Option<OstreeImageReference>Target image reference, e.g. ostree-remote-image:someremote:registry:quay.io/exampleos/exampleos:latest
If specified, --imgref will be used as a source, but this reference will be emitted into the origin
so that later OS updates pull from it.
Trait Implementations§
Source§impl Debug for ContainerImageOpts
impl Debug for ContainerImageOpts
Source§impl FromArgMatches for ContainerImageOpts
impl FromArgMatches for ContainerImageOpts
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 ContainerImageOpts
impl Subcommand for ContainerImageOpts
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 ContainerImageOpts
impl RefUnwindSafe for ContainerImageOpts
impl Send for ContainerImageOpts
impl Sync for ContainerImageOpts
impl Unpin for ContainerImageOpts
impl UnwindSafe for ContainerImageOpts
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§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more