kubernetes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRestConfig

func NewRestConfig(kubeconfig string, context string) (*rest.Config, error)

NewRestConfig creates a *rest.Config using the following priorities: 1) kubeconfig file, 2) $KUBECONFIG environment variable, 3) $HOME/.kube/config file Context is used if it is supplied.

func PodExec

func PodExec(ctx context.Context, input PodExecInput) (string, string, error)

Types

type PodExecInput

type PodExecInput struct {
	RestConfig       *rest.Config
	KubernetesClient kubernetes.Interface
	Namespace        string
	Name             string
	Container        string
	Command          []string
}

Jump to

Keyboard shortcuts

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