pub struct DockerConfig {Show 13 fields
pub allow_internet_access: bool,
pub command: Option<Vec<String>>,
pub cpu_cores: f32,
pub environment: Vec<EnvironmentVariable>,
pub image: String,
pub registry_username: Option<String>,
pub registry_password: Option<String>,
pub registry_type: RegistryType,
pub ports: Vec<String>,
pub ram_mb: i32,
pub ram_mb_min: i32,
pub service_account: Option<String>,
pub labels: Vec<EnvironmentVariable>,
}
Expand description
Docker Container Configuration
Fields§
§allow_internet_access: bool
Does the container have internet-access?
command: Option<Vec<String>>
Command to run when container starts up.
cpu_cores: f32
CPU allocation
environment: Vec<EnvironmentVariable>
Additional environemnt variables for the container
image: String
Complete name of the Docker image with tag, may include registry
registry_username: Option<String>
The username to use when pulling the image
registry_password: Option<String>
The password or token to use when pulling the image
registry_type: RegistryType
The type of container registry
ports: Vec<String>
What ports of container to expose?
ram_mb: i32
Container RAM limit
ram_mb_min: i32
Container RAM request
service_account: Option<String>
Service account to use for pods in kubernetes
labels: Vec<EnvironmentVariable>
Additional container labels.
Trait Implementations§
Source§impl Clone for DockerConfig
impl Clone for DockerConfig
Source§fn clone(&self) -> DockerConfig
fn clone(&self) -> DockerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DockerConfig
impl Debug for DockerConfig
Source§impl Described<ElasticMeta> for DockerConfig
impl Described<ElasticMeta> for DockerConfig
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
Source§impl<'de> Deserialize<'de> for DockerConfig
impl<'de> Deserialize<'de> for DockerConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DockerConfig
impl PartialEq for DockerConfig
Source§impl Serialize for DockerConfig
impl Serialize for DockerConfig
impl StructuralPartialEq for DockerConfig
Auto Trait Implementations§
impl Freeze for DockerConfig
impl RefUnwindSafe for DockerConfig
impl Send for DockerConfig
impl Sync for DockerConfig
impl Unpin for DockerConfig
impl UnwindSafe for DockerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more