client

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubernetesClient

type KubernetesClient struct {
	Clientset kubernetes.Interface
}

func NewKubernetesClient

func NewKubernetesClient(kubeconfig string) (*KubernetesClient, error)

NewKubernetesClient creates a new Kubernetes client object from given configuration file. If configuration file is the empty string, in-cluster client will be created.

func (*KubernetesClient) GetSecretData

func (client *KubernetesClient) GetSecretData(namespace string, secretName string) (map[string][]byte, error)

GetSecretData returns the raw data from named K8s secret in given namespace

func (*KubernetesClient) GetSecretField

func (client *KubernetesClient) GetSecretField(namespace string, secretName string, field string) (string, error)

GetSecretField returns the value of a field from named K8s secret in given namespace

Jump to

Keyboard shortcuts

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