Struct podman_api::models::InspectPodInfraConfig [−][src]
pub struct InspectPodInfraConfig {Show 14 fields
pub dns_option: Option<Vec<String, Global>>,
pub dns_search: Option<Vec<String, Global>>,
pub dns_server: Option<Vec<String, Global>>,
pub host_add: Option<Vec<String, Global>>,
pub host_network: Option<bool>,
pub network_options: Option<HashMap<String, Vec<String, Global>, RandomState>>,
pub networks: Option<Vec<String, Global>>,
pub no_manage_hosts: Option<bool>,
pub no_manage_resolv_conf: Option<bool>,
pub port_bindings: Option<HashMap<String, Vec<InspectHostPort, Global>, RandomState>>,
pub static_ip: Option<Vec<i32, Global>>,
pub static_mac: Option<String>,
pub pid_ns: Option<String>,
pub userns: Option<String>,
}
Expand description
InspectPodInfraConfig contains the configuration of the pod’s infra container.
Fields
dns_option: Option<Vec<String, Global>>
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, Global>>
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, Global>>
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, Global>>
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, Global>, RandomState>>
NetworkOptions are additional options for each network
networks: Option<Vec<String, Global>>
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, Vec<InspectHostPort, Global>, RandomState>>
PortBindings are ports that will be forwarded to the infra container and then shared with the pod.
static_ip: Option<Vec<i32, Global>>
static_mac: Option<String>
StaticMAC is a static MAC address that will be assigned to the infra container and then used by the pod.
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.
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<InspectPodInfraConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for InspectPodInfraConfig
impl Send for InspectPodInfraConfig
impl Sync for InspectPodInfraConfig
impl Unpin for InspectPodInfraConfig
impl UnwindSafe for InspectPodInfraConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more