kubernetescli

package
v0.0.0-...-0312a9a Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(args ...string)

func ExecuteCmd

func ExecuteCmd(logOutput bool, args ...string)

func GetDeployments

func GetDeployments(namespace string)

func GetPods

func GetPods(namespace string)

func GetStatefulSets

func GetStatefulSets(namespace string)

func GetVolumes

func GetVolumes(namespace string)

func RedirectOutput

func RedirectOutput(stdOutFile *os.File, stdErrFile *os.File, args ...string)

Types

type CLIKubernetesClient

type CLIKubernetesClient string
var (
	Kubectl CLIKubernetesClient = "kubectl"
	Oc      CLIKubernetesClient = "oc"
)

type KubernetesClient

type KubernetesClient struct {
	Cmd CLIKubernetesClient
}

func GetCLIKubernetesClient

func GetCLIKubernetesClient() *KubernetesClient

func NewCLIKubernetesClient

func NewCLIKubernetesClient(cmd CLIKubernetesClient) *KubernetesClient

Jump to

Keyboard shortcuts

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