kube

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client() (*kubernetes.Clientset, error)

func Config

func Config() string

Types

type Kube

type Kube struct {
	Client *kubernetes.Clientset
}

func (*Kube) CreateService

func (k *Kube) CreateService(ctx context.Context, namespace string, hostname string, internalname string) error

CreateService Creates or updates a service in Kubernetes with the new information

func (*Kube) DeleteService

func (k *Kube) DeleteService(ctx context.Context, namespace string, dbname string) error

func (*Kube) GetSecret

func (k *Kube) GetSecret(ctx context.Context, namespace string, name string, key string) (string, error)

Jump to

Keyboard shortcuts

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