pub struct Args {Show 14 fields
pub file: String,
pub repository_url: String,
pub username: Option<String>,
pub password: Option<String>,
pub timeout: u64,
pub skip_tls: bool,
pub verbose: bool,
pub quiet: bool,
pub dry_run: bool,
pub large_layer_threshold: u64,
pub max_concurrent: usize,
pub retry_attempts: usize,
pub skip_existing: bool,
pub force_upload: bool,
}Fields§
§file: StringPath to the Docker image tar file
repository_url: StringRepository URL (e.g., https://registry.example.com/my-app:latest)
username: Option<String>Registry username
password: Option<String>Registry password
timeout: u64Timeout in seconds for uploads (default: 7200)
skip_tls: boolSkip TLS certificate verification
verbose: boolEnable verbose output
quiet: boolSuppress all output except errors
dry_run: boolPerform a dry run without actually uploading
large_layer_threshold: u64Threshold for large layer optimization in bytes (default: 1GB)
max_concurrent: usizeMaximum concurrent uploads (default: 1)
retry_attempts: usizeNumber of retry attempts for failed uploads (default: 3)
skip_existing: boolSkip uploading layers that already exist in the registry
force_upload: boolForce upload even if layers already exist
Implementations§
Source§impl Args
impl Args
Sourcepub fn parse() -> Self
pub fn parse() -> Self
Parse command line arguments using clap This will exit the process if parsing fails (clap’s default behavior)
Sourcepub fn try_parse() -> Result<Self>
pub fn try_parse() -> Result<Self>
Try to parse command line arguments, returning a Result Use this when you want to handle parsing errors yourself
pub fn validate(&self) -> Result<()>
pub fn get_file_size(&self) -> Result<u64>
pub fn has_credentials(&self) -> bool
pub fn get_credentials(&self) -> Option<(String, String)>
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.