github.com/containers/podman/v4@v4.9.4/pkg/bindings/generate/types.go (about)

     1  package generate
     2  
     3  // KubeOptions are optional options for generating kube YAML files
     4  //
     5  //go:generate go run ../generator/generator.go KubeOptions
     6  type KubeOptions struct {
     7  	// PodmanOnly - add podman-only reserved annotations to generated YAML file (Cannot be used by Kubernetes)
     8  	PodmanOnly *bool
     9  	// Service - generate YAML for a Kubernetes _service_ object.
    10  	Service *bool
    11  	// Type - the k8s kind to be generated i.e Pod or Deployment
    12  	Type *string
    13  	// Replicas - the value to set in the replicas field for a Deployment
    14  	Replicas *int32
    15  	// NoTrunc - don't truncate annotations to the Kubernetes maximum length of 63 characters
    16  	NoTrunc *bool
    17  }
    18  
    19  // SystemdOptions are optional options for generating systemd files
    20  //
    21  //go:generate go run ../generator/generator.go SystemdOptions
    22  type SystemdOptions struct {
    23  	// Name - use container/pod name instead of its ID.
    24  	UseName *bool
    25  	// New - create a new container instead of starting a new one.
    26  	New *bool
    27  	// NoHeader - Removes autogenerated by Podman and timestamp if set to true
    28  	NoHeader *bool
    29  	// TemplateUnitFile - Create a template unit file that uses the identity specifiers
    30  	TemplateUnitFile *bool
    31  	// RestartPolicy - systemd restart policy.
    32  	RestartPolicy *string
    33  	// RestartSec - systemd service restartsec. Configures the time to sleep before restarting a service.
    34  	RestartSec *uint
    35  	// StartTimeout - time when starting the container.
    36  	StartTimeout *uint
    37  	// StopTimeout - time when stopping the container.
    38  	StopTimeout *uint
    39  	// ContainerPrefix - systemd unit name prefix for containers
    40  	ContainerPrefix *string
    41  	// PodPrefix - systemd unit name prefix for pods
    42  	PodPrefix *string
    43  	// Separator - systemd unit name separator between name/id and prefix
    44  	Separator *string
    45  	// Wants - systemd wants list for the container or pods
    46  	Wants *[]string
    47  	// After - systemd after list for the container or pods
    48  	After *[]string
    49  	// Requires - systemd requires list for the container or pods
    50  	Requires *[]string
    51  	// AdditionalEnvVariables - Sets environment variables to a systemd unit file
    52  	AdditionalEnvVariables *[]string
    53  }