kube

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSON

func ParseJSON(item string, keys ...string) (result string, err error)

ParseJSON dynamically parses a json string

Types

type K8s

type K8s struct {
	// contains filtered or unexported fields
}

K8s represents a connection to Kubernetes

func NewK8s

func NewK8s() *K8s

NewK8s populates a new connection

func (*K8s) FindPod

func (k8s *K8s) FindPod(name, namespace string) (result string, err error)

FindPod finds a pod based on the namespace and the name label

func (*K8s) ForwardPod

func (k8s *K8s) ForwardPod(name, namespace, port string) chan struct{}

ForwardPod establishes a persistent connection to a remote pod

func (*K8s) FromConfigMap

func (k8s *K8s) FromConfigMap(name, namespace, key string) (result string, err error)

FromConfigMap reads an entry from a ConfigMap

func (*K8s) FromSecret

func (k8s *K8s) FromSecret(name, namespace, key string) (result string, err error)

FromSecret reads an entry from a Secret

Jump to

Keyboard shortcuts

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