kubectl

package
v0.23.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kubectl

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

func New

func New(command string) *Kubectl

func (*Kubectl) AddFlag

func (k *Kubectl) AddFlag(flag string) *Kubectl

func (*Kubectl) AddParameter

func (k *Kubectl) AddParameter(key, value string) *Kubectl

func (*Kubectl) Build

func (k *Kubectl) Build() exec.Cmd

type KubectlApply

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

func NewApply

func NewApply(resultFilePath string) *KubectlApply

func (*KubectlApply) Build

func (k *KubectlApply) Build() exec.Cmd

func (*KubectlApply) Force added in v0.21.1

func (k *KubectlApply) Force() *KubectlApply

type KubectlDelete

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

func NewDelete

func NewDelete(resultFilePath string) *KubectlDelete

func (*KubectlDelete) Build

func (k *KubectlDelete) Build() exec.Cmd

type KubectlLabel

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

func NewLabel

func NewLabel(resultFilePath string) *KubectlLabel

func (*KubectlLabel) AddParameter

func (k *KubectlLabel) AddParameter(key, value string) *KubectlLabel

func (*KubectlLabel) Apply

func (k *KubectlLabel) Apply(monitor mntr.Monitor, labels map[string]string) error

type KubectlVersion

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

func NewVersion

func NewVersion() *KubectlVersion

func (*KubectlVersion) GetKubeVersion

func (k *KubectlVersion) GetKubeVersion(monitor mntr.Monitor) (string, error)

type Version

type Version struct {
	BuildDate    string `yaml:"buildDate"`
	Compiler     string `yaml:"compiler"`
	GitCommit    string `yaml:"gitCommit"`
	GitTreeState string `yaml:"gitTreeState"`
	GitVersion   string `yaml:"gitVersion"`
	GoVersion    string `yaml:"goVersion"`
	Major        string `yaml:"major"`
	Minor        string `yaml:"minor"`
	Platform     string `yaml:"platform"`
}

type Versions

type Versions struct {
	ClientVersion *Version `yaml:"clientVersion"`
	ServerVersion *Version `yaml:"serverVersion"`
}

Jump to

Keyboard shortcuts

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