Struct podman_api::models::PodBasicConfig [−][src]
pub struct PodBasicConfig {
pub hostname: Option<String>,
pub infra_command: Option<Vec<String, Global>>,
pub infra_conmon_pid_file: Option<String>,
pub infra_image: Option<String>,
pub infra_name: Option<String>,
pub labels: Option<HashMap<String, String, RandomState>>,
pub name: Option<String>,
pub no_infra: Option<bool>,
pub pidns: Option<Namespace>,
pub pod_create_command: Option<Vec<String, Global>>,
pub shared_namespaces: Option<Vec<String, Global>>,
pub userns: Option<Namespace>,
}
Fields
hostname: Option<String>
Hostname is the pod’s hostname. If not set, the name of the pod will be used (if a name was not provided here, the name auto-generated for the pod will be used). This will be used by the infra container and all containers in the pod as long as the UTS namespace is shared. Optional.
infra_command: Option<Vec<String, Global>>
InfraCommand sets the command that will be used to start the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional.
infra_conmon_pid_file: Option<String>
InfraConmonPidFile is a custom path to store the infra container’s conmon PID.
infra_image: Option<String>
InfraImage is the image that will be used for the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional.
infra_name: Option<String>
InfraName is the name that will be used for the infra container. If not set, the default set in the Libpod configuration file will be used. Conflicts with NoInfra=true. Optional.
labels: Option<HashMap<String, String, RandomState>>
Labels are key-value pairs that are used to add metadata to pods. Optional.
name: Option<String>
Name is the name of the pod. If not provided, a name will be generated when the pod is created. Optional.
no_infra: Option<bool>
NoInfra tells the pod not to create an infra container. If this is done, many networking-related options will become unavailable. Conflicts with setting any options in PodNetworkConfig, and the InfraCommand and InfraImages in this struct. Optional.
pidns: Option<Namespace>
pod_create_command: Option<Vec<String, Global>>
PodCreateCommand is the command used to create this pod. This will be shown in the output of Inspect() on the pod, and may also be used by some tools that wish to recreate the pod (e.g. podman generate systemd --new
). Optional.
SharedNamespaces instructs the pod to share a set of namespaces. Shared namespaces will be joined (by default) by every container which joins the pod. If not set and NoInfra is false, the pod will set a default set of namespaces to share. Conflicts with NoInfra=true. Optional.
userns: Option<Namespace>
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<PodBasicConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<PodBasicConfig, <__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 PodBasicConfig
impl Send for PodBasicConfig
impl Sync for PodBasicConfig
impl Unpin for PodBasicConfig
impl UnwindSafe for PodBasicConfig
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