Struct podman_api::models::PodNetworkConfig
source · [−]pub struct PodNetworkConfig {
pub cni_networks: Option<Vec<String, Global>>,
pub dns_option: Option<Vec<String, Global>>,
pub dns_search: Option<Vec<String, Global>>,
pub dns_server: Option<Vec<Vec<i32, Global>, Global>>,
pub hostadd: Option<Vec<String, Global>>,
pub netns: Option<Namespace>,
pub network_options: Option<HashMap<String, Vec<String, Global>, RandomState>>,
pub no_manage_hosts: Option<bool>,
pub no_manage_resolv_conf: Option<bool>,
pub portmappings: Option<Vec<PortMapping, Global>>,
pub static_ip: Option<Vec<i32, Global>>,
pub static_mac: Option<Vec<i32, Global>>,
}
Fields
cni_networks: Option<Vec<String, Global>>
CNINetworks is a list of CNI networks that the infra container will join. As, by default, containers share their network with the infra container, these networks will effectively be joined by the entire pod. Only available when NetNS is set to Bridge, the default for root. Optional.
dns_option: Option<Vec<String, Global>>
DNSOption is a set of DNS options that will be used in the infra container’s resolv.conf, which will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true. Optional.
dns_search: Option<Vec<String, Global>>
DNSSearch is a set of DNS search domains that will be used in the infra container’s resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, DNS search domains from the host’s resolv.conf will be used. Conflicts with NoInfra=true. Optional.
dns_server: Option<Vec<Vec<i32, Global>, Global>>
DNSServer is a set of DNS servers that will be used in the infra container’s resolv.conf, which will, by default, be shared with all containers in the pod. If not provided, the host’s DNS servers will be used, unless the only server set is a localhost address. As the container cannot connect to the host’s localhost, a default server will instead be set. Conflicts with NoInfra=true. Optional.
hostadd: Option<Vec<String, Global>>
HostAdd is a set of hosts that will be added to the infra container’s etc/hosts that will, by default, be shared with all containers in the pod. Conflicts with NoInfra=true and NoManageHosts. Optional.
netns: Option<Namespace>
network_options: Option<HashMap<String, Vec<String, Global>, RandomState>>
NetworkOptions are additional options for each network Optional.
no_manage_hosts: Option<bool>
NoManageHosts indicates that /etc/hosts should not be managed by the pod. Instead, each container will create a separate /etc/hosts as they would if not in a pod. Conflicts with HostAdd.
no_manage_resolv_conf: Option<bool>
NoManageResolvConf indicates that /etc/resolv.conf should not be managed by the pod. Instead, each container will create and manage a separate resolv.conf as if they had not joined a pod. Conflicts with NoInfra=true and DNSServer, DNSSearch, DNSOption. Optional.
portmappings: Option<Vec<PortMapping, Global>>
PortMappings is a set of ports to map into the infra container. As, by default, containers share their network with the infra container, this will forward the ports to the entire pod. Only available if NetNS is set to Bridge or Slirp. Optional.
static_ip: Option<Vec<i32, Global>>
static_mac: Option<Vec<i32, Global>>
Trait Implementations
sourceimpl Clone for PodNetworkConfig
impl Clone for PodNetworkConfig
sourcefn clone(&self) -> PodNetworkConfig
fn clone(&self) -> PodNetworkConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PodNetworkConfig
impl Debug for PodNetworkConfig
sourceimpl<'de> Deserialize<'de> for PodNetworkConfig
impl<'de> Deserialize<'de> for PodNetworkConfig
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<PodNetworkConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PodNetworkConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PodNetworkConfig> for PodNetworkConfig
impl PartialEq<PodNetworkConfig> for PodNetworkConfig
sourcefn eq(&self, other: &PodNetworkConfig) -> bool
fn eq(&self, other: &PodNetworkConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PodNetworkConfig) -> bool
fn ne(&self, other: &PodNetworkConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for PodNetworkConfig
impl Serialize for PodNetworkConfig
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
impl StructuralPartialEq for PodNetworkConfig
Auto Trait Implementations
impl RefUnwindSafe for PodNetworkConfig
impl Send for PodNetworkConfig
impl Sync for PodNetworkConfig
impl Unpin for PodNetworkConfig
impl UnwindSafe for PodNetworkConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more