[][src]Struct the_process_foundry::applications::docker_container::DockerContainer

pub struct DockerContainer {
    pub status: Status,
    pub instance: AppInstance,
    pub parent: Option<Rc<dyn ContainerTrait>>,
    pub shell: Option<Rc<dyn ContainerTrait>>,
}

Fields

status: Statusinstance: AppInstanceparent: Option<Rc<dyn ContainerTrait>>

The container who owns this instance, and how we send manipulation commands (eg Docker, DockerCompose)

shell: Option<Rc<dyn ContainerTrait>>

The shell to use inside this container when running additional executables

Implementations

impl DockerContainer[src]

pub fn set_parent(
    &self,
    parent: Rc<dyn ContainerTrait>
) -> Result<DockerContainer>
[src]

If we don't have a parent, set it to a local instance of docker TODO: Actually make this happen. Currently already using Docker-Compose

pub fn set_shell(&self, preferred: Option<AppQuery>) -> Result<DockerContainer>[src]

Find and verify the shell on the container

fn get_module_version() -> Result<Version>[src]

fn get_name(&self) -> String[src]

Trait Implementations

impl AppTrait for DockerContainer[src]

impl Clone for DockerContainer[src]

impl ContainerTrait for DockerContainer[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 get_name(&self) -> String[src]

Get the name/version of the container, usually for use in logging/errors.

impl Debug for DockerContainer[src]

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

impl Serialize for DockerContainer[src]

Auto Trait Implementations

impl !RefUnwindSafe for DockerContainer

impl !Send for DockerContainer

impl !Sync for DockerContainer

impl Unpin for DockerContainer

impl !UnwindSafe for DockerContainer

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>,