Help us shape the future of Go! Take the 2026 Go Developer Survey

pns

package
v3.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PNSExecutor

type PNSExecutor struct {
	*k8sapi.K8sAPIExecutor
	// contains filtered or unexported fields
}

func NewPNSExecutor

func NewPNSExecutor(clientset *kubernetes.Clientset, podName, namespace string) (*PNSExecutor, error)

func (*PNSExecutor) CopyFile

func (p *PNSExecutor) CopyFile(containerName string, sourcePath string, destPath string, compressionLevel int) (err error)

CopyFile copies a source file in a container to a local path

func (*PNSExecutor) GetFileContents

func (p *PNSExecutor) GetFileContents(containerName string, sourcePath string) (string, error)

func (*PNSExecutor) Kill

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

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

func (*PNSExecutor) ListContainerNames

func (p *PNSExecutor) ListContainerNames(ctx context.Context) ([]string, error)

func (*PNSExecutor) Wait

func (p *PNSExecutor) Wait(ctx context.Context, containerNames []string) error

Jump to

Keyboard shortcuts

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