exec

package
v0.30.36 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotRunning = errors.New("container not running")

Functions

func CheckForRunningContainer

func CheckForRunningContainer(check bool) func(*Options)

func Command

func Command(cmd ...string) func(*Options)

func Container

func Container(container string) func(*Options)

func Exec

func Exec(config *rest.Config, pod types.NamespacedName, options ...func(*Options)) (string, error)

func ExecIntoPod

func ExecIntoPod(config *rest.Config, pod *core.Pod, options ...func(*Options)) (string, error)

func Input

func Input(in string) func(*Options)

func TTY

func TTY(enable bool) func(*Options)

Types

type Options

type Options struct {
	core.PodExecOptions
	remotecommand.StreamOptions
	CheckForRunningContainer bool
}

Jump to

Keyboard shortcuts

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