kind

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

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

func NewKind

func NewKind(kindVersion, kubernetesVersion, binDir, kubeConfigPath string) *Kind

func (*Kind) Capture

func (k *Kind) Capture(ctx context.Context, args []string) (stdout string, stderr string, err error)

Capture execute command with returning outs as string.

func (*Kind) CreateCluster

func (k *Kind) CreateCluster(ctx context.Context, clusterName string) error

func (*Kind) DeleteCluster

func (k *Kind) DeleteCluster(ctx context.Context, clusterName string) error

func (*Kind) Dir

func (k *Kind) Dir() string

func (*Kind) Envs

func (k *Kind) Envs() []string

func (*Kind) Execute

func (k *Kind) Execute(ctx context.Context, args []string) error

Execute If OutPut is necessary, use Capture. Execute uses os.Stderr.

func (*Kind) Name

func (k *Kind) Name() string

func (*Kind) Path

func (k *Kind) Path() string

func (*Kind) URL added in v1.1.0

func (k *Kind) URL() string

func (*Kind) Version

func (k *Kind) Version() string

Jump to

Keyboard shortcuts

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