github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/bindings/generate/types.go (about) 1 package generate 2 3 //go:generate go run ../generator/generator.go KubeOptions 4 // KubeOptions are optional options for generating kube YAML files 5 type KubeOptions struct { 6 // Service - generate YAML for a Kubernetes _service_ object. 7 Service *bool 8 } 9 10 //go:generate go run ../generator/generator.go SystemdOptions 11 // SystemdOptions are optional options for generating systemd files 12 type SystemdOptions struct { 13 // Name - use container/pod name instead of its ID. 14 UseName *bool 15 // New - create a new container instead of starting a new one. 16 New *bool 17 // NoHeader - Removes autogenerated by Podman and timestamp if set to true 18 NoHeader *bool 19 // TemplateUnitFile - Create a template unit file that uses the identity specifiers 20 TemplateUnitFile *bool 21 // RestartPolicy - systemd restart policy. 22 RestartPolicy *string 23 // RestartSec - systemd service restartsec. Configures the time to sleep before restarting a service. 24 RestartSec *uint 25 // StartTimeout - time when starting the container. 26 StartTimeout *uint 27 // StopTimeout - time when stopping the container. 28 StopTimeout *uint 29 // ContainerPrefix - systemd unit name prefix for containers 30 ContainerPrefix *string 31 // PodPrefix - systemd unit name prefix for pods 32 PodPrefix *string 33 // Separator - systemd unit name separator between name/id and prefix 34 Separator *string 35 // Wants - systemd wants list for the container or pods 36 Wants *[]string 37 // After - systemd after list for the container or pods 38 After *[]string 39 // Requires - systemd requires list for the container or pods 40 Requires *[]string 41 }