controller

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2020 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterController

func NewClusterController(g *gin.Engine, clusterCase cluster.IClusterUcase)

NewClusterController creates a new k8s controller

Types

type ClusterController

type ClusterController struct {
	// contains filtered or unexported fields
}

ClusterController k8s controller

func (*ClusterController) Address

func (cc *ClusterController) Address(c *gin.Context)

Address address

func (*ClusterController) ClusterInit

func (cc *ClusterController) ClusterInit(c *gin.Context)

ClusterInit cluster init

func (*ClusterController) ClusterNodes

func (cc *ClusterController) ClusterNodes(c *gin.Context)

ClusterNodes returns a list of v1.K8sNode

func (*ClusterController) ClusterStatus

func (cc *ClusterController) ClusterStatus(c *gin.Context)

ClusterStatus cluster status

func (*ClusterController) ClusterStatusInfo

func (cc *ClusterController) ClusterStatusInfo(c *gin.Context)

ClusterStatusInfo returns the cluster information from rainbondcluster.

func (*ClusterController) Components

func (cc *ClusterController) Components(c *gin.Context)

Components components status

func (*ClusterController) Configs

func (cc *ClusterController) Configs(c *gin.Context)

Configs get cluster config info

func (*ClusterController) Install

func (cc *ClusterController) Install(c *gin.Context)

Install install

func (*ClusterController) InstallStatus

func (cc *ClusterController) InstallStatus(c *gin.Context)

InstallStatus install status

func (*ClusterController) PreCheck added in v1.3.0

func (cc *ClusterController) PreCheck(c *gin.Context)

PreCheck checks cluster conditions before installing

func (*ClusterController) RestartPackage added in v1.3.0

func (cc *ClusterController) RestartPackage(c *gin.Context)

RestartPackage -

func (*ClusterController) SingleComponent

func (cc *ClusterController) SingleComponent(c *gin.Context)

SingleComponent single component

func (*ClusterController) Uninstall

func (cc *ClusterController) Uninstall(c *gin.Context)

Uninstall reset cluster

func (*ClusterController) UpdateConfig

func (cc *ClusterController) UpdateConfig(c *gin.Context)

UpdateConfig update cluster config info

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL