pub struct PushArgs {Show 17 fields
pub source: String,
pub registry: String,
pub repository: String,
pub reference: String,
pub username: Option<String>,
pub password: Option<String>,
pub skip_tls: bool,
pub cache_dir: PathBuf,
pub verbose: bool,
pub timeout: u64,
pub retry_attempts: usize,
pub max_concurrent: usize,
pub large_layer_threshold: u64,
pub skip_existing: bool,
pub force_upload: bool,
pub dry_run: bool,
pub use_concurrent_uploader: bool,
}Expand description
推送镜像的参数
Fields§
§source: String源镜像 (格式: repository:tag 或 tar 文件路径)
registry: String目标 Registry 地址 (默认: https://registry-1.docker.io)
repository: String目标 Repository 名称
reference: String目标标签
username: Option<String>Registry 用户名
password: Option<String>Registry 密码
skip_tls: bool跳过 TLS 证书验证
cache_dir: PathBuf缓存目录 (默认: .cache)
verbose: bool启用详细输出
timeout: u64超时时间(秒)
retry_attempts: usize重试次数
max_concurrent: usize最大并发上传数
large_layer_threshold: u64大层阈值(字节)
skip_existing: bool跳过已存在的层
force_upload: bool强制上传即使层已存在
dry_run: bool验证模式(不实际上传)
use_concurrent_uploader: bool使用高级并发上传器(带动态调节和性能优化)
Implementations§
Trait Implementations§
Source§impl Args for PushArgs
impl Args for PushArgs
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
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for PushArgs
impl FromArgMatches for PushArgs
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>
Assign values from
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>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for PushArgs
impl RefUnwindSafe for PushArgs
impl Send for PushArgs
impl Sync for PushArgs
impl Unpin for PushArgs
impl UnwindSafe for PushArgs
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
Mutably borrows from an owned value. Read more