generate

package
v3.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Code generated by go generate; DO NOT EDIT.

Index

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL