kubernetes

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v0.2.0

func NewClient(kubeConfigPath KubeConfigPath, kubeConfigContext KubeConfigContext) (client.Client, error)

NewClient creates a new controller-runtime Client using the following priorities: 1) kubeconfig file, 2) $KUBECONFIG environment variable, 3) $HOME/.kube/config file kubeConfigContext is used if it is supplied.

func PodExec

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

Types

type KubeConfigContext added in v0.2.0

type KubeConfigContext string

KubeConfigContext represents a named context in a kubeconfig file

type KubeConfigPath added in v0.2.0

type KubeConfigPath string

KubeConfigPath represents the path to a kubeconfig file

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