Struct docker_pose::ComposeYaml
source · 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>, remote_tag: Option<&RemoteTag> ) -> Option<Vec<String>>
sourcepub fn update_images_with_remote_tag(&mut self, remote_tag: &RemoteTag)
pub fn update_images_with_remote_tag(&mut self, remote_tag: &RemoteTag)
Update all services’ image attributes with the remote tag passed if the tag exists 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 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