[][src]Struct the_process_foundry::applications::docker_compose::application::DockerCompose

pub struct DockerCompose {
    parent: Option<Rc<dyn ContainerTrait>>,
    instance: AppInstance,
    config: Option<Schema>,
    containers: HashMap<String, DockerContainer>,
}

Fields

parent: Option<Rc<dyn ContainerTrait>>

We want to put the shell/parent container here

instance: AppInstanceconfig: 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 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]

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.

impl Debug for DockerCompose[src]

impl<'de> Deserialize<'de> for DockerCompose[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,