kubelet

package
v3.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeletExecutor

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

func NewKubeletExecutor

func NewKubeletExecutor(namespace, podName string) (*KubeletExecutor, error)

func (*KubeletExecutor) CopyFile

func (k *KubeletExecutor) CopyFile(containerName string, sourcePath string, destPath string, compressionLevel int) error

func (*KubeletExecutor) GetFileContents

func (k *KubeletExecutor) GetFileContents(containerName string, sourcePath string) (string, error)

func (*KubeletExecutor) GetOutputStream

func (k *KubeletExecutor) GetOutputStream(ctx context.Context, containerName string, combinedOutput bool) (io.ReadCloser, error)

func (*KubeletExecutor) Kill

func (k *KubeletExecutor) Kill(ctx context.Context, containerNames []string, terminationGracePeriodDuration time.Duration) error

Kill kills a list of containers first with a SIGTERM then with a SIGKILL after a grace period

func (*KubeletExecutor) ListContainerNames

func (k *KubeletExecutor) ListContainerNames(ctx context.Context) ([]string, error)

func (*KubeletExecutor) Wait

func (k *KubeletExecutor) Wait(ctx context.Context, containerNames []string) error

Wait for the container to complete

Jump to

Keyboard shortcuts

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