Documentation ¶
Index ¶
- Constants
- func IsUrl(str string) bool
- type AddClustersRequest
- type ClusterHandler
- func (ch *ClusterHandler) AddClusters(c *gin.Context)
- func (ch *ClusterHandler) DeleteCluster(c *gin.Context)
- func (ch *ClusterHandler) GetCluster(c *gin.Context)
- func (ch *ClusterHandler) ListClusters(c *gin.Context)
- func (ch *ClusterHandler) ListNamespaces(c *gin.Context)
- func (ch *ClusterHandler) UpdateCluster(c *gin.Context)
Constants ¶
View Source
const RecommendationRuleIdleNodeName = "idlenodes-rule"
View Source
const RecommendationRuleIdleNodeYAML = `` /* 472-byte string literal not displayed */
View Source
const RecommendationRuleWorkloadsName = "workloads-rule"
View Source
const RecommendationRuleWorkloadsYAML = `` /* 628-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddClustersRequest ¶
type ClusterHandler ¶
type ClusterHandler struct {
// contains filtered or unexported fields
}
func NewClusterHandler ¶
func NewClusterHandler(srv cluster.Service, config *config.Config) *ClusterHandler
Note: cluster service is just used by front end to list clusters which added by user in frontend
func (*ClusterHandler) AddClusters ¶
func (ch *ClusterHandler) AddClusters(c *gin.Context)
AddClusters add the clusters which has deployed crane server. cluster info must has valid & accessible crane server url
func (*ClusterHandler) DeleteCluster ¶
func (ch *ClusterHandler) DeleteCluster(c *gin.Context)
DeleteCluster del the clusters
func (*ClusterHandler) GetCluster ¶
func (ch *ClusterHandler) GetCluster(c *gin.Context)
GetCluster return the cluster which has been added by front end.
func (*ClusterHandler) ListClusters ¶
func (ch *ClusterHandler) ListClusters(c *gin.Context)
ListClusters list the clusters which has deployed crane server.
func (*ClusterHandler) ListNamespaces ¶ added in v0.4.0
func (ch *ClusterHandler) ListNamespaces(c *gin.Context)
GetNamespaces return namespaces in specified cluster
func (*ClusterHandler) UpdateCluster ¶
func (ch *ClusterHandler) UpdateCluster(c *gin.Context)
UpdateCluster the clusters crane info
Click to show internal directories.
Click to hide internal directories.