exec

package
v0.0.0-...-8528295 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoteCmd

func RemoteCmd(req Request) error

RemoteCmd will execute given exec object in kubernetes.

Types

type Request

type Request struct {
	// Client is the kubernetes clientset
	Client kubernetes.Interface
	// RestConfig is the kubernetes config
	RestConfig *rest.Config
	// Pod is the selected pod for this port forwarding
	Pod v1.Pod
	// Cmd contains the command to be executed
	Cmd []string
	// Container contains the name of the container in which the cmd should be executed
	Container string
	// Stdin contains a Reader if stdin is required (nil if ignored)
	Stdin io.Reader
	// Stdout contains a Writer if stdout is required (nil if ignored)
	Stdout io.Writer
	// Stderr contains a Writer if stderr is required (nil if ignored)
	Stderr io.Writer
	// TTY will enable interactive tty mode (requires stdin)
	TTY bool
}

Request is the structure used as argument for RemoteCmd

Jump to

Keyboard shortcuts

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