request

package
v0.0.0-...-37f45be Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 NewMCARManager

func NewMCARManager() (m *MCARApi)

NewMCARManager - MCAR API 객체 생성

func (*MCARApi) AddNode

func (m *MCARApi) AddNode(doc string) (string, error)

AddNode - Node 추가

func (*MCARApi) AddNodeByParam

func (m *MCARApi) AddNodeByParam(req *NodeCreateRequest) (string, error)

AddNodeByParam - Node 추가

func (*MCARApi) Close

func (m *MCARApi) Close()

Close - 연결 종료

func (*MCARApi) CreateCluster

func (m *MCARApi) CreateCluster(doc string) (string, error)

CreateCluster - Cluster 생성

func (*MCARApi) CreateClusterByParam

func (m *MCARApi) CreateClusterByParam(req *ClusterCreateRequest) (string, error)

CreateClusterByParam - Cluster 생성

func (*MCARApi) DeleteCluster

func (m *MCARApi) DeleteCluster(doc string) (string, error)

DeleteCluster - Cluster 삭제

func (*MCARApi) DeleteClusterByParam

func (m *MCARApi) DeleteClusterByParam(namespace string, cluster string) (string, error)

DeleteClusterByParam - Cluster 삭제

func (*MCARApi) GetCluster

func (m *MCARApi) GetCluster(doc string) (string, error)

GetCluster - Cluster 조회

func (*MCARApi) GetClusterByParam

func (m *MCARApi) GetClusterByParam(namespace string, cluster string) (string, error)

GetClusterByParam - Cluster 조회

func (*MCARApi) GetInType

func (m *MCARApi) GetInType() (string, error)

GetInType - 입력 문서 타입 값 조회

func (*MCARApi) GetJWTToken

func (m *MCARApi) GetJWTToken() (string, error)

GetJWTToken - JWT 인증 토큰 값 조회

func (*MCARApi) GetNode

func (m *MCARApi) GetNode(doc string) (string, error)

GetNode - Node 조회

func (*MCARApi) GetNodeByParam

func (m *MCARApi) GetNodeByParam(namespace string, cluster string, node string) (string, error)

GetNodeByParam - Node 조회

func (*MCARApi) GetOutType

func (m *MCARApi) GetOutType() (string, error)

GetOutType - 출력 문서 타입 값 조회

func (*MCARApi) GetServerAddr

func (m *MCARApi) GetServerAddr() (string, error)

GetServerAddr - Ladybug 서버 주소 값 조회

func (*MCARApi) GetTLSCA

func (m *MCARApi) GetTLSCA() (string, error)

GetTLSCA - TLS CA 값 조회

func (*MCARApi) GetTimeout

func (m *MCARApi) GetTimeout() (time.Duration, error)

GetTimeout - Timeout 값 조회

func (*MCARApi) Healthy

func (m *MCARApi) Healthy() (string, error)

Healthy - 상태확인

func (*MCARApi) ListCluster

func (m *MCARApi) ListCluster(doc string) (string, error)

ListCluster - Cluster 목록

func (*MCARApi) ListClusterByParam

func (m *MCARApi) ListClusterByParam(namespace string) (string, error)

ListClusterByParam - Cluster 목록

func (*MCARApi) ListNode

func (m *MCARApi) ListNode(doc string) (string, error)

ListNode - Node 목록

func (*MCARApi) ListNodeByParam

func (m *MCARApi) ListNodeByParam(namespace string, cluster string) (string, error)

ListNodeByParam - Node 목록

func (*MCARApi) Open

func (m *MCARApi) Open() error

Open - 연결 설정

func (*MCARApi) RemoveNode

func (m *MCARApi) RemoveNode(doc string) (string, error)

RemoveNode - Node 삭제

func (*MCARApi) RemoveNodeByParam

func (m *MCARApi) RemoveNodeByParam(namespace string, cluster string, node string) (string, error)

RemoveNodeByParam - Node 삭제

func (*MCARApi) SetConfigPath

func (m *MCARApi) SetConfigPath(configFile string) error

SetConfigPath - 환경설정 파일 설정

func (*MCARApi) SetInType

func (m *MCARApi) SetInType(in string) error

SetInType - 입력 문서 타입 설정 (json/yaml)

func (*MCARApi) SetJWTToken

func (m *MCARApi) SetJWTToken(token string) error

SetJWTToken - JWT 인증 토큰 설정

func (*MCARApi) SetOutType

func (m *MCARApi) SetOutType(out string) error

SetOutType - 출력 문서 타입 설정 (json/yaml)

func (*MCARApi) SetServerAddr

func (m *MCARApi) SetServerAddr(addr string) error

SetServerAddr - Ladybug 서버 주소 설정

func (*MCARApi) SetTLSCA

func (m *MCARApi) SetTLSCA(tlsCAFile string) error

SetTLSCA - TLS CA 설정

func (*MCARApi) SetTimeout

func (m *MCARApi) SetTimeout(timeout time.Duration) error

SetTimeout - Timeout 설정

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 생성 요청 구조 정의

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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