kubectl

package
v0.8.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildKubeconfig

func BuildKubeconfig(conf BuildKubeconfigConfig) (string, error)

Types

type BuildKubeconfigConfig

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

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

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

func (*Kubectl) GetSecretIdentity

func (c *Kubectl) GetSecretIdentity(ctx context.Context) (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

type Version added in v0.4.1

type Version struct {
	ClientVersion    *apimachineryversion.Info `json:"clientVersion,omitempty" yaml:"clientVersion,omitempty"`
	KustomizeVersion string                    `json:"kustomizeVersion,omitempty" yaml:"kustomizeVersion,omitempty"`
	ServerVersion    *apimachineryversion.Info `json:"serverVersion,omitempty" yaml:"serverVersion,omitempty"`
}

Version is a struct for version information

Jump to

Keyboard shortcuts

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