exec

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecOptions

type ExecOptions struct {
	Command []string

	Namespace     string
	PodName       string
	ContainerName string

	Stdin         io.Reader
	CaptureStdout bool
	CaptureStderr bool
	// If false, whitespace in std{err,out} will be removed.
	PreserveWhitespace bool
}

ExecOptions passed to ExecWithOptions.

type IExec

type IExec interface {
	// ExecCommandInPodSet exec cmd in pod set.
	ExecCommandInPodSet(podSet []*corev1.Pod, cmd ...string) error
}

IExec is an injectable interface for running remote exec commands.

func NewRemoteExec

func NewRemoteExec(restGVKClient rest.Interface, config *rest.Config, logger logr.Logger) IExec

NewRemoteExec returns a new IExec which will exec remote cmd.

Jump to

Keyboard shortcuts

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