Help us shape the future of Go! Take the 2026 Go Developer Survey

kubernetes

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOptions

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

type Config

type Config struct {
	Log Logger
}

type KubeConfigOptions

type KubeConfigOptions struct {
	ClusterName   string
	ClusterServer string
	ClusterCA     string
	AuthName      string
	AuthToken     string
	ContextName   string

	// Set to true to make context current
	ContextSetCurrent bool

	// Default namespace
	ContextDefaultNamespace string
}

type Kubernetes

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

func New

func New(kconf *Config) (*Kubernetes, error)

func (*Kubernetes) SetKubeconfig

func (k *Kubernetes) SetKubeconfig(kubeConfigOptions *KubeConfigOptions) error

type Logger

type Logger interface {
	Debug(...interface{})
	Warn(...interface{})
	Fatal(...interface{})
}

Jump to

Keyboard shortcuts

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