pub struct PodBasicConfig {Show 17 fields
pub exit_policy: Option<String>,
pub hostname: Option<String>,
pub infra_command: Option<Vec<String>>,
pub infra_conmon_pid_file: Option<String>,
pub infra_image: Option<String>,
pub infra_name: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub name: Option<String>,
pub no_infra: Option<bool>,
pub pidns: Option<Namespace>,
pub pod_create_command: Option<Vec<String>>,
pub pod_devices: Option<Vec<String>>,
pub share_parent: Option<bool>,
pub shared_namespaces: Option<Vec<String>>,
pub sysctl: Option<HashMap<String, String>>,
pub userns: Option<Namespace>,
pub utsns: Option<Namespace>,
}
Fields§
§exit_policy: Option<String>
ExitPolicy determines the pod’s exit and stop behaviour.
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>>
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>>
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>>
§pod_devices: Option<Vec<String>>
Devices contains user specified Devices to be added to the Pod
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.
ShareParent determines if all containers in the pod will share the pod’s cgroup as the cgroup parent
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.
sysctl: Option<HashMap<String, String>>
Sysctl sets kernel parameters for the pod
userns: Option<Namespace>
§utsns: Option<Namespace>
Trait Implementations§
Source§impl Clone for PodBasicConfig
impl Clone for PodBasicConfig
Source§fn clone(&self) -> PodBasicConfig
fn clone(&self) -> PodBasicConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more