Documentation ¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
Index ¶
- func Kube(ctx context.Context, nameOrIDs []string, options *KubeOptions) (*entities.GenerateKubeReport, error)
- func Systemd(ctx context.Context, nameOrID string, options *SystemdOptions) (*entities.GenerateSystemdReport, error)
- type KubeOptions
- type SystemdOptions
- func (o *SystemdOptions) Changed(fieldName string) bool
- func (o *SystemdOptions) GetContainerPrefix() string
- func (o *SystemdOptions) GetNew() bool
- func (o *SystemdOptions) GetNoHeader() bool
- func (o *SystemdOptions) GetPodPrefix() string
- func (o *SystemdOptions) GetRestartPolicy() string
- func (o *SystemdOptions) GetSeparator() string
- func (o *SystemdOptions) GetStopTimeout() uint
- func (o *SystemdOptions) GetUseName() bool
- func (o *SystemdOptions) ToParams() (url.Values, error)
- func (o *SystemdOptions) WithContainerPrefix(value string) *SystemdOptions
- func (o *SystemdOptions) WithNew(value bool) *SystemdOptions
- func (o *SystemdOptions) WithNoHeader(value bool) *SystemdOptions
- func (o *SystemdOptions) WithPodPrefix(value string) *SystemdOptions
- func (o *SystemdOptions) WithRestartPolicy(value string) *SystemdOptions
- func (o *SystemdOptions) WithSeparator(value string) *SystemdOptions
- func (o *SystemdOptions) WithStopTimeout(value uint) *SystemdOptions
- func (o *SystemdOptions) WithUseName(value bool) *SystemdOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Kube ¶
func Kube(ctx context.Context, nameOrIDs []string, options *KubeOptions) (*entities.GenerateKubeReport, error)
Kube generate Kubernetes YAML (v1 specification)
Note: Caller is responsible for closing returned reader
func Systemd ¶
func Systemd(ctx context.Context, nameOrID string, options *SystemdOptions) (*entities.GenerateSystemdReport, error)
Types ¶
type KubeOptions ¶
type KubeOptions struct { // Service - generate YAML for a Kubernetes _service_ object. Service *bool }
KubeOptions are optional options for generating kube YAML files
func (*KubeOptions) Changed ¶
func (o *KubeOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*KubeOptions) GetService ¶
func (o *KubeOptions) GetService() bool
GetService returns value of field Service
func (*KubeOptions) ToParams ¶
func (o *KubeOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*KubeOptions) WithService ¶
func (o *KubeOptions) WithService(value bool) *KubeOptions
WithService set field Service to given value
type SystemdOptions ¶
type SystemdOptions struct { // Name - use container/pod name instead of its ID. UseName *bool // New - create a new container instead of starting a new one. New *bool // NoHeader - Removes autogenerated by Podman and timestamp if set to true NoHeader *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 }
SystemdOptions are optional options for generating systemd files
func (*SystemdOptions) Changed ¶
func (o *SystemdOptions) Changed(fieldName string) bool
Changed returns true if named field has been set
func (*SystemdOptions) GetContainerPrefix ¶
func (o *SystemdOptions) GetContainerPrefix() string
GetContainerPrefix returns value of field ContainerPrefix
func (*SystemdOptions) GetNew ¶
func (o *SystemdOptions) GetNew() bool
GetNew returns value of field New
func (*SystemdOptions) GetNoHeader ¶ added in v3.1.0
func (o *SystemdOptions) GetNoHeader() bool
GetNoHeader returns value of field NoHeader
func (*SystemdOptions) GetPodPrefix ¶
func (o *SystemdOptions) GetPodPrefix() string
GetPodPrefix returns value of field PodPrefix
func (*SystemdOptions) GetRestartPolicy ¶
func (o *SystemdOptions) GetRestartPolicy() string
GetRestartPolicy returns value of field RestartPolicy
func (*SystemdOptions) GetSeparator ¶
func (o *SystemdOptions) GetSeparator() string
GetSeparator returns value of field Separator
func (*SystemdOptions) GetStopTimeout ¶
func (o *SystemdOptions) GetStopTimeout() uint
GetStopTimeout returns value of field StopTimeout
func (*SystemdOptions) GetUseName ¶
func (o *SystemdOptions) GetUseName() bool
GetUseName returns value of field UseName
func (*SystemdOptions) ToParams ¶
func (o *SystemdOptions) ToParams() (url.Values, error)
ToParams formats struct fields to be passed to API service
func (*SystemdOptions) WithContainerPrefix ¶
func (o *SystemdOptions) WithContainerPrefix(value string) *SystemdOptions
WithContainerPrefix set field ContainerPrefix to given value
func (*SystemdOptions) WithNew ¶
func (o *SystemdOptions) WithNew(value bool) *SystemdOptions
WithNew set field New to given value
func (*SystemdOptions) WithNoHeader ¶ added in v3.1.0
func (o *SystemdOptions) WithNoHeader(value bool) *SystemdOptions
WithNoHeader set field NoHeader to given value
func (*SystemdOptions) WithPodPrefix ¶
func (o *SystemdOptions) WithPodPrefix(value string) *SystemdOptions
WithPodPrefix set field PodPrefix to given value
func (*SystemdOptions) WithRestartPolicy ¶
func (o *SystemdOptions) WithRestartPolicy(value string) *SystemdOptions
WithRestartPolicy set field RestartPolicy to given value
func (*SystemdOptions) WithSeparator ¶
func (o *SystemdOptions) WithSeparator(value string) *SystemdOptions
WithSeparator set field Separator to given value
func (*SystemdOptions) WithStopTimeout ¶
func (o *SystemdOptions) WithStopTimeout(value uint) *SystemdOptions
WithStopTimeout set field StopTimeout to given value
func (*SystemdOptions) WithUseName ¶
func (o *SystemdOptions) WithUseName(value bool) *SystemdOptions
WithUseName set field UseName to given value