Struct PodCreateOptions

Source
pub struct PodCreateOptions {
Show 45 fields pub cgroup_parent: Option<String>, pub cni_networks: Option<String>, pub dns_option: Option<Vec<String>>, pub dns_search: Option<Vec<String>>, pub dns_server: Option<Vec<String>>, pub exit_policy: Option<String>, pub hostadd: Option<Vec<String>>, pub hostname: Option<String>, pub hosts_file: Option<String>, pub idmappings: Option<IdMappingOptions>, pub image_volumes: Option<Vec<ImageVolume>>, pub infra_command: Option<Vec<String>>, pub infra_conmon_pid_file: Option<String>, pub infra_image: Option<String>, pub infra_name: Option<String>, pub ipcns: Option<Namespace>, pub labels: Option<HashMap<String, String>>, pub mounts: Option<Vec<VolumeMount>>, pub name: Option<String>, pub netns: Option<Namespace>, pub network_options: Option<HashMap<String, String>>, pub networks: Option<HashMap<String, PerNetworkOptions>>, pub no_infra: Option<bool>, pub no_manage_hostname: Option<bool>, pub no_manage_hosts: Option<bool>, pub no_manage_resolv_conf: Option<bool>, pub overlay_volumes: Option<Vec<OverlayVolume>>, pub pidns: Option<Namespace>, pub pod_create_command: Option<Vec<String>>, pub pod_devices: Option<Vec<String>>, pub portmappings: Option<Vec<PortMapping>>, pub resource_limits: Option<LinuxResources>, pub restart_policy: Option<String>, pub restart_tries: Option<u64>, pub security_opt: Option<Vec<String>>, pub service_container_id: Option<String>, pub share_parent: Option<bool>, pub shared_namespaces: Option<Vec<String>>, pub shm_size: Option<i64>, pub shm_size_systemd: Option<i64>, pub sysctl: Option<HashMap<String, String>>, pub userns: Option<Namespace>, pub utsns: Option<Namespace>, pub volumes: Option<Vec<NamedVolume>>, pub volumes_from: Option<Vec<String>>,
}

Fields§

§cgroup_parent: Option<String>§cni_networks: Option<String>§dns_option: Option<Vec<String>>§dns_search: Option<Vec<String>>§dns_server: Option<Vec<String>>§exit_policy: Option<String>§hostadd: Option<Vec<String>>§hostname: Option<String>§hosts_file: Option<String>§idmappings: Option<IdMappingOptions>§image_volumes: Option<Vec<ImageVolume>>§infra_command: Option<Vec<String>>§infra_conmon_pid_file: Option<String>§infra_image: Option<String>§infra_name: Option<String>§ipcns: Option<Namespace>§labels: Option<HashMap<String, String>>§mounts: Option<Vec<VolumeMount>>§name: Option<String>§netns: Option<Namespace>§network_options: Option<HashMap<String, String>>§networks: Option<HashMap<String, PerNetworkOptions>>§no_infra: Option<bool>§no_manage_hostname: Option<bool>§no_manage_hosts: Option<bool>§no_manage_resolv_conf: Option<bool>§overlay_volumes: Option<Vec<OverlayVolume>>§pidns: Option<Namespace>§pod_create_command: Option<Vec<String>>§pod_devices: Option<Vec<String>>§portmappings: Option<Vec<PortMapping>>§resource_limits: Option<LinuxResources>§restart_policy: Option<String>§restart_tries: Option<u64>§security_opt: Option<Vec<String>>§service_container_id: Option<String>§share_parent: Option<bool>§shared_namespaces: Option<Vec<String>>§shm_size: Option<i64>§shm_size_systemd: Option<i64>§sysctl: Option<HashMap<String, String>>§userns: Option<Namespace>§utsns: Option<Namespace>§volumes: Option<Vec<NamedVolume>>§volumes_from: Option<Vec<String>>

Trait Implementations§

Source§

impl Default for PodCreateOptions

Source§

fn default() -> PodCreateOptions

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for PodCreateOptions

Source§

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 Serialize for PodCreateOptions

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,