tool

package
v0.0.0-...-29c0a4e Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConfig

func GetClientConfig(envSettings *cli.EnvSettings) clientcmd.ClientConfig

func GetDecodedKey

func GetDecodedKey(publicKey string) ([]byte, error)

func GetEncodedKey

func GetEncodedKey(publicKeyFileName string) (string, error)

func GetKeyRing

func GetKeyRing(targetDir string, publicKeys []string) (string, error)

func GetKubeOpenShiftVersionMap

func GetKubeOpenShiftVersionMap() map[string]string

func GetLatestKubeVersion

func GetLatestKubeVersion() string

func GetPublicKeyDigest

func GetPublicKeyDigest(publicKey string) (string, error)

Types

type Helm

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

func NewHelm

func NewHelm(envSettings *cli.EnvSettings, args map[string]interface{}, timeout time.Duration) (*Helm, error)

func (Helm) Install

func (h Helm) Install(ctx context.Context, namespace, chart, release, valuesFile string) error

func (Helm) Test

func (h Helm) Test(ctx context.Context, namespace, release string) error

func (Helm) Uninstall

func (h Helm) Uninstall(namespace, release string) error

func (Helm) Upgrade

func (h Helm) Upgrade(ctx context.Context, namespace, chart, release string) error

type Kubectl

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

func NewKubectl

func NewKubectl(kubeConfig clientcmd.ClientConfig) (*Kubectl, error)

func (Kubectl) DeleteNamespace

func (k Kubectl) DeleteNamespace(context context.Context, namespace string) error

func (Kubectl) GetServerVersion

func (k Kubectl) GetServerVersion() (*version.Info, error)

func (Kubectl) WaitForDeployments

func (k Kubectl) WaitForDeployments(context context.Context, namespace string, selector string) error

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

type ProcessExecutorer interface {
	RunProcessAndCaptureOutput(executable string, execArgs ...interface{}) (string, error)
}

Jump to

Keyboard shortcuts

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