v1alpha1

package
v1.12.1-RC1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOption

type BuildOption func(*PodExec)

BuildOption represents the various build options against PodExec operation

func IgnoreErrors

func IgnoreErrors() BuildOption

IgnoreErrors is a buildOption that is used ignore errors

type PodExec

type PodExec struct {
	// contains filtered or unexported fields
}

PodExec represents the details of pod exec options

func BuilderForYAMLObject

func BuilderForYAMLObject(object []byte) *PodExec

BuilderForYAMLObject returns a new instance of Builder for a given template object

func (*PodExec) Apply

func (p *PodExec) Apply(opts ...BuildOption) *PodExec

Apply applies all build options in PodExec

func (*PodExec) AsAPIPodExec

func (p *PodExec) AsAPIPodExec() (*api_core_v1.PodExecOptions, error)

AsAPIPodExec validate and returns PodExecOptions object pointer and error depending on ignoreErrors opt and errors

func (*PodExec) Validate

func (p *PodExec) Validate() error

Validate validates PodExecOptions it mainly checks for container name is present or not and commands are present or not.

Jump to

Keyboard shortcuts

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