Documentation ¶
Overview ¶
Package bcs 集群操作
Index ¶
Constants ¶
View Source
const (
// VirtualClusterType vcluster
VirtualClusterType = "virtual"
)
Variables ¶
This section is empty.
Functions ¶
func GetClusterMap ¶
GetClusterMap 获取全部集群数据, map格式
Types ¶
type Cluster ¶
type Cluster struct { ProjectID string `json:"projectID"` ClusterID string `json:"clusterID"` ClusterName string `json:"clusterName"` BKBizID string `json:"businessID"` Status string `json:"status"` ClusterType string `json:"clusterType"` NetworkSettings struct { MaxNodePodNum int `json:"maxNodePodNum"` MaxServiceNum int `json:"maxServiceNum"` } `json:"networkSettings"` ExtraInfo struct { NamespaceInfo string `json:"namespaceInfo"` Provider string `json:"provider"` VclusterNetwork string `json:"vclusterNetwork"` } `json:"extraInfo"` VclusterInfo VclusterInfo `json:"-"` }
Cluster 集群信息
type Project ¶
type Project struct { Name string `json:"name"` ProjectId string `json:"projectID"` Code string `json:"projectCode"` CcBizID string `json:"businessID"` Creator string `json:"creator"` Kind string `json:"kind"` RawCreateTime string `json:"createTime"` }
Project 项目信息
type VclusterInfo ¶
type VclusterInfo struct { Name string `json:"name"` Quota VclusterQuota `json:"quota"` }
VclusterInfo vcluster info, parse from extraInfo.namespaceInfo
Click to show internal directories.
Click to hide internal directories.