ladybug

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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 Kubernetes struct {
	NetworkCni       string `json:"networkCni"`
	PodCidr          string `json:"podCidr"`
	ServiceCidr      string `json:"serviceCidr"`
	ServiceDnsDomain string `json:"serviceDnsDomain"`
}

type NodeConfig

type NodeConfig struct {
	Connection string `json:"connection"`
	Count      int    `json:"count"`
	Spec       string `json:"spec"`
}

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 NodeList

type NodeList struct {
	Items []NodeInfo `json:"items"`
	Kind  string     `json:"kind"`
}

ladybug Node의 array이나 parameter 추가된 것(kind)이 있음. Nodes 와 NodeList는 다른것임.

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 Nodes

type Nodes []NodeInfo

type StatusInfo

type StatusInfo struct {
	Code    int    `json:"code"`
	Kind    string `json:"kind"`
	Message string `json:"message"`
}

ladybug

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL