mirror of
https://github.com/containers/podman.git
synced 2025-10-25 18:25:59 +08:00
-e/--env option sets environment variables to the systemd unit files. Fixes: #15523 Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.com>
56 lines
1.3 KiB
Go
56 lines
1.3 KiB
Go
package entities
|
|
|
|
import "io"
|
|
|
|
// GenerateSystemdOptions control the generation of systemd unit files.
|
|
type GenerateSystemdOptions struct {
|
|
Name bool
|
|
New bool
|
|
RestartPolicy *string
|
|
RestartSec *uint
|
|
StartTimeout *uint
|
|
StopTimeout *uint
|
|
ContainerPrefix string
|
|
PodPrefix string
|
|
Separator string
|
|
NoHeader bool
|
|
TemplateUnitFile bool
|
|
Wants []string
|
|
After []string
|
|
Requires []string
|
|
AdditionalEnvVariables []string
|
|
}
|
|
|
|
// GenerateSystemdReport
|
|
type GenerateSystemdReport struct {
|
|
// Units of the generate process. key = unit name -> value = unit content
|
|
Units map[string]string
|
|
}
|
|
|
|
// GenerateKubeOptions control the generation of Kubernetes YAML files.
|
|
type GenerateKubeOptions struct {
|
|
// Service - generate YAML for a Kubernetes _service_ object.
|
|
Service bool
|
|
}
|
|
|
|
type KubeGenerateOptions = GenerateKubeOptions
|
|
|
|
// GenerateKubeReport
|
|
//
|
|
// FIXME: Podman4.0 should change io.Reader to io.ReaderCloser
|
|
type GenerateKubeReport struct {
|
|
// Reader - the io.Reader to reader the generated YAML file.
|
|
Reader io.Reader
|
|
}
|
|
|
|
type GenerateSpecReport struct {
|
|
Data []byte
|
|
}
|
|
|
|
type GenerateSpecOptions struct {
|
|
ID string
|
|
FileName string
|
|
Compact bool
|
|
Name bool
|
|
}
|