Struct cage::Sources
[−]
[src]
pub struct Sources { /* fields omitted */ }
All the source trees associated with a project's Docker images.
Methods
impl Sources
[src]
fn iter(&self) -> Iter
Iterate over all source trees associated with this project.
TODO LOW: Replace with IntoIterator.
fn find_by_alias(&self, alias: &str) -> Option<&Source>
Look up a source tree using the short-form local alias.
fn find_by_alias_mut(&mut self, alias: &str) -> Option<&mut Source>
Look up a source tree mutably using the short-form local alias.
fn find_by_context(&self, context: &Context) -> Option<&Source>
Look up a source tree given a git URL.
fn find_by_lib_key(&self, lib_key: &str) -> Option<&Source>
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>
.
fn save_settings(&self, out_dir: &Path) -> Result<()>
Save any state that we want to persist until the next run.