Documentation
¶
Index ¶
- type CommandResult
- type CommandRunner
- type ConfigMap
- type HelmChart
- func (h *HelmChart) Delete() *HelmChart
- func (h *HelmChart) DryRun() *HelmChart
- func (h *HelmChart) Error() error
- func (h *HelmChart) GetConfigMap(name string) *ConfigMap
- func (h *HelmChart) GetPVC(name string) *PVC
- func (h *HelmChart) GetPod(selector string) *Pod
- func (h *HelmChart) GetSecret(name string) *Secret
- func (h *HelmChart) GetStatefulSet(name string) *StatefulSet
- func (h *HelmChart) Install() *HelmChart
- func (h *HelmChart) MustSucceed() *HelmChart
- func (h *HelmChart) Namespace(ns string) *HelmChart
- func (h *HelmChart) NoColor() *HelmChart
- func (h *HelmChart) Release(name string) *HelmChart
- func (h *HelmChart) Result() CommandResult
- func (h *HelmChart) SetValue(key string, value interface{}) *HelmChart
- func (h *HelmChart) Status() (string, error)
- func (h *HelmChart) Upgrade() *HelmChart
- func (h *HelmChart) Values(values map[string]interface{}) *HelmChart
- func (h *HelmChart) Wait() *HelmChart
- func (h *HelmChart) WaitFor(timeout time.Duration) *HelmChart
- func (h *HelmChart) WithPassword(secretName string) *HelmChart
- type Kind
- func (k *Kind) Delete() *Kind
- func (k *Kind) Error() error
- func (k *Kind) Exists() bool
- func (k *Kind) GetKubeconfig() (string, error)
- func (k *Kind) GetOrCreate() *Kind
- func (k *Kind) LoadImage(image string) *Kind
- func (k *Kind) MustSucceed() *Kind
- func (k *Kind) NoColor() *Kind
- func (k *Kind) Result() CommandResult
- func (k *Kind) SetKubeconfig() *Kind
- func (k *Kind) Use() *Kind
- func (k *Kind) WithVersion(version string) *Kind
- type Namespace
- type PVC
- type Pod
- func (p *Pod) Container(name string) *Pod
- func (p *Pod) Error() error
- func (p *Pod) Exec(command string) *Pod
- func (p *Pod) GetLogs(lines ...int) string
- func (p *Pod) MustSucceed() *Pod
- func (p *Pod) Result() string
- func (p *Pod) Status() (string, error)
- func (p *Pod) WaitFor(condition string, timeout time.Duration) *Pod
- func (p *Pod) WaitReady() *Pod
- type Secret
- type StatefulSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandResult ¶
CommandResult holds the result of a command execution
func (CommandResult) String ¶
func (r CommandResult) String() string
String returns a formatted string of the command result
type CommandRunner ¶
type CommandRunner struct {
ColorOutput bool
}
CommandRunner provides command execution with optional colored output
func NewCommandRunner ¶
func NewCommandRunner(colorOutput bool) *CommandRunner
NewCommandRunner creates a new CommandRunner
func (*CommandRunner) Printf ¶
func (c *CommandRunner) Printf(color, style, format string, args ...interface{})
Printf prints a formatted colored message
func (*CommandRunner) RunCommand ¶
func (c *CommandRunner) RunCommand(name string, args ...string) CommandResult
RunCommand executes a command and returns the result
func (*CommandRunner) RunCommandQuiet ¶
func (c *CommandRunner) RunCommandQuiet(name string, args ...string) CommandResult
RunCommandQuiet executes a command without output streaming
type ConfigMap ¶
type ConfigMap struct {
// contains filtered or unexported fields
}
ConfigMap represents a Kubernetes ConfigMap
type HelmChart ¶
type HelmChart struct {
// contains filtered or unexported fields
}
HelmChart represents a Helm chart with fluent interface
func NewHelmChart ¶
NewHelmChart creates a new HelmChart builder
func (*HelmChart) GetConfigMap ¶
GetConfigMap returns a ConfigMap accessor
func (*HelmChart) GetStatefulSet ¶
func (h *HelmChart) GetStatefulSet(name string) *StatefulSet
GetStatefulSet returns a StatefulSet accessor
func (*HelmChart) MustSucceed ¶
MustSucceed panics if there was an error
func (*HelmChart) Result ¶
func (h *HelmChart) Result() CommandResult
Result returns the last command result
func (*HelmChart) WithPassword ¶
WithPassword creates a password secret and uses it
type Kind ¶
type Kind struct {
Version string `yaml:"version"`
Name string `yaml:"name"`
UseExisting bool `yaml:"use_existing"`
ColorOutput bool `yaml:"color_output"`
// contains filtered or unexported fields
}
func (*Kind) GetKubeconfig ¶
GetKubeconfig returns the kubeconfig for the kind cluster
func (*Kind) GetOrCreate ¶
GetOrCreate gets an existing kind cluster or creates a new one
func (*Kind) MustSucceed ¶
MustSucceed panics if there was an error
func (*Kind) SetKubeconfig ¶
SetKubeconfig sets the KUBECONFIG environment variable to use the kind cluster
func (*Kind) WithVersion ¶
WithVersion sets the kind version to use
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace represents a Kubernetes namespace with fluent interface
func NewNamespace ¶
NewNamespace creates a new Namespace accessor
func (*Namespace) MustSucceed ¶
MustSucceed panics if there was an error
type PVC ¶
type PVC struct {
// contains filtered or unexported fields
}
PVC represents a PersistentVolumeClaim
type Pod ¶
type Pod struct {
// contains filtered or unexported fields
}
Pod represents a Kubernetes pod with fluent interface
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
Secret represents a Kubernetes Secret
type StatefulSet ¶
type StatefulSet struct {
// contains filtered or unexported fields
}
StatefulSet represents a Kubernetes StatefulSet
func (*StatefulSet) GetGeneration ¶
func (s *StatefulSet) GetGeneration() (int64, error)
GetGeneration returns the current generation
func (*StatefulSet) GetReplicas ¶
func (s *StatefulSet) GetReplicas() (int, error)
GetReplicas returns the number of ready replicas
func (*StatefulSet) WaitFor ¶
func (s *StatefulSet) WaitFor(timeout time.Duration) *StatefulSet
WaitFor waits for the StatefulSet rollout to complete
func (*StatefulSet) WaitReady ¶
func (s *StatefulSet) WaitReady() *StatefulSet
WaitReady waits for the StatefulSet to be ready