Struct InspectPodInfraConfig

Source
pub struct InspectPodInfraConfig {
Show 18 fields pub dns_option: Option<Vec<String>>, pub dns_search: Option<Vec<String>>, pub dns_server: Option<Vec<String>>, pub host_add: Option<Vec<String>>, pub host_network: Option<bool>, pub network_options: Option<HashMap<String, Vec<String>>>, pub networks: Option<Vec<String>>, pub no_manage_hosts: Option<bool>, pub no_manage_resolv_conf: Option<bool>, pub port_bindings: Option<HashMap<String, Option<Vec<InspectHostPort>>>>, pub static_ip: Option<String>, pub static_mac: Option<String>, pub cpu_period: Option<u64>, pub cpu_quota: Option<i64>, pub cpuset_cpus: Option<String>, pub pid_ns: Option<String>, pub userns: Option<String>, pub uts_ns: Option<String>,
}
Expand description

InspectPodInfraConfig contains the configuration of the pod’s infra container.

Fields§

§dns_option: Option<Vec<String>>

DNSOption is a set of DNS options that will be used by the infra container’s resolv.conf and shared with the remainder of the pod.

§dns_search: Option<Vec<String>>

DNSSearch is a set of DNS search domains that will be used by the infra container’s resolv.conf and shared with the remainder of the pod.

§dns_server: Option<Vec<String>>

DNSServer is a set of DNS Servers that will be used by the infra container’s resolv.conf and shared with the remainder of the pod.

§host_add: Option<Vec<String>>

HostAdd adds a number of hosts to the infra container’s resolv.conf which will be shared with the rest of the pod.

§host_network: Option<bool>

HostNetwork is whether the infra container (and thus the whole pod) will use the host’s network and not create a network namespace.

§network_options: Option<HashMap<String, Vec<String>>>

NetworkOptions are additional options for each network

§networks: Option<Vec<String>>

Networks is a list of CNI networks the pod will join.

§no_manage_hosts: Option<bool>

NoManageHosts indicates that the pod will not manage /etc/hosts and instead each container will handle their own.

§no_manage_resolv_conf: Option<bool>

NoManageResolvConf indicates that the pod will not manage resolv.conf and instead each container will handle their own.

§port_bindings: Option<HashMap<String, Option<Vec<InspectHostPort>>>>

PortBindings are ports that will be forwarded to the infra container and then shared with the pod.

§static_ip: Option<String>

StaticIP is a static IPv4 that will be assigned to the infra container and then used by the pod.

§static_mac: Option<String>

StaticMAC is a static MAC address that will be assigned to the infra container and then used by the pod.

§cpu_period: Option<u64>

CPUPeriod contains the CPU period of the pod

§cpu_quota: Option<i64>

CPUQuota contains the CPU quota of the pod

§cpuset_cpus: Option<String>

CPUSetCPUs contains linux specific CPU data for the container

§pid_ns: Option<String>

Pid is the PID namespace mode of the pod’s infra container

§userns: Option<String>

UserNS is the usernamespace that all the containers in the pod will join.

§uts_ns: Option<String>

UtsNS is the uts namespace that all containers in the pod will join

Trait Implementations§

Source§

impl Clone for InspectPodInfraConfig

Source§

fn clone(&self) -> InspectPodInfraConfig

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InspectPodInfraConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for InspectPodInfraConfig

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<InspectPodInfraConfig, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for InspectPodInfraConfig

Source§

fn eq(&self, other: &InspectPodInfraConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for InspectPodInfraConfig

Source§

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

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for InspectPodInfraConfig

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

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

Source§

impl<T> MaybeSendSync for T