pub struct ReplaceTag {
pub tag: String,
pub tag_filter: Option<(Regex, bool)>,
pub ignore_unauthorized: bool,
pub no_slug: bool,
pub offline: bool,
pub verbosity: Verbosity,
pub progress_verbosity: Verbosity,
pub threads: u8,
}
Fields§
§tag: String
replace tag with local or remote tag if exists
tag_filter: Option<(Regex, bool)>
don’t replace with tag unless this regex matches the image name / tag, in case the bool is false, the replacing is done if the regex doesn’t match
docker may require to be logged-in to fetch some images info, with
true
unauthorized errors are ignored
no_slug: bool
Don’t slugify the value from tag.
offline: bool
only check tag with the local docker registry
verbosity: Verbosity
verbosity used when fetching remote images info
progress_verbosity: Verbosity
show tags found while they are fetched
threads: u8
max number of threads used to fetch remote images info
Implementations§
Source§impl ReplaceTag
impl ReplaceTag
pub fn get_remote_tag(&self) -> String
Trait Implementations§
Source§impl Clone for ReplaceTag
impl Clone for ReplaceTag
Source§fn clone(&self) -> ReplaceTag
fn clone(&self) -> ReplaceTag
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ReplaceTag
impl RefUnwindSafe for ReplaceTag
impl Send for ReplaceTag
impl Sync for ReplaceTag
impl Unpin for ReplaceTag
impl UnwindSafe for ReplaceTag
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