pub struct ContainerProcessDefinition {
pub image: String,
pub name: Option<String>,
pub command: Option<String>,
pub ports: Option<HashMap<String, Value>>,
pub volumes: Option<HashMap<String, Value>>,
pub environment: Option<HashMap<String, String>>,
pub stdin: Option<String>,
pub arguments: Option<Vec<String>>,
pub pull_policy: Option<String>,
pub lifetime: Option<ContainerLifetimeDefinition>,
}Expand description
Represents the configuration of a container process
Fields§
§image: StringGets/sets the name of the container image to run
name: Option<String>Gets/sets the name of the container to run
command: Option<String>Gets/sets the command, if any, to execute on the container
ports: Option<HashMap<String, Value>>Gets/sets a list containing the container’s port mappings, if any
Keys and values can be strings or numbers (matches Go SDK’s map[string]interface{})
volumes: Option<HashMap<String, Value>>Gets/sets the volume mapping for the container, if any
Matches Go SDK’s map[string]interface{} which allows both string and object values
environment: Option<HashMap<String, String>>Gets/sets a key/value mapping of the environment variables, if any, to use when running the configured process
stdin: Option<String>Gets/sets the data to pass to the process via stdin, if any
arguments: Option<Vec<String>>Gets/sets a list of arguments, if any, to pass to the container (argv)
pull_policy: Option<String>Gets/sets the policy that controls how the container’s image should be pulled from the registry
lifetime: Option<ContainerLifetimeDefinition>Gets/sets the configuration of the container’s lifetime
Trait Implementations§
Source§impl Clone for ContainerProcessDefinition
impl Clone for ContainerProcessDefinition
Source§fn clone(&self) -> ContainerProcessDefinition
fn clone(&self) -> ContainerProcessDefinition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContainerProcessDefinition
impl Debug for ContainerProcessDefinition
Source§impl Default for ContainerProcessDefinition
impl Default for ContainerProcessDefinition
Source§fn default() -> ContainerProcessDefinition
fn default() -> ContainerProcessDefinition
Source§impl<'de> Deserialize<'de> for ContainerProcessDefinition
impl<'de> Deserialize<'de> for ContainerProcessDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ContainerProcessDefinition
impl PartialEq for ContainerProcessDefinition
Source§fn eq(&self, other: &ContainerProcessDefinition) -> bool
fn eq(&self, other: &ContainerProcessDefinition) -> bool
self and other values to be equal, and is used by ==.