exec

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdExec

func NewCmdExec(f util.Factory, parentCommand string, streams genericiooptions.IOStreams) *cobra.Command

NewCmdExec new exec command.

Types

type CommandExecOptions

type CommandExecOptions struct {
	// flags specific to exec
	KubectlExecOptions *kubectlexec.ExecOptions
	Cluster            string
}

CommandExecOptions declare the arguments accepted by the Exec command

func (*CommandExecOptions) Complete

func (o *CommandExecOptions) Complete(f util.Factory, cmd *cobra.Command, argsIn []string, argsLenAtDash int) error

Complete verifies command line arguments and loads data from the command environment

func (*CommandExecOptions) Run

func (o *CommandExecOptions) Run() error

Run executes a validated remote execution against a pod.

func (*CommandExecOptions) Validate

func (o *CommandExecOptions) Validate() error

Validate checks that the provided exec options are specified.

Jump to

Keyboard shortcuts

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