pub struct ContainerProperties {
pub image: String,
pub command: Vec<String>,
pub ports: Vec<ContainerPort>,
pub environment_variables: Vec<EnvironmentVariable>,
pub instance_view: Option<InstanceView>,
pub resources: ResourceRequirements,
pub volume_mounts: Vec<VolumeMount>,
pub liveness_probe: Option<ContainerProbe>,
pub readiness_probe: Option<ContainerProbe>,
pub security_context: Option<SecurityContextDefinition>,
}Expand description
The container instance properties.
Fields§
§image: StringThe name of the image used to create the container instance.
command: Vec<String>The commands to execute within the container instance in exec form.
ports: Vec<ContainerPort>The exposed ports on the container instance.
environment_variables: Vec<EnvironmentVariable>The environment variables to set in the container instance.
instance_view: Option<InstanceView>The instance view of the container instance. Only valid in response.
resources: ResourceRequirementsThe resource requirements.
volume_mounts: Vec<VolumeMount>The volume mounts available to the container instance.
liveness_probe: Option<ContainerProbe>The container probe, for liveness or readiness
readiness_probe: Option<ContainerProbe>The container probe, for liveness or readiness
security_context: Option<SecurityContextDefinition>The security context for the container.
Implementations§
Source§impl ContainerProperties
impl ContainerProperties
pub fn new(image: String, resources: ResourceRequirements) -> Self
Trait Implementations§
Source§impl Clone for ContainerProperties
impl Clone for ContainerProperties
Source§fn clone(&self) -> ContainerProperties
fn clone(&self) -> ContainerProperties
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 ContainerProperties
impl Debug for ContainerProperties
Source§impl<'de> Deserialize<'de> for ContainerProperties
impl<'de> Deserialize<'de> for ContainerProperties
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 ContainerProperties
impl PartialEq for ContainerProperties
Source§impl Serialize for ContainerProperties
impl Serialize for ContainerProperties
impl StructuralPartialEq for ContainerProperties
Auto Trait Implementations§
impl Freeze for ContainerProperties
impl RefUnwindSafe for ContainerProperties
impl Send for ContainerProperties
impl Sync for ContainerProperties
impl Unpin for ContainerProperties
impl UnwindSafe for ContainerProperties
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