[][src]Struct cage::Sources

pub struct Sources { /* fields omitted */ }

All the source trees associated with a project's Docker images.

Implementations

impl Sources[src]

pub fn iter(&self) -> Iter<'_>

Notable traits for Iter<'a>

impl<'a> Iterator for Iter<'a> type Item = &'a Source;
[src]

Iterate over all source trees associated with this project.

TODO LOW: Replace with IntoIterator.

pub fn iter_mut(&mut self) -> IterMut<'_>[src]

Iterate over all source trees associated with this project.

pub fn find_by_alias(&self, alias: &str) -> Option<&Source>[src]

Look up a source tree using the short-form local alias.

pub fn find_by_alias_mut(&mut self, alias: &str) -> Option<&mut Source>[src]

Look up a source tree mutably using the short-form local alias.

pub fn find_by_context(&self, context: &Context) -> Option<&Source>[src]

Look up a source tree given a git URL.

pub fn find_by_lib_key(&self, lib_key: &str) -> Option<&Source>[src]

Look up a source tree using a "lib key", which is key used in config/sources.yml and with service labels of the form io.fdy.cage.lib.<KEY>.

pub fn find_by_lib_key_mut(&mut self, lib_key: &str) -> Option<&mut Source>[src]

Look up a source tree using a "lib key", which is key used in config/sources.yml and with service labels of the form io.fdy.cage.lib.<KEY>.

pub fn save_settings(&self, out_dir: &Path) -> Result<()>[src]

Save any state that we want to persist until the next run.

Trait Implementations

impl Debug for Sources[src]

Auto Trait Implementations

impl RefUnwindSafe for Sources

impl Send for Sources

impl Sync for Sources

impl Unpin for Sources

impl UnwindSafe for Sources

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>,