github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/domain/entities/generate.go (about) 1 package entities 2 3 import "io" 4 5 // GenerateSystemdOptions control the generation of systemd unit files. 6 type GenerateSystemdOptions struct { 7 // Name - use container/pod name instead of its ID. 8 Name bool 9 // New - create a new container instead of starting a new one. 10 New bool 11 // RestartPolicy - systemd restart policy. 12 RestartPolicy string 13 // StopTimeout - time when stopping the container. 14 StopTimeout *uint 15 // ContainerPrefix - systemd unit name prefix for containers 16 ContainerPrefix string 17 // PodPrefix - systemd unit name prefix for pods 18 PodPrefix string 19 // Separator - systemd unit name separator between name/id and prefix 20 Separator string 21 } 22 23 // GenerateSystemdReport 24 type GenerateSystemdReport struct { 25 // Units of the generate process. key = unit name -> value = unit content 26 Units map[string]string 27 } 28 29 // GenerateKubeOptions control the generation of Kubernetes YAML files. 30 type GenerateKubeOptions struct { 31 // Service - generate YAML for a Kubernetes _service_ object. 32 Service bool 33 } 34 35 // GenerateKubeReport 36 type GenerateKubeReport struct { 37 // Reader - the io.Reader to reader the generated YAML file. 38 Reader io.Reader 39 }