pub enum ImageRef<'scope> {
Remote(Cow<'scope, Reference>),
LocalTar(Cow<'scope, Path>),
Other(Cow<'scope, str>),
}Expand description
An image ref that could reference a remote registry or a local tarball.
Variants§
Implementations§
Source§impl<'scope> ImageRef<'scope>
impl<'scope> ImageRef<'scope>
pub fn remote_ref(&self) -> Option<&Reference>
pub fn with_platform(&'scope self, platform: Platform) -> Self
Sourcepub fn append_tag(&self, value: &Tag) -> Self
pub fn append_tag(&self, value: &Tag) -> Self
Appends a value to the end of a tag.
If the ref is a tarball, it will append it to the file stem. If it’s other, it will append to the end of the value.
Trait Implementations§
Auto Trait Implementations§
impl<'scope> Freeze for ImageRef<'scope>
impl<'scope> RefUnwindSafe for ImageRef<'scope>
impl<'scope> Send for ImageRef<'scope>
impl<'scope> Sync for ImageRef<'scope>
impl<'scope> Unpin for ImageRef<'scope>
impl<'scope> UnsafeUnpin for ImageRef<'scope>
impl<'scope> UnwindSafe for ImageRef<'scope>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.