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 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 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 ¶
func (Kubectl) WaitForWorkloadResources ¶
func (k Kubectl) WaitForWorkloadResources(context context.Context, namespace string, selector string) error
WaitForWorkloadResources returns nil when all pods for requested workload resources are confirmed ready or an error if resources cannot be confirmed ready before the timeout is exceeded. Currently checks deployments, daemonSets, and statefulSets.
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.