#[non_exhaustive]pub struct ContainerdConfig {
pub private_registry_access_config: Option<PrivateRegistryAccessConfig>,
pub writable_cgroups: Option<WritableCgroups>,
/* private fields */
}Expand description
ContainerdConfig contains configuration to customize containerd.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.private_registry_access_config: Option<PrivateRegistryAccessConfig>PrivateRegistryAccessConfig is used to configure access configuration for private container registries.
writable_cgroups: Option<WritableCgroups>Optional. WritableCgroups defines writable cgroups configuration for the node pool.
Implementations§
Source§impl ContainerdConfig
impl ContainerdConfig
pub fn new() -> Self
Sourcepub fn set_private_registry_access_config<T>(self, v: T) -> Selfwhere
T: Into<PrivateRegistryAccessConfig>,
pub fn set_private_registry_access_config<T>(self, v: T) -> Selfwhere
T: Into<PrivateRegistryAccessConfig>,
Sets the value of private_registry_access_config.
Sourcepub fn set_or_clear_private_registry_access_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<PrivateRegistryAccessConfig>,
pub fn set_or_clear_private_registry_access_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<PrivateRegistryAccessConfig>,
Sets or clears the value of private_registry_access_config.
Sourcepub fn set_writable_cgroups<T>(self, v: T) -> Selfwhere
T: Into<WritableCgroups>,
pub fn set_writable_cgroups<T>(self, v: T) -> Selfwhere
T: Into<WritableCgroups>,
Sets the value of writable_cgroups.
Sourcepub fn set_or_clear_writable_cgroups<T>(self, v: Option<T>) -> Selfwhere
T: Into<WritableCgroups>,
pub fn set_or_clear_writable_cgroups<T>(self, v: Option<T>) -> Selfwhere
T: Into<WritableCgroups>,
Sets or clears the value of writable_cgroups.
Trait Implementations§
Source§impl Clone for ContainerdConfig
impl Clone for ContainerdConfig
Source§fn clone(&self) -> ContainerdConfig
fn clone(&self) -> ContainerdConfig
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 ContainerdConfig
impl Debug for ContainerdConfig
Source§impl Default for ContainerdConfig
impl Default for ContainerdConfig
Source§fn default() -> ContainerdConfig
fn default() -> ContainerdConfig
Returns the “default value” for a type. Read more
Source§impl Message for ContainerdConfig
impl Message for ContainerdConfig
Source§impl PartialEq for ContainerdConfig
impl PartialEq for ContainerdConfig
impl StructuralPartialEq for ContainerdConfig
Auto Trait Implementations§
impl Freeze for ContainerdConfig
impl RefUnwindSafe for ContainerdConfig
impl Send for ContainerdConfig
impl Sync for ContainerdConfig
impl Unpin for ContainerdConfig
impl UnwindSafe for ContainerdConfig
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