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)
Click to show internal directories.
Click to hide internal directories.