kubectl

package
v0.0.0-...-0db023b Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(flags *genericclioptions.ConfigFlags, args []string) error

Exec replaces the current process with a kubectl invocation

func ExecToString

func ExecToString(flags *genericclioptions.ConfigFlags, args []string) (string, error)

ExecToString runs a kubectl subcommand and returns stdout as a string

func PodExecString

func PodExecString(flags *genericclioptions.ConfigFlags, pod *apiv1.Pod, args []string) (string, error)

PodExecString takes a pod and a command, uses kubectl exec to run the command in the pod and returns stdout as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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