kube

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetInstance

func SetInstance(kc ClientInstance)

SetInstance allows the user to set the kubeClient singleton

Types

type ClientInstance

type ClientInstance struct {
	Client kubernetes.Interface
}

ClientInstance is a wrapper around the kubernetes interface for testing purposes

func GetInstance

func GetInstance() *ClientInstance

GetInstance returns a Kubernetes interface based on the current configuration

func SetAndGetMock

func SetAndGetMock() *ClientInstance

SetAndGetMock sets the singleton's interface to use a fake ClientSet

Jump to

Keyboard shortcuts

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