Documentation ¶
Index ¶
- Variables
- type Cluster
- func (c *Cluster) Connect(config string) error
- func (c *Cluster) Exec(namespace, podName, containerName string, command, stdin string) (string, string, error)
- func (c *Cluster) GetPlatform() Platform
- func (c *Cluster) ListPods(namespace, selector string) (*v1.PodList, error)
- func (c *Cluster) WaitForPodBySelectorRunning(namespace, selector string, timeout int) error
- func (c *Cluster) WaitForPodRunning(namespace, podName string, timeout time.Duration) error
- func (c *Cluster) WaitUntilPodBySelectorExist(namespace, selector string, timeout int) error
- type Deployment
- type Installer
- func (i *Installer) Backup(d Deployment, cluster Cluster, output string) error
- func (i *Installer) Delete(d Deployment, cluster Cluster) error
- func (i *Installer) Install(d Deployment, cluster Cluster) error
- func (i *Installer) Restore(d Deployment, cluster Cluster, output string) error
- func (i *Installer) Upgrade(d Deployment, cluster Cluster) error
- type Platform
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedPlatforms []Platform = []Platform{kind.NewPlatform(), k3s.NewPlatform(), ibm.NewPlatform()}
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { // InternalIPs []string // Ingress bool Kubectl *kubernetes.Clientset // contains filtered or unexported fields }
func NewCluster ¶
func (*Cluster) GetPlatform ¶
func (*Cluster) ListPods ¶
ListPods returns the list of currently scheduled or running pods in `namespace` with the given selector
func (*Cluster) WaitForPodBySelectorRunning ¶
Wait up to timeout seconds for all pods in 'namespace' with given 'selector' to enter running state. Returns an error if no pods are found or not all discovered pods enter running state.
func (*Cluster) WaitForPodRunning ¶
Poll up to timeout seconds for pod to enter running state. Returns an error if the pod never enters the running state.
func (*Cluster) WaitUntilPodBySelectorExist ¶
Wait up to timeout seconds for all pods in 'namespace' with given 'selector' to enter running state. Returns an error if no pods are found or not all discovered pods enter running state.
type Deployment ¶
type Installer ¶
type Installer struct { }
func NewInstaller ¶
func NewInstaller() *Installer
func (*Installer) Backup ¶
func (i *Installer) Backup(d Deployment, cluster Cluster, output string) error
Click to show internal directories.
Click to hide internal directories.