Documentation ¶
Index ¶
- func GetClientConfig(envSettings *cli.EnvSettings) clientcmd.ClientConfig
- func GetDecodedKey(publicKey string) ([]byte, error)
- func GetEncodedKey(publicKeyFileName string) (string, error)
- func GetKeyRing(targetDir string, publicKeys []string) (string, error)
- func GetKubeOpenShiftVersionMap() map[string]string
- func GetLatestKubeVersion() string
- func GetPublicKeyDigest(publicKey string) (string, error)
- type Helm
- func (h Helm) Install(ctx context.Context, namespace, chart, release, valuesFile string) error
- func (h Helm) Test(ctx context.Context, namespace, release string) error
- func (h Helm) Uninstall(namespace, release string) error
- func (h Helm) Upgrade(ctx context.Context, namespace, chart, release string) error
- type Kubectl
- type ProcessExecutor
- type ProcessExecutorer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientConfig ¶
func GetClientConfig(envSettings *cli.EnvSettings) clientcmd.ClientConfig
func GetDecodedKey ¶
func GetEncodedKey ¶
func GetLatestKubeVersion ¶
func GetLatestKubeVersion() string
func GetPublicKeyDigest ¶
Types ¶
type Helm ¶
type Helm struct {
// contains filtered or unexported fields
}
type Kubectl ¶
type Kubectl struct {
// contains filtered or unexported fields
}
func NewKubectl ¶
func NewKubectl(kubeConfig clientcmd.ClientConfig) (*Kubectl, error)
func (Kubectl) DeleteNamespace ¶
type ProcessExecutor ¶
type ProcessExecutor struct {
exec.ProcessExecutor
}
func NewProcessExecutor ¶
func NewProcessExecutor(debug bool) ProcessExecutor
func (ProcessExecutor) RunProcessAndCaptureOutput ¶
func (p ProcessExecutor) RunProcessAndCaptureOutput(executable string, execArgs ...interface{}) (string, error)
func (ProcessExecutor) RunProcessInDirAndCaptureOutput ¶
func (p ProcessExecutor) RunProcessInDirAndCaptureOutput( workingDirectory string, executable string, execArgs ...interface{}, ) (string, error)
RunProcessInDirAndCaptureOutput overrides exec.ProcessExecutor's and inject the command line and any streamed content to either Stdout or Stderr into the returned error, if any.
type ProcessExecutorer ¶
Click to show internal directories.
Click to hide internal directories.