Documentation
¶
Index ¶
- type ClusterConfig
- type ClusterConfigKubernetesReq
- type ClusterConfigReq
- type ClusterInfo
- type ClusterList
- type ClusterRegReq
- type ClusterSimpleInfo
- type ClusterStatus
- type ClusterStorageClassNfsReq
- type Kubernetes
- type NodeConfig
- type NodeInfo
- type NodeList
- type NodeOnlyRegReq
- type NodeRegReq
- type NodeReq
- type NodeSetReq
- type NodeSimpleInfo
- type NodeSimpleInfos
- type Nodes
- type RootDiskInfo
- type StatusInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
InstallMonAgent string `json:"installMonAgent"`
Kubernetes Kubernetes `json:"kubernetes"`
}
type ClusterConfigKubernetesReq ¶ added in v0.6.1
type ClusterConfigKubernetesReq struct {
Etcd string `json:"etcd"`
Loadbalancer string `json:"loadbalancer"`
NetworkCni string `json:"networkCni"`
PodCidr string `json:"podCidr"`
ServiceCidr string `json:"serviceCidr"`
ServiceDnsDomain string `json:"serviceDnsDomain"`
Storageclass ClusterStorageClassNfsReq `json:"storageclass"`
Version string `json:"version"`
}
type ClusterConfigReq ¶ added in v0.6.1
type ClusterConfigReq struct {
InstallMonAgent string `json:"installMonAgent"`
Kubernetes ClusterConfigKubernetesReq `json:"kubernetes"`
}
type ClusterInfo ¶
type ClusterInfo struct {
ClusterConfig string `json:"clusterConfig"`
CpGroup string `json:"cpGroup"`
CpLeader string `json:"cpLeader"`
CreatedTime string `json:"createdTime"`
Description string `json:"description"`
Etcd string `json:"etcd"` //local, external
InstallMonAgent string `json:"installMonAgent"`
K8sVersion string `json:"k8sVersion"`
Kind int `json:"kind"`
Label int `json:"label"`
Loadbalancer int `json:"loadbalancer"` //haproxy, nlb
Mcis string `json:"mcis"`
Name string `json:"name"`
NameSpace string `json:"namespace"`
NetworkCni string `json:"networkCni"` //canal, kilo
Status ClusterStatus `json:"status"`
//UID string `json:"uid"`// deprecated
Nodes []NodeInfo `json:"nodes"`
}
ladybug : cb-mcks 의 model.Cluster
type ClusterList ¶
type ClusterList struct {
Kind string `json:"kind"`
Clusters []ClusterInfo `json:"items"`
}
ladybug
type ClusterRegReq ¶
type ClusterRegReq struct {
Name string `json:"name"`
Label string `json:"label"`
Description string `json:"description"`
Config ClusterConfigReq `json:"config"`
ControlPlane []NodeSetReq `json:"controlPlane"`
Worker []NodeSetReq `json:"worker"`
}
ladybug : ClusterReq
type ClusterSimpleInfo ¶
type ClusterSimpleInfo struct {
ClusterConfig string `json:"clusterConfig"`
CpLeader string `json:"cpLeader"`
Kind int `json:"kind"`
Mcis string `json:"mcis"`
Name string `json:"name"`
NameSpace string `json:"namespace"`
NetworkCni string `json:"networkCni"`
Status string `json:"status"`
McksStatus string `json:"mcksStatus"` // icon(RUNNING, STOPPED, TERMINATED)를 나타내기 위한 변수
UID string `json:"uid"`
Nodes []NodeSimpleInfo `json:"nodes"`
TotalNodeCount int `json:"totalNodeCount"`
NodeCountMap map[string]int `json:"nodeCountMap"`
}
ClusterInfo의 간단버전.
type ClusterStatus ¶ added in v0.6.1
type ClusterStorageClassNfsReq ¶ added in v0.6.1
type Kubernetes ¶
type NodeConfig ¶
type NodeInfo ¶
type NodeInfo struct {
CreatedTime string `json:"createdTime"`
Credential string `json:"credential"`
Csp string `json:"csp"`
CspLabel string `json:"cspLable"`
ZoneLabel string `json:"zoneLable"`
Kind string `json:"kind"` // Node 냐 cluster냐
Name string `json:"name"`
PublicIp string `json:"publicIp"`
Role string `json:"role"` // Control-plane냐, Worker냐
Spec string `json:"spec"`
}
ladybug
type NodeOnlyRegReq ¶
type NodeOnlyRegReq struct {
// ControlPlane []NodeConfig `json:"controlPlane"`
//Worker []NodeReq `json:"worker"`
Worker []NodeReq `json:"worker"`
}
Node만 추가시에는 ControlPlane 없이 Worker만 사용한다.
type NodeRegReq ¶
type NodeRegReq struct {
// ControlPlane []NodeConfig `json:"controlPlane"`
Worker []NodeConfig `json:"worker"`
}
ladybug
type NodeReq ¶
type NodeReq struct {
Config string `json:"config"`
WorkerNodeCount int `json:"workerNodeCount"`
WorkerNodeSpec string `json:"workerNodeSpec"`
}
ladybug
type NodeSetReq ¶ added in v0.6.1
type NodeSetReq struct {
Connection string `json:"connection"`
Count int `json:"count"`
Spec string `json:"spec"`
RootDisk RootDiskInfo `json:"rootDisk"`
}
type NodeSimpleInfo ¶
type NodeSimpleInfo struct {
NodeIndex int `json:"nodeIndex"`
TotalNodeCount int `json:"totalNodeCount"`
NodeCsp string `json:"csp"`
NodeKind string `json:"kind"`
NodeName string `json:"name"`
NodePublicIp string `json:"publicIp"`
NodeRole string `json:"role"`
NodeSpec string `json:"spec"`
}
NodeInfo 의 간단버전 credential 등 제거
type NodeSimpleInfos ¶
type NodeSimpleInfos []NodeSimpleInfo
type RootDiskInfo ¶ added in v0.6.1
type StatusInfo ¶
type StatusInfo struct {
Code int `json:"code"`
Kind string `json:"kind"`
Message string `json:"message"`
}
ladybug
Click to show internal directories.
Click to hide internal directories.