Documentation ¶
Index ¶
- Constants
- Variables
- func PromptPressAnyKeyToContinue() error
- type Command
- type CommandFactory
- type CommandStreamHandler
- type EksCtl
- func (e *EksCtl) Cmd() *Command
- func (e *EksCtl) CreateCluster(ctx context.Context, name, region string, runner Runner) error
- func (e *EksCtl) DeleteCluster(ctx context.Context, name, region string, runner Runner) error
- func (e *EksCtl) GetCluster() *EksCtl
- func (e *EksCtl) GetCredentials() *EksCtl
- func (e *EksCtl) IsRunning(ctx context.Context, 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(ctx context.Context, 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 Helm
- func (h *Helm) AddRepo(repoName, repoUrl string) *Helm
- func (h *Helm) Cmd() *Command
- func (h *Helm) Fetch(repoName, chartName string) *Helm
- func (h *Helm) Namespace(namespace string) *Helm
- func (h *Helm) Set(set string) *Helm
- func (h *Helm) SetEnv(set, envVar string) *Helm
- func (h *Helm) SetFile(set string) *Helm
- func (h *Helm) Target(target string) *Helm
- func (h *Helm) Template() *Helm
- func (h *Helm) UntarToDir(untarDir string) *Helm
- func (h *Helm) Version(version string) *Helm
- func (h *Helm) With(args ...string) *Helm
- 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(ctx context.Context, runner Runner) error
- func (k *Kubectl) File(file string) *Kubectl
- func (k *Kubectl) GetServiceIP(ctx context.Context, 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() *Minikube
- func (m *Minikube) IP(ctx context.Context, runner Runner) (string, error)
- func (m *Minikube) KubeVersion(kubeVersion string) *Minikube
- func (m *Minikube) Memory(mb int) *Minikube
- func (m *Minikube) Start() *Minikube
- func (m *Minikube) Status() *Minikube
- func (m *Minikube) SwallowError() *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 ¶
func PromptPressAnyKeyToContinue ¶ added in v0.4.0
func PromptPressAnyKeyToContinue() error
Types ¶
type Command ¶
type CommandFactory ¶
func (*CommandFactory) EksCtl ¶ added in v0.4.0
func (c *CommandFactory) EksCtl() *EksCtl
func (*CommandFactory) Gcloud ¶
func (c *CommandFactory) Gcloud() *Gcloud
func (*CommandFactory) Helm ¶
func (c *CommandFactory) Helm() *Helm
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 ¶ added in v0.4.0
type EksCtl ¶ added in v0.4.0
type EksCtl struct {
// contains filtered or unexported fields
}
func (*EksCtl) CreateCluster ¶ added in v0.4.0
func (*EksCtl) DeleteCluster ¶ added in v0.4.0
func (*EksCtl) GetCluster ¶ added in v0.4.0
func (*EksCtl) GetCredentials ¶ added in v0.4.0
func (*EksCtl) SwallowError ¶ added in v0.4.0
type Factory ¶
type Gcloud ¶
type Gcloud struct {
// contains filtered or unexported fields
}
func (*Gcloud) Ciphertext ¶ added in v0.1.6
func (*Gcloud) DecryptFile ¶ added in v0.1.6
func (*Gcloud) GetCredentials ¶
type Helm ¶
type Helm struct {
// contains filtered or unexported fields
}
func (*Helm) UntarToDir ¶
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 ¶ added in v0.2.0
func (*Kubectl) IgnoreNotFound ¶
func (*Kubectl) OutJsonpath ¶ added in v0.2.0
func (*Kubectl) SwallowErrorLog ¶ added in v0.4.0
func (*Kubectl) UseContext ¶
type Minikube ¶
type Minikube struct {
// contains filtered or unexported fields
}
func (*Minikube) KubeVersion ¶
func (*Minikube) SwallowError ¶
type Reporter ¶ added in v0.3.0
type Runner ¶ added in v0.4.0
type Runner interface { Run(ctx context.Context, c *Command) error Output(ctx context.Context, c *Command) (string, error) Stream(ctx context.Context, c *Command) (*CommandStreamHandler, error) Request(ctx context.Context, req *http.Request) (string, int, error) }
func DefaultCommandRunner ¶ added in v0.4.0
func DefaultCommandRunner() Runner
Source Files ¶
Click to show internal directories.
Click to hide internal directories.