kubectl

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKubeconfig added in v0.1.0

func BuildKubeconfig(conf BuildKubeconfigConfig) (string, error)

Types

type BuildKubeconfigConfig added in v0.1.0

type BuildKubeconfigConfig struct {
	Name             string
	ApiserverAddress string
	Token            string
}

type Kubectl

type Kubectl struct {
	BinPath    string
	KubeConfig string
}

func NewKubectl

func NewKubectl() *Kubectl

func (*Kubectl) ApplyWithReader

func (c *Kubectl) ApplyWithReader(ctx context.Context, r io.Reader) error

func (*Kubectl) GetApiserverAddress added in v0.1.0

func (c *Kubectl) GetApiserverAddress(ctx context.Context) (string, error)

func (*Kubectl) GetKubeconfig

func (c *Kubectl) GetKubeconfig(ctx context.Context, address string) (string, error)

func (*Kubectl) GetSecretAuthorized added in v0.0.7

func (c *Kubectl) GetSecretAuthorized(ctx context.Context, namespaces, name string) (string, error)

func (*Kubectl) GetSecretIdentity added in v0.0.7

func (c *Kubectl) GetSecretIdentity(ctx context.Context, namespaces, name string) (string, error)

func (*Kubectl) GetTunnelAddress

func (c *Kubectl) GetTunnelAddress(ctx context.Context) (string, error)

func (*Kubectl) GetUnusedPort

func (c *Kubectl) GetUnusedPort(ctx context.Context) (string, error)

func (*Kubectl) Wrap

func (c *Kubectl) Wrap(ctx context.Context, args ...string) error

Jump to

Keyboard shortcuts

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