attach

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdAttach

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

NewCmdAttach new attach command.

Types

type CommandAttachOptions

type CommandAttachOptions struct {
	// flags specific to attach
	*kubectlattach.AttachOptions
	Cluster        string
	OperationScope options.OperationScope
}

CommandAttachOptions declare the arguments accepted by the attach command

func (*CommandAttachOptions) Complete

func (o *CommandAttachOptions) Complete(f util.Factory, cmd *cobra.Command, args []string) error

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

func (*CommandAttachOptions) Run

func (o *CommandAttachOptions) Run() error

Run executes a validated remote execution against a pod.

func (*CommandAttachOptions) Validate

func (o *CommandAttachOptions) Validate() error

Validate checks that the provided attach options are specified.

Jump to

Keyboard shortcuts

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