Documentation ¶
Index ¶
- type ClusterCreateRequest
- type ClusterReq
- type Config
- type Kubernetes
- type MCARApi
- func (m *MCARApi) AddNode(doc string) (string, error)
- func (m *MCARApi) AddNodeByParam(req *NodeCreateRequest) (string, error)
- func (m *MCARApi) Close()
- func (m *MCARApi) CreateCluster(doc string) (string, error)
- func (m *MCARApi) CreateClusterByParam(req *ClusterCreateRequest) (string, error)
- func (m *MCARApi) DeleteCluster(doc string) (string, error)
- func (m *MCARApi) DeleteClusterByParam(namespace string, cluster string) (string, error)
- func (m *MCARApi) GetCluster(doc string) (string, error)
- func (m *MCARApi) GetClusterByParam(namespace string, cluster string) (string, error)
- func (m *MCARApi) GetInType() (string, error)
- func (m *MCARApi) GetJWTToken() (string, error)
- func (m *MCARApi) GetNode(doc string) (string, error)
- func (m *MCARApi) GetNodeByParam(namespace string, cluster string, node string) (string, error)
- func (m *MCARApi) GetOutType() (string, error)
- func (m *MCARApi) GetServerAddr() (string, error)
- func (m *MCARApi) GetTLSCA() (string, error)
- func (m *MCARApi) GetTimeout() (time.Duration, error)
- func (m *MCARApi) Healthy() (string, error)
- func (m *MCARApi) ListCluster(doc string) (string, error)
- func (m *MCARApi) ListClusterByParam(namespace string) (string, error)
- func (m *MCARApi) ListNode(doc string) (string, error)
- func (m *MCARApi) ListNodeByParam(namespace string, cluster string) (string, error)
- func (m *MCARApi) Open() error
- func (m *MCARApi) RemoveNode(doc string) (string, error)
- func (m *MCARApi) RemoveNodeByParam(namespace string, cluster string, node string) (string, error)
- func (m *MCARApi) SetConfigPath(configFile string) error
- func (m *MCARApi) SetInType(in string) error
- func (m *MCARApi) SetJWTToken(token string) error
- func (m *MCARApi) SetOutType(out string) error
- func (m *MCARApi) SetServerAddr(addr string) error
- func (m *MCARApi) SetTLSCA(tlsCAFile string) error
- func (m *MCARApi) SetTimeout(timeout time.Duration) error
- type NodeConfig
- type NodeCreateRequest
- type NodeReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterCreateRequest ¶
type ClusterCreateRequest struct { Namespace string `yaml:"namespace" json:"namespace"` Item ClusterReq `yaml:"ReqInfo" json:"ReqInfo"` }
ClusterCreateRequest - CLUSTER 생성 요청 구조 Wrapper 정의
type ClusterReq ¶
type ClusterReq struct { Name string `yaml:"name" json:"name"` ControlPlane []NodeConfig `yaml:"controlPlane" json:"controlPlane"` Worker []NodeConfig `yaml:"worker" json:"worker"` Config Config `yaml:"config" json:"config"` }
ClusterReq - CLUSTER 생성 요청 구조 정의
type Config ¶
type Config struct {
Kubernetes Kubernetes `yaml:"kubernetes" json:"kubernetes"`
}
Config - 클러스터 환경설정 구조 정의
type Kubernetes ¶
type Kubernetes struct { NetworkCni string `yaml:"networkCni" json:"networkCni"` PodCidr string `yaml:"podCidr" json:"podCidr"` ServiceCidr string `yaml:"serviceCidr" json:"serviceCidr"` ServiceDnsDomain string `yaml:"serviceDnsDomain" json:"serviceDnsDomain"` }
Kubernetes - 쿠버네티스 환경설정 구조 정의
type MCARApi ¶
type MCARApi struct {
// contains filtered or unexported fields
}
MCARApi - LADYBUG API 구조 정의
func (*MCARApi) AddNodeByParam ¶
func (m *MCARApi) AddNodeByParam(req *NodeCreateRequest) (string, error)
AddNodeByParam - Node 추가
func (*MCARApi) CreateCluster ¶
CreateCluster - Cluster 생성
func (*MCARApi) CreateClusterByParam ¶
func (m *MCARApi) CreateClusterByParam(req *ClusterCreateRequest) (string, error)
CreateClusterByParam - Cluster 생성
func (*MCARApi) DeleteCluster ¶
DeleteCluster - Cluster 삭제
func (*MCARApi) DeleteClusterByParam ¶
DeleteClusterByParam - Cluster 삭제
func (*MCARApi) GetCluster ¶
GetCluster - Cluster 조회
func (*MCARApi) GetClusterByParam ¶
GetClusterByParam - Cluster 조회
func (*MCARApi) GetJWTToken ¶
GetJWTToken - JWT 인증 토큰 값 조회
func (*MCARApi) GetNodeByParam ¶
GetNodeByParam - Node 조회
func (*MCARApi) GetOutType ¶
GetOutType - 출력 문서 타입 값 조회
func (*MCARApi) GetServerAddr ¶
GetServerAddr - Ladybug 서버 주소 값 조회
func (*MCARApi) GetTimeout ¶
GetTimeout - Timeout 값 조회
func (*MCARApi) ListCluster ¶
ListCluster - Cluster 목록
func (*MCARApi) ListClusterByParam ¶
ListClusterByParam - Cluster 목록
func (*MCARApi) ListNodeByParam ¶
ListNodeByParam - Node 목록
func (*MCARApi) RemoveNode ¶
RemoveNode - Node 삭제
func (*MCARApi) RemoveNodeByParam ¶
RemoveNodeByParam - Node 삭제
func (*MCARApi) SetConfigPath ¶
SetConfigPath - 환경설정 파일 설정
func (*MCARApi) SetJWTToken ¶
SetJWTToken - JWT 인증 토큰 설정
func (*MCARApi) SetOutType ¶
SetOutType - 출력 문서 타입 설정 (json/yaml)
func (*MCARApi) SetServerAddr ¶
SetServerAddr - Ladybug 서버 주소 설정
type NodeConfig ¶
type NodeConfig struct { Connection string `yaml:"connection" json:"connection"` Count int `yaml:"count" json:"count"` Spec string `yaml:"spec" json:"spec"` }
NodeConfig - Node 환경설정 구조 정의
type NodeCreateRequest ¶
type NodeCreateRequest struct { Namespace string `yaml:"namespace" json:"namespace"` Cluster string `yaml:"cluster" json:"cluster"` Item NodeReq `yaml:"ReqInfo" json:"ReqInfo"` }
NodeCreateRequest - NODE 생성 요청 구조 Wrapper 정의
type NodeReq ¶
type NodeReq struct { ControlPlane []NodeConfig `yaml:"controlPlane" json:"controlPlane"` Worker []NodeConfig `yaml:"worker" json:"worker"` }
NodeReq - NODE 생성 요청 구조 정의