exec

package
v0.6.0-beta.23 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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 genericclioptions.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