[−][src]Struct cage::DefaultTags
This is typically used to incorporate image tags for specific builds generated by a continuous integration system (such as Go).
The on-disk format is a text file with one tagged image name per line:
example.com/app1:30
example.com/app2:57
alpine:4.3
The tags from this file will be used as default tags for these images.
So for example, example.com/app1
would default to
example.com/app1:30
, and alpine
would default to alpine:4.3
.
Methods
impl DefaultTags
[src]
pub fn read<R>(r: R) -> Result<Self> where
R: Read,
[src]
R: Read,
Read in tag defaults from a stream.
pub fn default_for(&self, image: &Image) -> Image
[src]
Default the tag
field of image
if necessary, returning the old
image if possible.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DefaultTags
impl Send for DefaultTags
impl Sync for DefaultTags
impl Unpin for DefaultTags
impl UnwindSafe for DefaultTags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> GetTypeId for T where
T: Any,
T: Any,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Err = <U as TryFrom<T>>::Err
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,