clusters

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const RecommendationRuleIdleNodeName = "idlenodes-rule"
View Source
const RecommendationRuleIdleNodeYAML = `` /* 472-byte string literal not displayed */
View Source
const RecommendationRulePVsName = "persistentvolumes-rule"
View Source
const RecommendationRulePVsYAML = `` /* 490-byte string literal not displayed */
View Source
const RecommendationRuleServicesName = "services-rule"
View Source
const RecommendationRuleServicesYAML = `` /* 473-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

func IsUrl

func IsUrl(str string) bool

Types

type AddClustersRequest

type AddClustersRequest struct {
	Clusters []*store.Cluster `json:"clusters"`
}

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

Jump to

Keyboard shortcuts

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