k8s

package
v0.0.0-...-b0b6c39 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8S

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

func NewK8sClient

func NewK8sClient(chaosType, filter, namespace, kubeconfig, k8sContext string) (*K8S, error)

func (*K8S) Chaos

func (k *K8S) Chaos() chaos.Chaos

func (*K8S) GetContainers

func (k *K8S) GetContainers(ctx context.Context, all bool) ([]container.Container, error)

func (*K8S) RmContainer

func (k *K8S) RmContainer(ctx context.Context, name string) error

func (*K8S) StartContainer

func (k *K8S) StartContainer(ctx context.Context, name string) error

func (*K8S) StopContainer

func (k *K8S) StopContainer(ctx context.Context, name string) error

func (*K8S) Type

func (k *K8S) Type() string

Jump to

Keyboard shortcuts

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