Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Pub public.Public `json:"pub"` Cid string `json:"cid"` Cname string `json:"cname"` Status string `json:"status"` OrderField string `json:"order_field"` OrderType string `json:"order_type"` Offset int `json:"offset"` Limit int `json:"limit"` SecretKey string `json:"secret_key"` Namespace string `json:"namespace"` // contains filtered or unexported fields }
func (Cluster) QueryClusterNodes ¶
func (this Cluster) QueryClusterNodes() (*ClusterNode, error)
func (Cluster) QueryClusters ¶
func (this Cluster) QueryClusters() (*ClusterInfo, error)
QueryClusters 查询集群信息
type ClusterInfo ¶
type ClusterInfo struct { Code int `json:"code"` Message string `json:"message"` CodeDesc string `json:"codedesc"` Data ClusterInfo_data `json:"data"` }
http://json.golang.chinazt.cc/ 自动生成, 使用前请校验
type ClusterInfo_data ¶
type ClusterInfo_data struct { TotalCount int `json:"totalcount"` Clusters []ClusterInfo_data_clusters `json:"clusters"` }
http://json.golang.chinazt.cc/ 自动生成, 使用前请校验
type ClusterInfo_data_clusters ¶
type ClusterInfo_data_clusters struct { ClusterId string `json:"clusterid"` ClusterName string `json:"clustername"` Description string `json:"description"` Status string `json:"status"` UnVpcId string `json:"unvpcid"` VpcId int `json:"vpcid"` ClusterCIDR string `json:"clustercidr"` CreatedAt string `json:"createdat"` UpdatedAt string `json:"updatedat"` NodeStatus string `json:"nodestatus"` NodeNum int `json:"nodenum"` Os string `json:"os"` TotalCpu int `json:"totalcpu"` TotalMem int `json:"totalmem"` RegionId int `json:"regionid"` K8sVersion string `json:"k8sversion"` OpenHttps int `json:"openhttps"` MasterLbSubnetId string `json:"masterlbsubnetid"` ProjectId int `json:"projectid"` Region string `json:"region"` }
http://json.golang.chinazt.cc/ 自动生成, 使用前请校验
type ClusterNode ¶
type ClusterNode struct { Code int `json:"code"` Message string `json:"message"` CodeDesc string `json:"codedesc"` Data ClusterNode_data `json:"data"` }
http://json.golang.chinazt.cc/ 自动生成, 使用前请校验
type ClusterNode_data ¶
type ClusterNode_data struct { TotalCount int `json:"totalcount"` Nodes []ClusterNode_data_nodes `json:"nodes"` }
http://json.golang.chinazt.cc/ 自动生成, 使用前请校验
type ClusterNode_data_nodes ¶
type ClusterNode_data_nodes struct { InstanceId string `json:"instanceid"` InstanceName string `json:"instancename"` InstanceType string `json:"instancetype"` ZoneId int `json:"zoneid"` WanIp string `json:"wanip"` LanIp string `json:"lanip"` Cpu int `json:"cpu"` Mem int `json:"mem"` KernelVersion string `json:"kernelversion"` OsImage string `json:"osimage"` PodCidr string `json:"podcidr"` IsNormal int `json:"isnormal"` AbnormalReason string `json:"abnormalreason"` CvmState int `json:"cvmstate"` CvmPayMode int `json:"cvmpaymode"` NetworkPayMode int `json:"networkpaymode"` CreatedAt string `json:"createdat"` InstanceCreateTime string `json:"instancecreatetime"` InstanceDeadlineTime string `json:"instancedeadlinetime"` Unschedulable bool `json:"unschedulable"` Zone string `json:"zone"` }
http://json.golang.chinazt.cc/ 自动生成, 使用前请校验
Click to show internal directories.
Click to hide internal directories.