ladybug

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 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 {
	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 ClusterStatus struct {
	Message string `json:"message"`
	Phase   string `json:"phase"` //Pending, Provisioning, Provisioned, Failed
	Reason  int    `json:"reason"`
}

type ClusterStorageClassNfsReq added in v0.6.1

type ClusterStorageClassNfsReq struct {
	Path   string `json:"path"`
	Server string `json:"server"`
}

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 {
	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 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 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 Nodes

type Nodes []NodeInfo

type RootDiskInfo added in v0.6.1

type RootDiskInfo struct {
	Type string `json:"type"`
	Size string `json:"size"`
}

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