k8s

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExist = errors.New("object does not exist")

Functions

func GetSecret

func GetSecret(namespace, key, data string) (string, error)

GetSecret with secret from k8s

func WaitForKubernetesProxy

func WaitForKubernetesProxy()

Types

type ConfigMap

type ConfigMap struct {
	ApiVersion string            `json:"apiVersion"`
	Data       map[string]string `json:"data"`
	Kind       string            `json:"kind"`
	Metadata   Metadata          `json:"metadata"`
}

type ConfigMapList

type ConfigMapList struct {
	Items []ConfigMap `json:"items"`
}

type Metadata

type Metadata struct {
	Name        string            `json:"name"`
	Namespace   string            `json:"namespace"`
	Annotations map[string]string `json:"annotations,omitempty"`
}

type Namespace

type Namespace struct {
	Metadata Metadata `json:"metadata"`
}

type NamespaceList

type NamespaceList struct {
	Items []Namespace `json:"items"`
}

type Secret

type Secret struct {
	ApiVersion string            `json:"apiVersion"`
	Data       map[string]string `json:"data"`
	StringData map[string]string `json:"stringData,omitempty"`
	Kind       string            `json:"kind"`
	Metadata   Metadata          `json:"metadata"`
	Type       string            `json:"type"`
}

type SecretList

type SecretList struct {
	Items []Secret `json:"items"`
}

Jump to

Keyboard shortcuts

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