generate

package
v3.1.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

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.

func PodUnits

func PodUnits(pod *libpod.Pod, options entities.GenerateSystemdOptions) (map[string]string, error)

PodUnits generates systemd units for the specified pod and its containers. Based on the options, the return value might be the content of all units or the files they been written to.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL