Documentation ¶
Index ¶
- type ClusterStatus
- type Kube
- type KubeClient
- func (k *KubeClient) Apply(manifests []byte, namespace string) ([]byte, error)
- func (k *KubeClient) Delete(manifests []byte, namespace string) ([]byte, error)
- func (k *KubeClient) FluxPresent() (bool, error)
- func (k *KubeClient) GetApplication(name string) (*wego.Application, error)
- func (k *KubeClient) GetClusterName() (string, error)
- func (k *KubeClient) GetClusterStatus() ClusterStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterStatus ¶
type ClusterStatus int
const ( Unknown ClusterStatus = iota Unmodified FluxInstalled WeGOInstalled )
func (ClusterStatus) String ¶
func (cs ClusterStatus) String() string
Function to translate ClusterStatus to a string
type KubeClient ¶
type KubeClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(cliRunner runner.Runner) *KubeClient
func (*KubeClient) Apply ¶
func (k *KubeClient) Apply(manifests []byte, namespace string) ([]byte, error)
func (*KubeClient) Delete ¶
func (k *KubeClient) Delete(manifests []byte, namespace string) ([]byte, error)
func (*KubeClient) FluxPresent ¶
func (k *KubeClient) FluxPresent() (bool, error)
FluxPresent checks flux presence in the cluster
func (*KubeClient) GetApplication ¶
func (k *KubeClient) GetApplication(name string) (*wego.Application, error)
func (*KubeClient) GetClusterName ¶
func (k *KubeClient) GetClusterName() (string, error)
func (*KubeClient) GetClusterStatus ¶
func (k *KubeClient) GetClusterStatus() ClusterStatus
Click to show internal directories.
Click to hide internal directories.