k8s

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sClient

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

func NewK8sClient

func NewK8sClient(client kubernetes.Interface, ns string) *K8sClient

func NewK8sClientFromConfig

func NewK8sClientFromConfig(config *K8sConfig) (*K8sClient, error)

func (*K8sClient) CreateSecret

func (c *K8sClient) CreateSecret(secretname string, secrets map[string]string, tls bool) error

func (*K8sClient) GetNamespace

func (c *K8sClient) GetNamespace() string

func (*K8sClient) GetSecret

func (c *K8sClient) GetSecret(secretname string) (map[string]string, error)

func (*K8sClient) SetNamespace

func (c *K8sClient) SetNamespace(ns string)

func (*K8sClient) UpdateSecret

func (c *K8sClient) UpdateSecret(secretname string, secrets map[string]string) error

type K8sConfig

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

func NewK8sConfig

func NewK8sConfig() (*K8sConfig, error)

Jump to

Keyboard shortcuts

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