play

package
v3.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

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, path string, options *KubeOptions) (*entities.PlayKubeReport, error)

func KubeDown added in v3.4.0

func KubeDown(ctx context.Context, path string) (*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
	// StaticIPs - Static IP address used by the pod(s).
	StaticIPs *[]net.IP
	// StaticMACs - Static MAC address used by the pod(s).
	StaticMACs *[]net.HardwareAddr
	// 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 returns true if named field has been set

func (*KubeOptions) GetAuthfile

func (o *KubeOptions) GetAuthfile() string

GetAuthfile returns value of field Authfile

func (*KubeOptions) GetCertDir

func (o *KubeOptions) GetCertDir() string

GetCertDir returns value of field CertDir

func (*KubeOptions) GetConfigMaps

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

GetConfigMaps returns value of field ConfigMaps

func (*KubeOptions) GetLogDriver

func (o *KubeOptions) GetLogDriver() string

GetLogDriver returns value of field LogDriver

func (*KubeOptions) GetNetwork

func (o *KubeOptions) GetNetwork() string

GetNetwork returns value of field Network

func (*KubeOptions) GetPassword

func (o *KubeOptions) GetPassword() string

GetPassword returns value of field Password

func (*KubeOptions) GetQuiet

func (o *KubeOptions) GetQuiet() bool

GetQuiet returns value of field Quiet

func (*KubeOptions) GetSeccompProfileRoot

func (o *KubeOptions) GetSeccompProfileRoot() string

GetSeccompProfileRoot returns value of field SeccompProfileRoot

func (*KubeOptions) GetSignaturePolicy

func (o *KubeOptions) GetSignaturePolicy() string

GetSignaturePolicy returns value of field SignaturePolicy

func (*KubeOptions) GetSkipTLSVerify

func (o *KubeOptions) GetSkipTLSVerify() bool

GetSkipTLSVerify returns value of field SkipTLSVerify

func (*KubeOptions) GetStart

func (o *KubeOptions) GetStart() bool

GetStart returns value of field Start

func (*KubeOptions) GetStaticIPs added in v3.2.0

func (o *KubeOptions) GetStaticIPs() []net.IP

GetStaticIPs returns value of field StaticIPs

func (*KubeOptions) GetStaticMACs added in v3.2.0

func (o *KubeOptions) GetStaticMACs() []net.HardwareAddr

GetStaticMACs returns value of field StaticMACs

func (*KubeOptions) GetUsername

func (o *KubeOptions) GetUsername() string

GetUsername returns value of field Username

func (*KubeOptions) ToParams

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

ToParams formats struct fields to be passed to API service

func (*KubeOptions) WithAuthfile

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

WithAuthfile set field Authfile to given value

func (*KubeOptions) WithCertDir

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

WithCertDir set field CertDir to given value

func (*KubeOptions) WithConfigMaps

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

WithConfigMaps set field ConfigMaps to given value

func (*KubeOptions) WithLogDriver

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

WithLogDriver set field LogDriver to given value

func (*KubeOptions) WithNetwork

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

WithNetwork set field Network to given value

func (*KubeOptions) WithPassword

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

WithPassword set field Password to given value

func (*KubeOptions) WithQuiet

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

WithQuiet set field Quiet to given value

func (*KubeOptions) WithSeccompProfileRoot

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

WithSeccompProfileRoot set field SeccompProfileRoot to given value

func (*KubeOptions) WithSignaturePolicy

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

WithSignaturePolicy set field SignaturePolicy to given value

func (*KubeOptions) WithSkipTLSVerify

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

WithSkipTLSVerify set field SkipTLSVerify to given value

func (*KubeOptions) WithStart

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

WithStart set field Start to given value

func (*KubeOptions) WithStaticIPs added in v3.2.0

func (o *KubeOptions) WithStaticIPs(value []net.IP) *KubeOptions

WithStaticIPs set field StaticIPs to given value

func (*KubeOptions) WithStaticMACs added in v3.2.0

func (o *KubeOptions) WithStaticMACs(value []net.HardwareAddr) *KubeOptions

WithStaticMACs set field StaticMACs to given value

func (*KubeOptions) WithUsername

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

WithUsername set field Username to given value

Jump to

Keyboard shortcuts

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