kube_config

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MimeTypeYaml = "application/x-yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type CAValueProvider

type CAValueProvider func() string

type Endpoints

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

func NewEndpoints

func NewEndpoints(c *KubeConfig) *Endpoints

func (*Endpoints) GetKubeConfig

func (e *Endpoints) GetKubeConfig(w http.ResponseWriter, req *http.Request)

type KubeConfig

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

func NewKubeConfig

func NewKubeConfig(clusterName, url string, caProvider CAValueProvider, namespace string) *KubeConfig

NewKubeConfig return new instance of KubeConfig CAValueProvider is used to return current cluster CA data, it can change after cluster certificates renewal.

func (*KubeConfig) Generate

func (c *KubeConfig) Generate(output io.Writer, token string)

Jump to

Keyboard shortcuts

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