k8s

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeClient added in v0.4.0

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

KubeClient represents Kubernetes client and calculated namespace

func NewKubeClient

func NewKubeClient(kubeconfig, context, namespace string) (*KubeClient, error)

NewKubeClient creates new Kubernetes API client

func (*KubeClient) CreateSecret added in v0.4.0

func (c *KubeClient) CreateSecret(secret *v1.Secret) (*v1.Secret, error)

CreateSecret creates new Secret

func (*KubeClient) GetSecret added in v0.4.0

func (c *KubeClient) GetSecret(name string) (*v1.Secret, error)

GetSecret returns secret with the given name

func (*KubeClient) ListSecrets added in v0.4.0

func (c *KubeClient) ListSecrets() (*v1.SecretList, error)

ListSecrets returns the list of Secrets

func (*KubeClient) UpdateSecret added in v0.4.0

func (c *KubeClient) UpdateSecret(secret *v1.Secret) (*v1.Secret, error)

UpdateSecret updates the existed secret

Jump to

Keyboard shortcuts

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