Documentation ¶
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)
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) WithService ¶
func (o *KubeOptions) WithService(value bool) *KubeOptions
WithService
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) GetContainerPrefix ¶
func (o *SystemdOptions) GetContainerPrefix() string
GetContainerPrefix
func (*SystemdOptions) GetNoHeader ¶ added in v3.1.0
func (o *SystemdOptions) GetNoHeader() bool
GetNoHeader
func (*SystemdOptions) GetRestartPolicy ¶
func (o *SystemdOptions) GetRestartPolicy() string
GetRestartPolicy
func (*SystemdOptions) GetStopTimeout ¶
func (o *SystemdOptions) GetStopTimeout() uint
GetStopTimeout
func (*SystemdOptions) WithContainerPrefix ¶
func (o *SystemdOptions) WithContainerPrefix(value string) *SystemdOptions
WithContainerPrefix
func (*SystemdOptions) WithNew ¶
func (o *SystemdOptions) WithNew(value bool) *SystemdOptions
WithNew
func (*SystemdOptions) WithNoHeader ¶ added in v3.1.0
func (o *SystemdOptions) WithNoHeader(value bool) *SystemdOptions
WithNoHeader
func (*SystemdOptions) WithPodPrefix ¶
func (o *SystemdOptions) WithPodPrefix(value string) *SystemdOptions
WithPodPrefix
func (*SystemdOptions) WithRestartPolicy ¶
func (o *SystemdOptions) WithRestartPolicy(value string) *SystemdOptions
WithRestartPolicy
func (*SystemdOptions) WithSeparator ¶
func (o *SystemdOptions) WithSeparator(value string) *SystemdOptions
WithSeparator
func (*SystemdOptions) WithStopTimeout ¶
func (o *SystemdOptions) WithStopTimeout(value uint) *SystemdOptions
WithStopTimeout
func (*SystemdOptions) WithUseName ¶
func (o *SystemdOptions) WithUseName(value bool) *SystemdOptions
WithUseName
Click to show internal directories.
Click to hide internal directories.