pub struct ComposeYaml { /* private fields */ }
Implementations§
Source§impl ComposeYaml
impl ComposeYaml
pub fn new(yaml: &str) -> Result<ComposeYaml, Error>
pub fn to_string(&self) -> Result<String, Error>
pub fn get_root_element(&self, element_name: &str) -> Option<&Mapping>
pub fn get_root_element_names(&self, element_name: &str) -> Vec<&str>
pub fn get_services(&self) -> Option<&Mapping>
pub fn get_profiles_names(&self) -> Option<Vec<&str>>
pub fn get_images( &self, filter_by_tag: Option<&str>, tag: Option<&ReplaceTag>, ) -> Option<Vec<String>>
Sourcepub fn update_images_tag(&mut self, replace_tag: &ReplaceTag)
pub fn update_images_tag(&mut self, replace_tag: &ReplaceTag)
Update all services’ image attributes with the tag passed if the tag exists locally or in the remote registry, otherwise the image value is untouched.
pub fn get_service(&self, service_name: &str) -> Option<&Mapping>
pub fn get_service_envs(&self, service: &Mapping) -> Option<Vec<String>>
pub fn get_service_depends_on(&self, service: &Mapping) -> Option<Vec<String>>
Auto Trait Implementations§
impl Freeze for ComposeYaml
impl RefUnwindSafe for ComposeYaml
impl Send for ComposeYaml
impl Sync for ComposeYaml
impl Unpin for ComposeYaml
impl UnwindSafe for ComposeYaml
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