Documentation ¶
Index ¶
Constants ¶
View Source
const EnvVariable = "PODMAN_SYSTEMD_UNIT"
EnvVariable "PODMAN_SYSTEMD_UNIT" is set in all generated systemd units and is set to the unit's (unique) name.
Variables ¶
View Source
var RestartPolicies = []string{"no", "on-success", "on-failure", "on-abnormal", "on-watchdog", "on-abort", "always"}
RestartPolicies includes all valid restart policies to be used in a unit file.
Functions ¶
func ContainerUnit ¶
func ContainerUnit(ctr *libpod.Container, options entities.GenerateSystemdOptions) (string, string, error)
ContainerUnit generates a systemd unit for the specified container. Based on the options, the return value might be the entire unit or a file it has been written to.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.