Versions in this module Expand all Collapse all v1 v1.0.1 Nov 9, 2023 v1.0.0 Nov 9, 2023 Changes in this version + func Add(kubeconfig string) + func Avg(numbers []float64) float64 + func Create(c *gin.Context) + func Delete(c *gin.Context) + func DivFloat64(a float64, b float64) float64 + func DivInt64(a int64, b int64) float64 + func GenNamespace(c *gin.Context) + func GetDetail(c *gin.Context) + func GetDevSpaceClusterList(c *gin.Context) + func GetFromCache(kubeconfig string) []model.Resource + func GetList(c *gin.Context) + func GetSpaceDetail(c *gin.Context) + func GetSpaceList(c *gin.Context) + func GetStorageClass(c *gin.Context) + func GetStorageClassByKubeConfig(c *gin.Context) + func HasPrivilegeToSomeCluster(c *gin.Context, clusterId uint64) (*model.ClusterModel, error) + func Init() + func ListByUser(c *gin.Context) + func Merge(availableKubeConfigs map[string]string) + func Migrate(c *gin.Context) + func Remove(kubeconfig string) + func Update(c *gin.Context) + type Cluster struct + CertificateAuthorityData string + Server string + type ClusterDetailResponse struct + CreatedAt time.Time + ID uint64 + Info string + KubeConfig string + Name string + Server string + StorageClass string + UserId uint64 + type ClusterSafeList struct + ClusterList []*model.ClusterList + Lock *sync.Mutex + type ClusterStatus struct + ClusterId uint64 + NotReadyMessage string + Ready bool + type ClusterUserMigrateRequest struct + Migrate []NsAndUsers + type Clusters struct + Cluster Cluster + Name string + type CreateClusterRequest struct + ExtraApiServer string + KubeConfig string + Name string + StorageClass string + type KubeConfig struct + Clusters []Clusters + type Namespace struct + Namespace string + type NsAndUsers struct + Namespace string + Users []string + type StorageClassRequest struct + KubeConfig string + type StorageClassResponse struct + TypeName []string + type UpdateClusterRequest struct + StorageClass string