Documentation
¶
Index ¶
- type ConfigMap
- type Deployment
- type Helm
- type HelmChart
- func (h *HelmChart) Delete() *HelmChart
- func (h *HelmChart) DryRun() *HelmChart
- func (h *HelmChart) Error() error
- func (h *HelmChart) ForceConflicts() *HelmChart
- func (h *HelmChart) ForceReplace() *HelmChart
- 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) GetStatus() (*HelmStatus, error)
- func (h *HelmChart) GetValue(path ...string) string
- func (h *HelmChart) GetValues() map[string]interface{}
- func (h *HelmChart) Install() error
- func (h *HelmChart) InstallOrUpgrade() error
- func (h *HelmChart) Kubectl() clickyExec.WrapperFunc
- func (h *HelmChart) Matches(o Object) bool
- 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) Repository(repo, url string) *HelmChart
- func (h *HelmChart) Result() *clickyExec.ExecResult
- func (h *HelmChart) SetValue(key string, value interface{}) *HelmChart
- func (h *HelmChart) Status() (string, error)
- func (h *HelmChart) Upgrade() error
- func (h *HelmChart) Values(values map[string]interface{}) *HelmChart
- func (h *HelmChart) Wait() *HelmChart
- func (h *HelmChart) WaitFor(timeout time.Duration) *HelmChart
- type HelmStatus
- type HelmStatusInfo
- type Kind
- type Kubectl
- type Metadata
- type Namespace
- type Object
- type OwnerRef
- 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) ForwardPort(port int) (*int, func())
- func (p *Pod) GetLogs(lines ...int) string
- func (p *Pod) GetName() string
- func (p *Pod) GetOwner() (*Object, error)
- 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 Deployment ¶ added in v0.1.2
func (*Deployment) GetReplicas ¶ added in v0.1.2
func (d *Deployment) GetReplicas() (int, error)
type Helm ¶ added in v0.1.1
type Helm = clickyExec.WrapperFunc
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) ForceConflicts ¶ added in v0.1.5
func (*HelmChart) ForceReplace ¶ added in v0.1.7
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) GetStatus ¶ added in v0.1.2
func (h *HelmChart) GetStatus() (*HelmStatus, error)
Status returns the Helm release status
func (*HelmChart) InstallOrUpgrade ¶ added in v0.1.2
func (*HelmChart) Kubectl ¶ added in v0.1.2
func (h *HelmChart) Kubectl() clickyExec.WrapperFunc
func (*HelmChart) MustSucceed ¶
MustSucceed panics if there was an error
func (*HelmChart) Repository ¶ added in v0.1.10
Repository sets the repository
func (*HelmChart) Result ¶
func (h *HelmChart) Result() *clickyExec.ExecResult
Result returns the last command result
type HelmStatus ¶ added in v0.1.2
type HelmStatus struct {
Name string `json:"name"`
Info HelmStatusInfo `json:"info"`
Manifest string `json:"manifest"`
Version int `json:"version"`
Namespace string `json:"namespace"`
}
func (HelmStatus) Pretty ¶ added in v0.1.2
func (s HelmStatus) Pretty() api.Text
type HelmStatusInfo ¶ added in v0.1.2
type Metadata ¶ added in v0.1.1
type Metadata struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
UID string `json:"uid,omitempty"`
Annotations map[string]string `json:"annotations"`
Labels map[string]string `json:"labels"`
OwnerReferences []OwnerRef `json:"ownerReferences"`
Generation int64 `json:"generation,omitempty"`
}
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 OwnerRef ¶ added in v0.1.1
type PVC ¶
type PVC struct {
Metadata `json:",inline"`
// contains filtered or unexported fields
}
PVC represents a PersistentVolumeClaim
type Pod ¶
type Pod struct {
Metadata `json:"metadata,omitempty"`
Kind `json:",inline"`
// contains filtered or unexported fields
}
Pod represents a Kubernetes pod with fluent interface
func (*Pod) ForwardPort ¶ added in v0.1.1
ForwardPort forwards a port from the pod to the local machine
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