exec

package
v0.7.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: AGPL-3.0 Imports: 14 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 {
	cmdexec.StreamOptions

	Factory  cmdutil.Factory
	Executor cmdexec.RemoteExecutor
	Config   *restclient.Config
	Client   *kubernetes.Clientset
	Dynamic  dynamic.Interface

	// Pod target pod to execute command
	Pod *corev1.Pod

	// Command is the command to execute
	Command []string
}

func NewExecOptions

func NewExecOptions(f cmdutil.Factory, streams genericiooptions.IOStreams) *ExecOptions

func (*ExecOptions) Complete

func (o *ExecOptions) Complete() error

Complete receives exec parameters

func (*ExecOptions) Run

func (o *ExecOptions) Run() error

func (*ExecOptions) RunWithRedirect

func (o *ExecOptions) RunWithRedirect(outWriter io.Writer, errWriter io.Writer) error

Jump to

Keyboard shortcuts

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