kubernetes

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTypeClientCerts authType = "certs"
	AuthTypeExec        authType = "exec"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecCache added in v0.5.0

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

func NewExecCache added in v0.5.0

func NewExecCache(fs afero.Fs, cachedir string) *ExecCache

func NewUserExecCache added in v0.5.0

func NewUserExecCache(fs afero.Fs) (*ExecCache, error)

func (*ExecCache) Clean added in v0.5.0

func (ec *ExecCache) Clean(clusterid string) error

func (*ExecCache) ExecConfig added in v0.5.0

func (ec *ExecCache) ExecConfig(clusterid string, kubeRaw string, exp time.Duration) (*c.ExecCredential, error)

func (*ExecCache) LoadCachedCredentials added in v0.5.0

func (ec *ExecCache) LoadCachedCredentials(clusterid string) (*c.ExecCredential, error)

type Kubeconfig added in v0.5.4

type Kubeconfig struct {
	Raw         []byte
	Path        string
	ContextName string
}

func NewKubeconfigFromRaw added in v0.5.4

func NewKubeconfigFromRaw(fs afero.Fs, in io.Reader, out io.Writer, raw []byte, projectName *string, projectid, clusterid string) (*Kubeconfig, error)

Jump to

Keyboard shortcuts

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