Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
Kubernetes Kubernetes `json:"kubernetes"`
}
type ClusterInfo ¶
type ClusterInfo 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"`
UID string `json:"uid"`
Nodes []NodeInfo `json:"nodes"`
}
ladybug
type ClusterList ¶
type ClusterList struct {
Kind string `json:"kind"`
Clusters []ClusterInfo `json:"items"`
}
ladybug
type ClusterRegReq ¶
type ClusterRegReq struct {
Name string `json:"name"`
Config ClusterConfig `json:"config"`
ControlPlane []NodeConfig `json:"controlPlane"`
Worker []NodeConfig `json:"worker"`
}
ladybug
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 Kubernetes ¶
type NodeConfig ¶
type NodeInfo ¶
type NodeInfo struct {
Credential string `json:"credential"`
Csp string `json:"csp"`
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"`
UID string `json:"uid"`
}
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 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"`
NodeUID string `json:"uid"`
}
NodeInfo 의 간단버전 credential 등 제거
type NodeSimpleInfos ¶
type NodeSimpleInfos []NodeSimpleInfo
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.