mirror of
https://github.com/containers/podman.git
synced 2025-06-19 16:33:24 +08:00

- misspell - prealloc - unparam - nakedret Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
43 lines
1.2 KiB
Go
43 lines
1.2 KiB
Go
package entities
|
|
|
|
import "io"
|
|
|
|
// GenerateSystemdOptions control the generation of systemd unit files.
|
|
type GenerateSystemdOptions struct {
|
|
// Files - generate files instead of printing to stdout.
|
|
Files bool
|
|
// Name - use container/pod name instead of its ID.
|
|
Name bool
|
|
// New - create a new container instead of starting a new one.
|
|
New bool
|
|
// RestartPolicy - systemd restart policy.
|
|
RestartPolicy string
|
|
// StopTimeout - time when stopping the container.
|
|
StopTimeout *uint
|
|
// ContainerPrefix - systemd unit name prefix for containers
|
|
ContainerPrefix string
|
|
// PodPrefix - systemd unit name prefix for pods
|
|
PodPrefix string
|
|
// Separator - systemd unit name separator between name/id and prefix
|
|
Separator string
|
|
}
|
|
|
|
// GenerateSystemdReport
|
|
type GenerateSystemdReport struct {
|
|
// Output of the generate process. Either the generated files or their
|
|
// entire content.
|
|
Output string
|
|
}
|
|
|
|
// GenerateKubeOptions control the generation of Kubernetes YAML files.
|
|
type GenerateKubeOptions struct {
|
|
// Service - generate YAML for a Kubernetes _service_ object.
|
|
Service bool
|
|
}
|
|
|
|
// GenerateKubeReport
|
|
type GenerateKubeReport struct {
|
|
// Reader - the io.Reader to reader the generated YAML file.
|
|
Reader io.Reader
|
|
}
|