Documentation ¶
Index ¶
- Constants
- Variables
- func PromptPressAnyKeyToContinue(nextStep string) error
- type Command
- type CommandFactory
- type CommandStreamHandler
- type EksCtl
- func (e *EksCtl) Cmd() *Command
- func (e *EksCtl) CreateCluster(name, region string, runner Runner) error
- func (e *EksCtl) DeleteCluster(name, region string, runner Runner) error
- func (e *EksCtl) GetCluster() *EksCtl
- func (e *EksCtl) GetCredentials() *EksCtl
- func (e *EksCtl) IsRunning(name, region string, runner Runner) (bool, error)
- func (e *EksCtl) Name(name string) *EksCtl
- func (e *EksCtl) Region(region string) *EksCtl
- func (e *EksCtl) SwallowError() *EksCtl
- func (e *EksCtl) With(args ...string) *EksCtl
- func (e *EksCtl) WithName(name string) *EksCtl
- func (e *EksCtl) WriteKubeConfig(name, region string, runner Runner) error
- type Factory
- type Gcloud
- func (g *Gcloud) Ciphertext(cipherText string) *Gcloud
- func (g *Gcloud) Cmd() *Command
- func (g *Gcloud) DecryptFile(cipherText, plainText, project, keyring, key string) *Gcloud
- func (g *Gcloud) GetCredentials() *Gcloud
- func (g *Gcloud) Global() *Gcloud
- func (g *Gcloud) Key(key string) *Gcloud
- func (g *Gcloud) Keyring(keyring string) *Gcloud
- func (g *Gcloud) Kms(operation string) *Gcloud
- func (g *Gcloud) Plaintext(plainText string) *Gcloud
- func (g *Gcloud) Project(project string) *Gcloud
- func (g *Gcloud) With(args ...string) *Gcloud
- func (g *Gcloud) WithName(name string) *Gcloud
- func (g *Gcloud) Zone(zone string) *Gcloud
- type Kubectl
- func (k *Kubectl) Apply() *Kubectl
- func (k *Kubectl) ApplyFile(path string) *Kubectl
- func (k *Kubectl) ApplyStdIn(stdIn string) *Kubectl
- func (k *Kubectl) Cmd() *Command
- func (k *Kubectl) Context(context string) *Kubectl
- func (k *Kubectl) Create(typeToCreate string) *Kubectl
- func (k *Kubectl) CurrentContext() *Kubectl
- func (k *Kubectl) Delete(typeToDelete string) *Kubectl
- func (k *Kubectl) DeleteFile(path string) *Kubectl
- func (k *Kubectl) DeleteStdIn(stdIn string) *Kubectl
- func (k *Kubectl) DryRun() *Kubectl
- func (k *Kubectl) DryRunAndApply(runner Runner) error
- func (k *Kubectl) File(file string) *Kubectl
- func (k *Kubectl) GetServiceIP(namespace, name string, runner Runner) (string, error)
- func (k *Kubectl) IgnoreNotFound() *Kubectl
- func (k *Kubectl) JsonPatch(jsonPatch string) *Kubectl
- func (k *Kubectl) Namespace(ns string) *Kubectl
- func (k *Kubectl) OutJsonpath(jsonpath string) *Kubectl
- func (k *Kubectl) OutYaml() *Kubectl
- func (k *Kubectl) Redact(unredacted, redacted string) *Kubectl
- func (k *Kubectl) SwallowErrorLog(swallow bool) *Kubectl
- func (k *Kubectl) UseContext(context string) *Kubectl
- func (k *Kubectl) With(args ...string) *Kubectl
- func (k *Kubectl) WithName(name string) *Kubectl
- func (k *Kubectl) WithStdIn(stdIn string) *Kubectl
- type Minikube
- func (m *Minikube) Cmd() *Command
- func (m *Minikube) Cpus(cpus int) *Minikube
- func (m *Minikube) Delete(runner Runner) error
- func (m *Minikube) FeatureGates(featureGates []string) *Minikube
- func (m *Minikube) IP(runner Runner) (string, error)
- func (m *Minikube) KubeVersion(kubeVersion string) *Minikube
- func (m *Minikube) Memory(mb int) *Minikube
- func (m *Minikube) Start(runner Runner) error
- func (m *Minikube) Status() *Minikube
- func (m *Minikube) SwallowError() *Minikube
- func (m *Minikube) VmDriver(vmDriver string) *Minikube
- func (m *Minikube) With(args ...string) *Minikube
- type Printer
- type Reporter
- type Runner
Constants ¶
View Source
const ( Redacted = "REDACTED" Empty = "EMPTY" )
View Source
const ( KubectlCmd = "kubectl" HelmCmd = "helm" GcloudCmd = "gcloud" MinikubeCmd = "minikube" EksCtlCmd = "eksctl" )
View Source
const (
Decrypt = "decrypt"
)
Variables ¶
View Source
var ( CommandError = func(err error) error { return errors.Wrapf(err, "command error") } )
Functions ¶
Types ¶
type Command ¶
type CommandFactory ¶
func (*CommandFactory) EksCtl ¶
func (c *CommandFactory) EksCtl() *EksCtl
func (*CommandFactory) Gcloud ¶
func (c *CommandFactory) Gcloud() *Gcloud
func (*CommandFactory) Kubectl ¶
func (c *CommandFactory) Kubectl() *Kubectl
func (*CommandFactory) Minikube ¶
func (c *CommandFactory) Minikube() *Minikube
func (*CommandFactory) SetLocalPath ¶
func (c *CommandFactory) SetLocalPath(path, localPath string)
type CommandStreamHandler ¶
type CommandStreamHandler struct { WaitFunc func() error Stdout io.Reader Stderr io.Reader Process *exec.Cmd }
func (*CommandStreamHandler) StreamHelper ¶
func (c *CommandStreamHandler) StreamHelper(inputErr error) error
type EksCtl ¶
type EksCtl struct {
// contains filtered or unexported fields
}
func (*EksCtl) CreateCluster ¶
func (*EksCtl) DeleteCluster ¶
func (*EksCtl) GetCluster ¶
func (*EksCtl) GetCredentials ¶
func (*EksCtl) SwallowError ¶
type Factory ¶
type Gcloud ¶
type Gcloud struct {
// contains filtered or unexported fields
}
func (*Gcloud) Ciphertext ¶
func (*Gcloud) DecryptFile ¶
func (*Gcloud) GetCredentials ¶
type Kubectl ¶
type Kubectl struct {
// contains filtered or unexported fields
}
func (*Kubectl) ApplyStdIn ¶
func (*Kubectl) CurrentContext ¶
func (*Kubectl) DeleteFile ¶
func (*Kubectl) DeleteStdIn ¶
func (*Kubectl) DryRunAndApply ¶
func (*Kubectl) GetServiceIP ¶
func (*Kubectl) IgnoreNotFound ¶
func (*Kubectl) OutJsonpath ¶
func (*Kubectl) SwallowErrorLog ¶
func (*Kubectl) UseContext ¶
type Minikube ¶
type Minikube struct {
// contains filtered or unexported fields
}
func (*Minikube) FeatureGates ¶
func (*Minikube) KubeVersion ¶
func (*Minikube) SwallowError ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.