Documentation
¶
Index ¶
- 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) GetValue(path ...string) string
- func (h *HelmChart) GetValues() map[string]interface{}
- 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() command.Result
- 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
- 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 ConfigMap ¶
type ConfigMap struct {
// contains filtered or unexported fields
}
ConfigMap represents a Kubernetes ConfigMap
type HelmChart ¶
type HelmChart struct {
flanksourceCtx.Context
// contains filtered or unexported fields
}
HelmChart represents a Helm chart with fluent interface
func NewHelmChart ¶
func NewHelmChart(ctx flanksourceCtx.Context, chartPath string) *HelmChart
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
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