[][src]Struct cage::DefaultTags

pub struct DefaultTags { /* fields omitted */ }

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]

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

impl Debug for DefaultTags[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> GetTypeId for T where
    T: Any

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,