[−][src]Struct the_process_foundry::applications::docker_compose::application::DockerCompose
Fields
parent: Option<Rc<dyn ContainerTrait>>
We want to put the shell/parent container here
instance: AppInstance
config: Option<Schema>
containers: HashMap<String, DockerContainer>
Implementations
impl DockerCompose
[src]
fn get_module_version() -> Result<Version>
[src]
fn get_name(&self) -> String
[src]
fn get_conf(&self) -> Result<Schema>
[src]
pub fn load(&self, config_file: String) -> Result<DockerCompose>
[src]
Load the configuration from an existing yaml file
fn define_container(&self, name: String) -> Result<DockerContainer>
[src]
Private function used to build a container from the schema TODO: Add in result from "docker inspect" if running TODO: If status is "Up", we want to get/set shell
fn _update_status(&mut self, _name: String) -> Result<()>
[src]
Set the status of all the services that this instance knows about
pub fn run_action(&self, action: Action) -> Result<ActionResult>
[src]
pub fn get_container(&self, name: String) -> Result<DockerContainer>
[src]
Trait Implementations
impl AppTrait for DockerCompose
[src]
fn get_name(&self) -> String
[src]
fn build(
instance: AppInstance,
parent: Option<Rc<dyn ContainerTrait>>
) -> Result<DockerCompose>
[src]
instance: AppInstance,
parent: Option<Rc<dyn ContainerTrait>>
) -> Result<DockerCompose>
fn set_version(&self, _instance: AppInstance) -> Result<AppInstance>
[src]
Knows how to get the version number of the installed app (not the module version)
impl Clone for DockerCompose
[src]
fn clone(&self) -> DockerCompose
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ContainerTrait for DockerCompose
[src]
fn find(&self, query: AppQuery) -> Result<Vec<AppInstance>>
[src]
This will find a list of apps with configurations that the container knows about
fn cached_apps(&self) -> Result<Vec<AppInstance>>
[src]
List the known items in the app cache
fn forward(&self, to: AppInstance, message: Message) -> Result<String>
[src]
Send the message to a child item
fn get_name(&self) -> String
[src]
Get the name/version of the container, usually for use in logging/errors.
fn find_one(&self, query: AppQuery) -> Result<AppInstance>
[src]
impl Debug for DockerCompose
[src]
impl<'de> Deserialize<'de> for DockerCompose
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DockerCompose
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DockerCompose
impl !Send for DockerCompose
impl !Sync for DockerCompose
impl Unpin for DockerCompose
impl !UnwindSafe for DockerCompose
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,