kubernetes

package
v0.7.12 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceTokenFile  = "/var/run/secrets/kubernetes.io/serviceaccount/token"
	ServiceRootCAFile = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
	ServiceNamespace  = "/var/run/secrets/kubernetes.io/serviceaccount/namespace"
)
View Source
const (
	KubeconfigMock   = "mock"
	EnvVarKubeconfig = "KUBE_CONFIG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

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

func MustNewEnvironment

func MustNewEnvironment(s *settings.Settings) *Environment

func NewEnvironment

func NewEnvironment(s *settings.Settings) (env *Environment, err error)

func (*Environment) ContextName

func (this *Environment) ContextName() (string, error)

func (*Environment) NewClient

func (this *Environment) NewClient() (kubernetes.Interface, error)

func (*Environment) NewDynamicClient

func (this *Environment) NewDynamicClient() (dynamic.Interface, error)

Jump to

Keyboard shortcuts

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