play

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kube

func Kube(ctx context.Context, path string, options *KubeOptions) (*entities.PlayKubeReport, error)

Types

type KubeOptions

type KubeOptions struct {
	// Authfile - path to an authentication file.
	Authfile *string
	// CertDir - to a directory containing TLS certifications and keys.
	CertDir *string
	// Username for authenticating against the registry.
	Username *string
	// Password for authenticating against the registry.
	Password *string
	// Network - name of the CNI network to connect to.
	Network *string
	// Quiet - suppress output when pulling images.
	Quiet *bool
	// SignaturePolicy - path to a signature-policy file.
	SignaturePolicy *string
	// SkipTLSVerify - skip https and certificate validation when
	// contacting container registries.
	SkipTLSVerify *bool
	// SeccompProfileRoot - path to a directory containing seccomp
	// profiles.
	SeccompProfileRoot *string
	// ConfigMaps - slice of pathnames to kubernetes configmap YAMLs.
	ConfigMaps *[]string
	// LogDriver for the container. For example: journald
	LogDriver *string
	// Start - don't start the pod if false
	Start *bool
}

KubeOptions are optional options for replaying kube YAML files

func (*KubeOptions) Changed

func (o *KubeOptions) Changed(fieldName string) bool

Changed

func (*KubeOptions) GetAuthfile

func (o *KubeOptions) GetAuthfile() string

GetAuthfile

func (*KubeOptions) GetCertDir

func (o *KubeOptions) GetCertDir() string

GetCertDir

func (*KubeOptions) GetConfigMaps

func (o *KubeOptions) GetConfigMaps() []string

GetConfigMaps

func (*KubeOptions) GetLogDriver

func (o *KubeOptions) GetLogDriver() string

GetLogDriver

func (*KubeOptions) GetNetwork

func (o *KubeOptions) GetNetwork() string

GetNetwork

func (*KubeOptions) GetPassword

func (o *KubeOptions) GetPassword() string

GetPassword

func (*KubeOptions) GetQuiet

func (o *KubeOptions) GetQuiet() bool

GetQuiet

func (*KubeOptions) GetSeccompProfileRoot

func (o *KubeOptions) GetSeccompProfileRoot() string

GetSeccompProfileRoot

func (*KubeOptions) GetSignaturePolicy

func (o *KubeOptions) GetSignaturePolicy() string

GetSignaturePolicy

func (*KubeOptions) GetSkipTLSVerify

func (o *KubeOptions) GetSkipTLSVerify() bool

GetSkipTLSVerify

func (*KubeOptions) GetStart

func (o *KubeOptions) GetStart() bool

GetStart

func (*KubeOptions) GetUsername

func (o *KubeOptions) GetUsername() string

GetUsername

func (*KubeOptions) ToParams

func (o *KubeOptions) ToParams() (url.Values, error)

ToParams

func (*KubeOptions) WithAuthfile

func (o *KubeOptions) WithAuthfile(value string) *KubeOptions

WithAuthfile

func (*KubeOptions) WithCertDir

func (o *KubeOptions) WithCertDir(value string) *KubeOptions

WithCertDir

func (*KubeOptions) WithConfigMaps

func (o *KubeOptions) WithConfigMaps(value []string) *KubeOptions

WithConfigMaps

func (*KubeOptions) WithLogDriver

func (o *KubeOptions) WithLogDriver(value string) *KubeOptions

WithLogDriver

func (*KubeOptions) WithNetwork

func (o *KubeOptions) WithNetwork(value string) *KubeOptions

WithNetwork

func (*KubeOptions) WithPassword

func (o *KubeOptions) WithPassword(value string) *KubeOptions

WithPassword

func (*KubeOptions) WithQuiet

func (o *KubeOptions) WithQuiet(value bool) *KubeOptions

WithQuiet

func (*KubeOptions) WithSeccompProfileRoot

func (o *KubeOptions) WithSeccompProfileRoot(value string) *KubeOptions

WithSeccompProfileRoot

func (*KubeOptions) WithSignaturePolicy

func (o *KubeOptions) WithSignaturePolicy(value string) *KubeOptions

WithSignaturePolicy

func (*KubeOptions) WithSkipTLSVerify

func (o *KubeOptions) WithSkipTLSVerify(value bool) *KubeOptions

WithSkipTLSVerify

func (*KubeOptions) WithStart

func (o *KubeOptions) WithStart(value bool) *KubeOptions

WithStart

func (*KubeOptions) WithUsername

func (o *KubeOptions) WithUsername(value string) *KubeOptions

WithUsername

Jump to

Keyboard shortcuts

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