request

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoAction added in v0.3.7

type AutoAction struct {
	ActionType    string     `yaml:"actionType" json:"actionType"`
	Vm            TbVmInfo   `yaml:"vm" json:"vm"`
	PostCommand   McisCmdReq `yaml:"postCommand" json:"postCommand"`
	PlacementAlgo string     `yaml:"placementAlgo" json:"placementAlgo"`
}

AutoAction - MCIS AutoAction 요청 구조 정의

type AutoCondition added in v0.3.7

type AutoCondition struct {
	Metric           string   `yaml:"metric" json:"metric"`
	Operator         string   `yaml:"operator" json:"operator"`
	Operand          string   `yaml:"operand" json:"operand"`
	EvaluationPeriod string   `yaml:"evaluationPeriod" json:"evaluationPeriod"`
	EvaluationValue  []string `yaml:"evaluationValue" json:"evaluationValue"`
}

AutoCondition - MCIS AutoCondition 요청 구조 정의

type ConfigReq added in v0.3.7

type ConfigReq struct {
	Name  string `yaml:"name" json:"name"`
	Value string `yaml:"value" json:"value"`
}

ConfigReq - Config 정보 생성 요청 구조 정의

type DeploymentPlan added in v0.3.7

type DeploymentPlan struct {
	Filter   FilterInfo   `yaml:"filter" json:"filter"`
	Priority PriorityInfo `yaml:"priority" json:"priority"`
	Limit    string       `yaml:"limit" json:"limit"`
}

DeploymentPlan - DeploymentPlan 요청 구조 정의

type FilterCondition added in v0.3.7

type FilterCondition struct {
	Metric    string      `yaml:"metric" json:"metric"`
	Condition []Operation `yaml:"condition" json:"condition"`
}

FilterCondition - FilterCondition 요청 구조 정의

type FilterInfo added in v0.3.7

type FilterInfo struct {
	Policy []FilterCondition `yaml:"policy" json:"policy"`
}

FilterInfo - FilterInfo 요청 구조 정의

type GeoLocation

type GeoLocation struct {
	Latitude     string `yaml:"latitude" json:"latitude"`
	Longitude    string `yaml:"longitude" json:"longitude"`
	BriefAddr    string `yaml:"briefAddr" json:"briefAddr"`
	CloudType    string `yaml:"cloudType" json:"cloudType"`
	NativeRegion string `yaml:"nativeRegion" json:"nativeRegion"`
}

GeoLocation - 위치 정보 구조 정의

type IID

type IID struct {
	NameId   string `yaml:"NameId" json:"NameId"`
	SystemId string `yaml:"SystemId" json:"SystemId"`
}

IID - Defined by & used for CB-Spider

type KeyValue

type KeyValue struct {
	Key   string `yaml:"Key" json:"Key"`
	Value string `yaml:"Value" json:"Value"`
}

KeyValue

type MCIRApi

type MCIRApi struct {
	// contains filtered or unexported fields
}

MCIRApi

func NewMCIRManager

func NewMCIRManager() (m *MCIRApi)

NewMCIRManager - Create new MCIR API object

func (*MCIRApi) CheckResource

func (m *MCIRApi) CheckResource(doc string) (string, error)

CheckResource - Check whether Resource exists or not

func (*MCIRApi) CheckResourceByParam

func (m *MCIRApi) CheckResourceByParam(nameSpaceID string, resourceID string, resourceType string) (string, error)

CheckResourceByParam - Check whether Resource exists or not

func (*MCIRApi) Close

func (m *MCIRApi) Close()

Close - Close connection

func (*MCIRApi) CreateImageWithID

func (m *MCIRApi) CreateImageWithID(doc string) (string, error)

CreateImageWithID

func (*MCIRApi) CreateImageWithIDByParam

func (m *MCIRApi) CreateImageWithIDByParam(req *TbImageCreateRequest) (string, error)

CreateImageWithIDByParam

func (*MCIRApi) CreateImageWithInfo

func (m *MCIRApi) CreateImageWithInfo(doc string) (string, error)

CreateImageWithInfo

func (*MCIRApi) CreateImageWithInfoByParam

func (m *MCIRApi) CreateImageWithInfoByParam(req *TbImageInfoRequest) (string, error)

CreateImageWithInfoByParam

func (*MCIRApi) CreateSecurityGroup

func (m *MCIRApi) CreateSecurityGroup(doc string) (string, error)

CreateSecurityGroup

func (*MCIRApi) CreateSecurityGroupByParam

func (m *MCIRApi) CreateSecurityGroupByParam(req *TbSecurityGroupCreateRequest) (string, error)

CreateSecurityGroupByParam

func (*MCIRApi) CreateSpecWithInfo

func (m *MCIRApi) CreateSpecWithInfo(doc string) (string, error)

CreateSpecWithInfo

func (*MCIRApi) CreateSpecWithInfoByParam

func (m *MCIRApi) CreateSpecWithInfoByParam(req *TbSpecInfoRequest) (string, error)

CreateSpecWithInfoByParam

func (*MCIRApi) CreateSpecWithSpecName

func (m *MCIRApi) CreateSpecWithSpecName(doc string) (string, error)

CreateSpecWithSpecName

func (*MCIRApi) CreateSpecWithSpecNameByParam

func (m *MCIRApi) CreateSpecWithSpecNameByParam(req *TbSpecCreateRequest) (string, error)

CreateSpecWithSpecNameByParam

func (*MCIRApi) CreateSshKey

func (m *MCIRApi) CreateSshKey(doc string) (string, error)

CreateSshKey

func (*MCIRApi) CreateSshKeyByParam

func (m *MCIRApi) CreateSshKeyByParam(req *TbSshKeyCreateRequest) (string, error)

CreateSshKeyByParam

func (*MCIRApi) CreateVNet

func (m *MCIRApi) CreateVNet(doc string) (string, error)

CreateVNet

func (*MCIRApi) CreateVNetByParam

func (m *MCIRApi) CreateVNetByParam(req *TbVNetCreateRequest) (string, error)

CreateVNetByParam

func (*MCIRApi) DeleteAllImage

func (m *MCIRApi) DeleteAllImage(doc string) (string, error)

DeleteAllImage

func (*MCIRApi) DeleteAllImageByParam

func (m *MCIRApi) DeleteAllImageByParam(nameSpaceID string, force string) (string, error)

DeleteAllImageByParam

func (*MCIRApi) DeleteAllSecurityGroup

func (m *MCIRApi) DeleteAllSecurityGroup(doc string) (string, error)

DeleteAllSecurityGroup

func (*MCIRApi) DeleteAllSecurityGroupByParam

func (m *MCIRApi) DeleteAllSecurityGroupByParam(nameSpaceID string, force string) (string, error)

DeleteAllSecurityGroupByParam

func (*MCIRApi) DeleteAllSpec

func (m *MCIRApi) DeleteAllSpec(doc string) (string, error)

DeleteAllSpec

func (*MCIRApi) DeleteAllSpecByParam

func (m *MCIRApi) DeleteAllSpecByParam(nameSpaceID string, force string) (string, error)

DeleteAllSpecByParam

func (*MCIRApi) DeleteAllSshKey

func (m *MCIRApi) DeleteAllSshKey(doc string) (string, error)

DeleteAllSshKey

func (*MCIRApi) DeleteAllSshKeyByParam

func (m *MCIRApi) DeleteAllSshKeyByParam(nameSpaceID string, force string) (string, error)

DeleteAllSshKeyByParam

func (*MCIRApi) DeleteAllVNet

func (m *MCIRApi) DeleteAllVNet(doc string) (string, error)

DeleteAllVNet

func (*MCIRApi) DeleteAllVNetByParam

func (m *MCIRApi) DeleteAllVNetByParam(nameSpaceID string, force string) (string, error)

DeleteAllVNetByParam

func (*MCIRApi) DeleteImage

func (m *MCIRApi) DeleteImage(doc string) (string, error)

DeleteImage

func (*MCIRApi) DeleteImageByParam

func (m *MCIRApi) DeleteImageByParam(nameSpaceID string, resourceID string, force string) (string, error)

DeleteImageByParam

func (*MCIRApi) DeleteSecurityGroup

func (m *MCIRApi) DeleteSecurityGroup(doc string) (string, error)

DeleteSecurityGroup

func (*MCIRApi) DeleteSecurityGroupByParam

func (m *MCIRApi) DeleteSecurityGroupByParam(nameSpaceID string, resourceID string, force string) (string, error)

DeleteSecurityGroupByParam

func (*MCIRApi) DeleteSpec

func (m *MCIRApi) DeleteSpec(doc string) (string, error)

DeleteSpec

func (*MCIRApi) DeleteSpecByParam

func (m *MCIRApi) DeleteSpecByParam(nameSpaceID string, resourceID string, force string) (string, error)

DeleteSpecByParam

func (*MCIRApi) DeleteSshKey

func (m *MCIRApi) DeleteSshKey(doc string) (string, error)

DeleteSshKey

func (*MCIRApi) DeleteSshKeyByParam

func (m *MCIRApi) DeleteSshKeyByParam(nameSpaceID string, resourceID string, force string) (string, error)

DeleteSshKeyByParam

func (*MCIRApi) DeleteVNet

func (m *MCIRApi) DeleteVNet(doc string) (string, error)

DeleteVNet

func (*MCIRApi) DeleteVNetByParam

func (m *MCIRApi) DeleteVNetByParam(nameSpaceID string, resourceID string, force string) (string, error)

DeleteVNetByParam

func (*MCIRApi) FetchImage

func (m *MCIRApi) FetchImage(doc string) (string, error)

FetchImage

func (*MCIRApi) FetchImageByParam

func (m *MCIRApi) FetchImageByParam(connConfigName string, nameSpaceID string) (string, error)

FetchImageByParam

func (*MCIRApi) FetchSpec

func (m *MCIRApi) FetchSpec(doc string) (string, error)

FetchSpec

func (*MCIRApi) FetchSpecByParam

func (m *MCIRApi) FetchSpecByParam(connConfigName string, nameSpaceID string) (string, error)

FetchSpecByParam

func (*MCIRApi) FilterSpec added in v0.2.8

func (m *MCIRApi) FilterSpec(doc string) (string, error)

FilterSpec

func (*MCIRApi) FilterSpecsByRange added in v0.3.1

func (m *MCIRApi) FilterSpecsByRange(doc string) (string, error)

FilterSpecsByRange

func (*MCIRApi) GetImage

func (m *MCIRApi) GetImage(doc string) (string, error)

GetImage

func (*MCIRApi) GetImageByParam

func (m *MCIRApi) GetImageByParam(nameSpaceID string, resourceID string) (string, error)

GetImageByParam

func (*MCIRApi) GetInType

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

GetInType - Get input doc type (json/yaml)

func (*MCIRApi) GetJWTToken

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

GetJWTToken - Get JWT auth token

func (*MCIRApi) GetLookupImage

func (m *MCIRApi) GetLookupImage(doc string) (string, error)

GetLookupImage - LookupImage

func (*MCIRApi) GetLookupImageByParam

func (m *MCIRApi) GetLookupImageByParam(connConfigName string, cspImageId string) (string, error)

GetLookupImageByParam - LookupImage

func (*MCIRApi) GetLookupSpec

func (m *MCIRApi) GetLookupSpec(doc string) (string, error)

GetLookupSpec - LookupSpec

func (*MCIRApi) GetLookupSpecByParam

func (m *MCIRApi) GetLookupSpecByParam(connConfigName string, cspSpecName string) (string, error)

GetLookupSpecByParam - LookupSpec

func (*MCIRApi) GetOutType

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

GetOutType - Get output doc type (json/yaml)

func (*MCIRApi) GetSecurityGroup

func (m *MCIRApi) GetSecurityGroup(doc string) (string, error)

GetSecurityGroup

func (*MCIRApi) GetSecurityGroupByParam

func (m *MCIRApi) GetSecurityGroupByParam(nameSpaceID string, resourceID string) (string, error)

GetSecurityGroupByParam

func (*MCIRApi) GetServerAddr

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

GetServerAddr - Get Tumblebug server address

func (*MCIRApi) GetSpec

func (m *MCIRApi) GetSpec(doc string) (string, error)

GetSpec

func (*MCIRApi) GetSpecByParam

func (m *MCIRApi) GetSpecByParam(nameSpaceID string, resourceID string) (string, error)

GetSpecByParam

func (*MCIRApi) GetSshKey

func (m *MCIRApi) GetSshKey(doc string) (string, error)

GetSshKey

func (*MCIRApi) GetSshKeyByParam

func (m *MCIRApi) GetSshKeyByParam(nameSpaceID string, resourceID string) (string, error)

GetSshKeyByParam

func (*MCIRApi) GetTLSCA

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

GetTLSCA - Get TLS CA

func (*MCIRApi) GetTimeout

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

GetTimeout

func (*MCIRApi) GetVNet

func (m *MCIRApi) GetVNet(doc string) (string, error)

GetVNet

func (*MCIRApi) GetVNetByParam

func (m *MCIRApi) GetVNetByParam(nameSpaceID string, resourceID string) (string, error)

GetVNetByParam

func (*MCIRApi) ListImage

func (m *MCIRApi) ListImage(doc string) (string, error)

ListImage

func (*MCIRApi) ListImageByParam

func (m *MCIRApi) ListImageByParam(nameSpaceID string) (string, error)

ListImageByParam

func (*MCIRApi) ListImageId added in v0.3.10

func (m *MCIRApi) ListImageId(doc string) (string, error)

ListImageId

func (*MCIRApi) ListImageIdByParam added in v0.3.10

func (m *MCIRApi) ListImageIdByParam(nameSpaceID string) (string, error)

ListImageIdByParam

func (*MCIRApi) ListLookupImage

func (m *MCIRApi) ListLookupImage(doc string) (string, error)

ListLookupImage - LookupImages

func (*MCIRApi) ListLookupImageByParam

func (m *MCIRApi) ListLookupImageByParam(connConfigName string) (string, error)

ListLookupImageByParam - LookupImages

func (*MCIRApi) ListLookupSpec

func (m *MCIRApi) ListLookupSpec(doc string) (string, error)

ListLookupSpec - LookupSpecs

func (*MCIRApi) ListLookupSpecByParam

func (m *MCIRApi) ListLookupSpecByParam(connConfigName string) (string, error)

ListLookupSpecByParam - LookupSpecs

func (*MCIRApi) ListSecurityGroup

func (m *MCIRApi) ListSecurityGroup(doc string) (string, error)

ListSecurityGroup

func (*MCIRApi) ListSecurityGroupByParam

func (m *MCIRApi) ListSecurityGroupByParam(nameSpaceID string) (string, error)

ListSecurityGroupByParam

func (*MCIRApi) ListSecurityGroupId added in v0.3.10

func (m *MCIRApi) ListSecurityGroupId(doc string) (string, error)

ListSecurityGroupId

func (*MCIRApi) ListSecurityGroupIdByParam added in v0.3.10

func (m *MCIRApi) ListSecurityGroupIdByParam(nameSpaceID string) (string, error)

ListSecurityGroupIdByParam

func (*MCIRApi) ListSpec

func (m *MCIRApi) ListSpec(doc string) (string, error)

ListSpec

func (*MCIRApi) ListSpecByParam

func (m *MCIRApi) ListSpecByParam(nameSpaceID string) (string, error)

ListSpecByParam

func (*MCIRApi) ListSpecId added in v0.3.10

func (m *MCIRApi) ListSpecId(doc string) (string, error)

ListSpecId

func (*MCIRApi) ListSpecIdByParam added in v0.3.10

func (m *MCIRApi) ListSpecIdByParam(nameSpaceID string) (string, error)

ListSpecIdByParam

func (*MCIRApi) ListSshKey

func (m *MCIRApi) ListSshKey(doc string) (string, error)

ListSshKey

func (*MCIRApi) ListSshKeyByParam

func (m *MCIRApi) ListSshKeyByParam(nameSpaceID string) (string, error)

ListSshKeyByParam

func (*MCIRApi) ListSshKeyId added in v0.3.10

func (m *MCIRApi) ListSshKeyId(doc string) (string, error)

ListSshKeyId

func (*MCIRApi) ListSshKeyIdByParam added in v0.3.10

func (m *MCIRApi) ListSshKeyIdByParam(nameSpaceID string) (string, error)

ListSshKeyIdByParam

func (*MCIRApi) ListVNet

func (m *MCIRApi) ListVNet(doc string) (string, error)

ListVNet

func (*MCIRApi) ListVNetByParam

func (m *MCIRApi) ListVNetByParam(nameSpaceID string) (string, error)

ListVNetByParam

func (*MCIRApi) ListVNetId added in v0.3.10

func (m *MCIRApi) ListVNetId(doc string) (string, error)

ListVNetId

func (*MCIRApi) ListVNetIdByParam added in v0.3.10

func (m *MCIRApi) ListVNetIdByParam(nameSpaceID string) (string, error)

ListVNetIdByParam

func (*MCIRApi) Open

func (m *MCIRApi) Open() error

Open - Open new connection

func (*MCIRApi) SearchImage added in v0.3.7

func (m *MCIRApi) SearchImage(doc string) (string, error)

SearchImage

func (*MCIRApi) SearchImageByParam added in v0.3.7

func (m *MCIRApi) SearchImageByParam(req *SearchImageQryRequest) (string, error)

SearchImageByParam

func (*MCIRApi) SetConfigPath

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

SetConfigPath

func (*MCIRApi) SetInType

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

SetInType - Set input doc type (json/yaml)

func (*MCIRApi) SetJWTToken

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

SetJWTToken - Set JWT auth token

func (*MCIRApi) SetOutType

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

SetOutType - Set output doc type (json/yaml)

func (*MCIRApi) SetServerAddr

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

SetServerAddr - Set Tumblebug server address

func (*MCIRApi) SetTLSCA

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

SetTLSCA - Set TLS CA

func (*MCIRApi) SetTimeout

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

SetTimeout

func (*MCIRApi) SortSpecs added in v0.3.1

func (m *MCIRApi) SortSpecs(doc string) (string, error)

SortSpecs

func (*MCIRApi) UpdateSpec added in v0.3.1

func (m *MCIRApi) UpdateSpec(doc string) (string, error)

UpdateSpec

type MCISApi

type MCISApi struct {
	// contains filtered or unexported fields
}

MCISApi - MCIS API 구조 정의

func NewMCISManager

func NewMCISManager() (m *MCISApi)

NewMCISManager - MCIS API 객체 생성

func (*MCISApi) CheckMcis

func (m *MCISApi) CheckMcis(doc string) (string, error)

CheckMcis - MCIS 체크

func (*MCISApi) CheckMcisByParam

func (m *MCISApi) CheckMcisByParam(nameSpaceID string, mcisID string) (string, error)

CheckMcisByParam - MCIS 체크

func (*MCISApi) CheckVm

func (m *MCISApi) CheckVm(doc string) (string, error)

CheckVm - MCIS VM 체크

func (*MCISApi) CheckVmByParam

func (m *MCISApi) CheckVmByParam(nameSpaceID string, mcisID string, vmID string) (string, error)

CheckVmByParam - MCIS VM 체크

func (*MCISApi) Close

func (m *MCISApi) Close()

Close - 연결 종료

func (*MCISApi) CmdMcis

func (m *MCISApi) CmdMcis(doc string) (string, error)

CmdMcis - MCIS 명령 실행

func (*MCISApi) CmdMcisByParam

func (m *MCISApi) CmdMcisByParam(req *McisCmdCreateRequest) (string, error)

CmdMcisByParam - MCIS 명령 실행

func (*MCISApi) CmdMcisVm

func (m *MCISApi) CmdMcisVm(doc string) (string, error)

CmdMcisVm - MCIS VM 명령 실행

func (*MCISApi) CmdMcisVmByParam

func (m *MCISApi) CmdMcisVmByParam(req *McisCmdVmCreateRequest) (string, error)

CmdMcisVmByParam - MCIS VM 명령 실행

func (*MCISApi) ControlMcis

func (m *MCISApi) ControlMcis(doc string) (string, error)

ControlMcis - MCIS 제어

func (*MCISApi) ControlMcisByParam

func (m *MCISApi) ControlMcisByParam(nameSpaceID string, mcisID string, action string) (string, error)

ControlMcisByParam - MCIS 제어

func (*MCISApi) ControlMcisVM

func (m *MCISApi) ControlMcisVM(doc string) (string, error)

ControlMcisVM - MCIS VM 제어

func (*MCISApi) ControlMcisVMByParam

func (m *MCISApi) ControlMcisVMByParam(nameSpaceID string, mcisID string, vmID string, action string) (string, error)

ControlMcisVMByParam - MCIS VM 제어

func (*MCISApi) CreateMcis

func (m *MCISApi) CreateMcis(doc string) (string, error)

CreateMcis - MCIS 생성

func (*MCISApi) CreateMcisByParam

func (m *MCISApi) CreateMcisByParam(req *TbMcisCreateRequest) (string, error)

CreateMcisByParam - MCIS 생성

func (*MCISApi) CreateMcisPolicy added in v0.3.7

func (m *MCISApi) CreateMcisPolicy(doc string) (string, error)

CreateMcisPolicy - Policy 생성

func (*MCISApi) CreateMcisPolicyByParam added in v0.3.7

func (m *MCISApi) CreateMcisPolicyByParam(req *McisPolicyCreateRequest) (string, error)

CreateMcisPolicyByParam - Policy 생성

func (*MCISApi) CreateMcisVM

func (m *MCISApi) CreateMcisVM(doc string) (string, error)

CreateMcisVM - MCIS VM 생성

func (*MCISApi) CreateMcisVMByParam

func (m *MCISApi) CreateMcisVMByParam(req *TbVmCreateRequest) (string, error)

CreateMcisVMByParam - MCIS VM 생성

func (*MCISApi) CreateMcisVMGroup added in v0.3.7

func (m *MCISApi) CreateMcisVMGroup(doc string) (string, error)

CreateMcisVMGroup - MCIS VM 그룹 생성

func (*MCISApi) CreateMcisVMGroupByParam added in v0.3.7

func (m *MCISApi) CreateMcisVMGroupByParam(req *TbVmGroupCreateRequest) (string, error)

CreateMcisVMGroupByParam - MCIS VM 생성

func (*MCISApi) DeleteAllMcis

func (m *MCISApi) DeleteAllMcis(doc string) (string, error)

DeleteAllMcis - MCIS 전체 삭제

func (*MCISApi) DeleteAllMcisByParam

func (m *MCISApi) DeleteAllMcisByParam(nameSpaceID string) (string, error)

DeleteAllMcisByParam - MCIS 전체 삭제

func (*MCISApi) DeleteAllMcisPolicy added in v0.3.7

func (m *MCISApi) DeleteAllMcisPolicy(doc string) (string, error)

DeleteAllMcisPolicy - Policy 전체 삭제

func (*MCISApi) DeleteAllMcisPolicyByParam added in v0.3.7

func (m *MCISApi) DeleteAllMcisPolicyByParam(nameSpaceID string) (string, error)

DeleteAllMcisPolicyByParam - Policy 전체 삭제

func (*MCISApi) DeleteMcis

func (m *MCISApi) DeleteMcis(doc string) (string, error)

DeleteMcis - MCIS 삭제

func (*MCISApi) DeleteMcisByParam

func (m *MCISApi) DeleteMcisByParam(nameSpaceID string, mcisID string) (string, error)

DeleteMcisByParam - MCIS 삭제

func (*MCISApi) DeleteMcisPolicy added in v0.3.7

func (m *MCISApi) DeleteMcisPolicy(doc string) (string, error)

DeleteMcisPolicy - Policy 삭제

func (*MCISApi) DeleteMcisPolicyByParam added in v0.3.7

func (m *MCISApi) DeleteMcisPolicyByParam(nameSpaceID string, mcisID string) (string, error)

DeleteMcisPolicyByParam - Policy 삭제

func (*MCISApi) DeleteMcisVM

func (m *MCISApi) DeleteMcisVM(doc string) (string, error)

DeleteMcisVM - MCIS VM 삭제

func (*MCISApi) DeleteMcisVMByParam

func (m *MCISApi) DeleteMcisVMByParam(nameSpaceID string, mcisID string, vmID string) (string, error)

DeleteMcisVMByParam - MCIS VM 삭제

func (*MCISApi) GetAllBenchmark

func (m *MCISApi) GetAllBenchmark(doc string) (string, error)

GetAllBenchmark - Benchmark 목록

func (*MCISApi) GetAllBenchmarkByParam

func (m *MCISApi) GetAllBenchmarkByParam(nameSpaceID string, mcisID string, host string) (string, error)

GetAllBenchmarkByParam - Benchmark 목록

func (*MCISApi) GetBenchmark

func (m *MCISApi) GetBenchmark(doc string) (string, error)

GetBenchmark - Benchmark 조회

func (*MCISApi) GetBenchmarkByParam

func (m *MCISApi) GetBenchmarkByParam(nameSpaceID string, mcisID string, action string, host string) (string, error)

GetBenchmarkByParam - Benchmark 조회

func (*MCISApi) GetInType

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

GetInType - 입력 문서 타입 값 조회

func (*MCISApi) GetJWTToken

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

GetJWTToken - JWT 인증 토큰 값 조회

func (*MCISApi) GetMcisInfo

func (m *MCISApi) GetMcisInfo(doc string) (string, error)

GetMcisInfo - MCIS 정보 조회

func (*MCISApi) GetMcisInfoByParam

func (m *MCISApi) GetMcisInfoByParam(nameSpaceID string, mcisID string) (string, error)

GetMcisInfoByParam - MCIS 정보 조회

func (*MCISApi) GetMcisPolicy added in v0.3.7

func (m *MCISApi) GetMcisPolicy(doc string) (string, error)

GetMcisPolicy - Policy 조회

func (*MCISApi) GetMcisPolicyByParam added in v0.3.7

func (m *MCISApi) GetMcisPolicyByParam(nameSpaceID string, mcisID string) (string, error)

GetMcisPolicyByParam - Policy 조회

func (*MCISApi) GetMcisStatus

func (m *MCISApi) GetMcisStatus(doc string) (string, error)

GetMcisStatus - MCIS 상태 조회

func (*MCISApi) GetMcisStatusByParam

func (m *MCISApi) GetMcisStatusByParam(nameSpaceID string, mcisID string) (string, error)

GetMcisStatusByParam - MCIS 상태 조회

func (*MCISApi) GetMcisVMInfo

func (m *MCISApi) GetMcisVMInfo(doc string) (string, error)

GetMcisVMInfo - MCIS VM 정보 조회

func (*MCISApi) GetMcisVMInfoByParam

func (m *MCISApi) GetMcisVMInfoByParam(nameSpaceID string, mcisID string, vmID string) (string, error)

GetMcisVMInfoByParam - MCIS VM 정보 조회

func (*MCISApi) GetMcisVMStatus

func (m *MCISApi) GetMcisVMStatus(doc string) (string, error)

GetMcisVMStatus - MCIS VM 상태 조회

func (*MCISApi) GetMcisVMStatusByParam

func (m *MCISApi) GetMcisVMStatusByParam(nameSpaceID string, mcisID string, vmID string) (string, error)

GetMcisVMStatusByParam - MCIS VM 상태 조회

func (*MCISApi) GetMonitorData

func (m *MCISApi) GetMonitorData(doc string) (string, error)

GetMonitorData - MCIS Monitor 정보 조회

func (*MCISApi) GetMonitorDataByParam

func (m *MCISApi) GetMonitorDataByParam(nameSpaceID string, mcisID string, metric string) (string, error)

GetMonitorDataByParam - MCIS Monitor 정보 조회

func (*MCISApi) GetOutType

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

GetOutType - 출력 문서 타입 값 조회

func (*MCISApi) GetServerAddr

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

GetServerAddr - Tumblebug 서버 주소 값 조회

func (*MCISApi) GetTLSCA

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

GetTLSCA - TLS CA 값 조회

func (*MCISApi) GetTimeout

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

GetTimeout - Timeout 값 조회

func (*MCISApi) InstallAgentToMcis

func (m *MCISApi) InstallAgentToMcis(doc string) (string, error)

InstallAgentToMcis - MCIS Agent 설치

func (*MCISApi) InstallAgentToMcisByParam

func (m *MCISApi) InstallAgentToMcisByParam(req *McisCmdCreateRequest) (string, error)

InstallAgentToMcisByParam - MCIS Agent 설치

func (*MCISApi) InstallMonitorAgentToMcis

func (m *MCISApi) InstallMonitorAgentToMcis(doc string) (string, error)

InstallMonitorAgentToMcis - MCIS Monitor Agent 설치

func (*MCISApi) InstallMonitorAgentToMcisByParam

func (m *MCISApi) InstallMonitorAgentToMcisByParam(req *McisCmdCreateRequest) (string, error)

InstallMonitorAgentToMcisByParam - MCIS Monitor Agent 설치

func (*MCISApi) ListMcis

func (m *MCISApi) ListMcis(doc string) (string, error)

ListMcis - MCIS 목록

func (*MCISApi) ListMcisByParam

func (m *MCISApi) ListMcisByParam(nameSpaceID string) (string, error)

ListMcisByParam - MCIS 목록

func (*MCISApi) ListMcisId added in v0.3.10

func (m *MCISApi) ListMcisId(doc string) (string, error)

ListMcisId - MCIS 목록

func (*MCISApi) ListMcisIdByParam added in v0.3.10

func (m *MCISApi) ListMcisIdByParam(nameSpaceID string) (string, error)

ListMcisIdByParam - MCIS 목록

func (*MCISApi) ListMcisPolicy added in v0.3.7

func (m *MCISApi) ListMcisPolicy(doc string) (string, error)

ListMcisPolicy - Policy 목록

func (*MCISApi) ListMcisPolicyByParam added in v0.3.7

func (m *MCISApi) ListMcisPolicyByParam(nameSpaceID string) (string, error)

ListMcisPolicyByParam - Policy 목록

func (*MCISApi) ListMcisStatus added in v0.3.7

func (m *MCISApi) ListMcisStatus(doc string) (string, error)

ListMcisStatus - MCIS 상태 목록

func (*MCISApi) ListMcisStatusByParam added in v0.3.7

func (m *MCISApi) ListMcisStatusByParam(nameSpaceID string) (string, error)

ListMcisStatusByParam - MCIS 상태 목록

func (*MCISApi) ListMcisVmId added in v0.3.10

func (m *MCISApi) ListMcisVmId(doc string) (string, error)

ListMcisVmId - MCIS 정보 조회

func (*MCISApi) ListMcisVmIdByParam added in v0.3.10

func (m *MCISApi) ListMcisVmIdByParam(nameSpaceID string, mcisID string) (string, error)

ListMcisVmIdByParam - MCIS 정보 조회

func (*MCISApi) Open

func (m *MCISApi) Open() error

Open - 연결 설정

func (*MCISApi) RecommendMcis added in v0.3.8

func (m *MCISApi) RecommendMcis(doc string) (string, error)

RecommendMcis - MCIS 추천

func (*MCISApi) RecommendMcisByParam added in v0.3.8

func (m *MCISApi) RecommendMcisByParam(req *McisRecommendCreateRequest) (string, error)

RecommendMcisByParam - MCIS 추천

func (*MCISApi) RecommendVM added in v0.3.8

func (m *MCISApi) RecommendVM(doc string) (string, error)

RecommendVM - MCIS VM 추천

func (*MCISApi) RecommendVMByParam added in v0.3.8

func (m *MCISApi) RecommendVMByParam(req *McisRecommendVmCreateRequest) (string, error)

RecommendVMByParam - MCIS VM 추천

func (*MCISApi) SetConfigPath

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

SetConfigPath - 환경설정 파일 설정

func (*MCISApi) SetInType

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

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

func (*MCISApi) SetJWTToken

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

SetJWTToken - JWT 인증 토큰 설정

func (*MCISApi) SetOutType

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

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

func (*MCISApi) SetServerAddr

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

SetServerAddr - Tumblebug 서버 주소 설정

func (*MCISApi) SetTLSCA

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

SetTLSCA - TLS CA 설정

func (*MCISApi) SetTimeout

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

SetTimeout - Timeout 설정

type McisCmdCreateRequest

type McisCmdCreateRequest struct {
	NsId   string     `yaml:"nsId" json:"nsId"`
	McisId string     `yaml:"mcisId" json:"mcisId"`
	Item   McisCmdReq `yaml:"cmd" json:"cmd"`
}

McisCmdCreateRequest - MCIS 명령 실행 요청 구조 Wrapper 정의

type McisCmdReq

type McisCmdReq struct {
	McisId   string `yaml:"mcisId" json:"mcisId"`
	VmId     string `yaml:"vmId" json:"vmId"`
	Ip       string `yaml:"ip" json:"ip"`
	UserName string `yaml:"userName" json:"userName"`
	SshKey   string `yaml:"sshKey" json:"sshKey"`
	Command  string `yaml:"command" json:"command"`
}

McisCmdReq - MCIS 명령 실행 요청 구조 정의

type McisCmdVmCreateRequest

type McisCmdVmCreateRequest struct {
	NsId   string     `yaml:"nsId" json:"nsId"`
	McisId string     `yaml:"mcisId" json:"mcisId"`
	VmId   string     `yaml:"vmId" json:"vmId"`
	Item   McisCmdReq `yaml:"cmd" json:"cmd"`
}

McisCmdVmCreateRequest - MCIS VM 명령 실행 요청 구조 Wrapper 정의

type McisPolicyCreateRequest added in v0.3.7

type McisPolicyCreateRequest struct {
	NsId   string         `yaml:"nsId" json:"nsId"`
	McisId string         `yaml:"mcisId" json:"mcisId"`
	Item   McisPolicyInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

McisPolicyCreateRequest - MCIS Policy 생성 요청 구조 Wrapper 정의

type McisPolicyInfo added in v0.3.7

type McisPolicyInfo struct {
	Name   string   `yaml:"Name" json:"Name"`
	Id     string   `yaml:"Id" json:"Id"`
	Policy []Policy `yaml:"policy" json:"policy"`

	ActionLog   string `yaml:"actionLog" json:"actionLog"`
	Description string `yaml:"description" json:"description"`
}

McisPolicyInfo - MCIS Policy 정보 구조 정의

type McisRecommendCreateRequest

type McisRecommendCreateRequest struct {
	NsId string           `yaml:"nsId" json:"nsId"`
	Item McisRecommendReq `yaml:"recommend" json:"recommend"`
}

McisRecommendCreateRequest - MCIS 추천 요청 구조 Wrapper 정의

type McisRecommendReq

type McisRecommendReq struct {
	VmReq          []TbVmRecommendReq `yaml:"vmReq" json:"vmReq"`
	PlacementAlgo  string             `yaml:"placementAlgo" json:"placementAlgo"`
	PlacementParam []KeyValue         `yaml:"placementParam" json:"placementParam"`
	MaxResultNum   string             `yaml:"maxResultNum" json:"maxResultNum"`
}

McisRecommendReq - MCIS 추천 요청 구조 정의

type McisRecommendVmCreateRequest added in v0.3.7

type McisRecommendVmCreateRequest struct {
	NsId string         `yaml:"nsId" json:"nsId"`
	Item DeploymentPlan `yaml:"plan" json:"plan"`
}

McisRecommendVmCreateRequest - MCIS VM 추천 요청 구조 Wrapper 정의

type NSApi

type NSApi struct {
	// contains filtered or unexported fields
}

NSApi - NS API 구조 정의

func NewNSManager

func NewNSManager() (ns *NSApi)

NewNSManager - NS API 객체 생성

func (*NSApi) CheckNS

func (ns *NSApi) CheckNS(doc string) (string, error)

CheckNS - Namespace 체크

func (*NSApi) CheckNSByParam

func (ns *NSApi) CheckNSByParam(nameSpaceID string) (string, error)

CheckNSByParam - Namespace 체크

func (*NSApi) Close

func (ns *NSApi) Close()

Close - 연결 종료

func (*NSApi) CreateNS

func (ns *NSApi) CreateNS(doc string) (string, error)

CreateNS - Namespace 생성

func (*NSApi) CreateNSByParam

func (ns *NSApi) CreateNSByParam(req *NsReq) (string, error)

CreateNSByParam - Namespace 생성

func (*NSApi) DeleteAllNS

func (ns *NSApi) DeleteAllNS() (string, error)

DeleteAllNS - Namespace 전체 삭제

func (*NSApi) DeleteNS

func (ns *NSApi) DeleteNS(doc string) (string, error)

DeleteNS - Namespace 삭제

func (*NSApi) DeleteNSByParam

func (ns *NSApi) DeleteNSByParam(nameSpaceID string) (string, error)

DeleteNSByParam - Namespace 삭제

func (*NSApi) GetInType

func (ns *NSApi) GetInType() (string, error)

GetInType - 입력 문서 타입 값 조회

func (*NSApi) GetJWTToken

func (ns *NSApi) GetJWTToken() (string, error)

GetJWTToken - JWT 인증 토큰 값 조회

func (*NSApi) GetNS

func (ns *NSApi) GetNS(doc string) (string, error)

GetNS - Namespace 조회

func (*NSApi) GetNSByParam

func (ns *NSApi) GetNSByParam(nameSpaceID string) (string, error)

GetNSByParam - Namespace 조회

func (*NSApi) GetOutType

func (ns *NSApi) GetOutType() (string, error)

GetOutType - 출력 문서 타입 값 조회

func (*NSApi) GetServerAddr

func (ns *NSApi) GetServerAddr() (string, error)

GetServerAddr - Tumblebug 서버 주소 값 조회

func (*NSApi) GetTLSCA

func (ns *NSApi) GetTLSCA() (string, error)

GetTLSCA - TLS CA 값 조회

func (*NSApi) GetTimeout

func (ns *NSApi) GetTimeout() (time.Duration, error)

GetTimeout - Timeout 값 조회

func (*NSApi) ListNS

func (ns *NSApi) ListNS() (string, error)

ListNS - Namespace 목록

func (*NSApi) ListNSId added in v0.3.11

func (ns *NSApi) ListNSId() (string, error)

ListNSId

func (*NSApi) Open

func (ns *NSApi) Open() error

Open - 연결 설정

func (*NSApi) SetConfigPath

func (ns *NSApi) SetConfigPath(configFile string) error

SetConfigPath - 환경설정 파일 설정

func (*NSApi) SetInType

func (ns *NSApi) SetInType(in string) error

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

func (*NSApi) SetJWTToken

func (ns *NSApi) SetJWTToken(token string) error

SetJWTToken - JWT 인증 토큰 설정

func (*NSApi) SetOutType

func (ns *NSApi) SetOutType(out string) error

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

func (*NSApi) SetServerAddr

func (ns *NSApi) SetServerAddr(addr string) error

SetServerAddr - Tumblebug 서버 주소 설정

func (*NSApi) SetTLSCA

func (ns *NSApi) SetTLSCA(tlsCAFile string) error

SetTLSCA - TLS CA 설정

func (*NSApi) SetTimeout

func (ns *NSApi) SetTimeout(timeout time.Duration) error

SetTimeout - Timeout 설정

type NsReq

type NsReq struct {
	Name        string `yaml:"name" json:"name"`
	Description string `yaml:"description" json:"description"`
}

NsReq - Namespace 정보 생성 요청 구조 정의

type Operation added in v0.3.7

type Operation struct {
	Operator string `yaml:"operator" json:"operator"`
	Operand  string `yaml:"operand" json:"operand"`
}

Operation - Operation 요청 구조 정의

type ParameterKeyVal added in v0.3.7

type ParameterKeyVal struct {
	Key string   `yaml:"key" json:"key"`
	Val []string `yaml:"val" json:"val"`
}

ParameterKeyVal - ParameterKeyVal 요청 구조 정의

type Policy added in v0.3.7

type Policy struct {
	AutoCondition AutoCondition `yaml:"autoCondition" json:"autoCondition"`
	AutoAction    AutoAction    `yaml:"autoAction" json:"autoAction"`
	Status        string        `yaml:"status" json:"status"`
}

Policy - MCIS Policy 요청 구조 정의

type PriorityCondition added in v0.3.7

type PriorityCondition struct {
	Metric    string            `yaml:"metric" json:"metric"`
	Weight    string            `yaml:"weight" json:"weight"`
	Parameter []ParameterKeyVal `yaml:"parameter" json:"parameter"`
}

PriorityCondition - PriorityCondition 요청 구조 정의

type PriorityInfo added in v0.3.7

type PriorityInfo struct {
	Policy []PriorityCondition `yaml:"policy" json:"policy"`
}

PriorityInfo - PriorityInfo 요청 구조 정의

type RegionInfo

type RegionInfo struct {
	Region string `yaml:"Region" json:"Region"`
	Zone   string `yaml:"Zone" json:"Zone"`
}

RegionInfo - Region 정보 구조 정의

type SearchImageQryRequest added in v0.3.7

type SearchImageQryRequest struct {
	NsId     string   `yaml:"nsId" json:"nsId"`
	Keywords []string `yaml:"keywords" json:"keywords"`
}

SearchImageQryRequest - Wrapper struct

type SpiderSecurityRuleInfo

type SpiderSecurityRuleInfo struct {
	FromPort   string `yaml:"fromPort" json:"fromPort"`
	ToPort     string `yaml:"toPort" json:"toPort"`
	IPProtocol string `yaml:"ipProtocol" json:"ipProtocol"`
	Direction  string `yaml:"direction" json:"direction"`
	CIDR       string `yaml:"cidr" json:"cidr"`
}

SpiderSecurityRuleInfo

type SpiderSubnetReqInfo

type SpiderSubnetReqInfo struct {
	Name         string     `yaml:"Name" json:"Name"`
	IPv4_CIDR    string     `yaml:"IPv4_CIDR" json:"IPv4_CIDR"`
	KeyValueList []KeyValue `yaml:"KeyValueList" json:"KeyValueList"`
}

SpiderSubnetReqInfo

type SpiderVMInfo

type SpiderVMInfo struct {
	// Fields for request
	Name               string   `yaml:"Name" json:"Name"`
	ImageName          string   `yaml:"ImageName" json:"ImageName"`
	VPCName            string   `yaml:"VPCName" json:"VPCName"`
	SubnetName         string   `yaml:"SubnetName" json:"SubnetName"`
	SecurityGroupNames []string `yaml:"SecurityGroupNames" json:"SecurityGroupNames"`
	KeyPairName        string   `yaml:"KeyPairName" json:"KeyPairName"`

	// Fields for both request and response
	VMSpecName   string `yaml:"VMSpecName" json:"VMSpecName"`
	VMUserId     string `yaml:"VMUserId" json:"VMUserId"`
	VMUserPasswd string `yaml:"VMUserPasswd" json:"VMUserPasswd"`

	// Fields for response
	IId               IID        `yaml:"IId" json:"IId"`
	ImageIId          IID        `yaml:"ImageIId" json:"ImageIId"`
	VpcIID            IID        `yaml:"VpcIID" json:"VpcIID"`
	SubnetIID         IID        `yaml:"SubnetIID" json:"SubnetIID"`
	SecurityGroupIIds []IID      `yaml:"SecurityGroupIIds" json:"SecurityGroupIIds"`
	KeyPairIId        IID        `yaml:"KeyPairIId" json:"KeyPairIId"`
	StartTime         string     `yaml:"StartTime" json:"StartTime"`
	Region            RegionInfo `yaml:"Region" json:"Region"`
	NetworkInterface  string     `yaml:"NetworkInterface" json:"NetworkInterface"`
	PublicIP          string     `yaml:"PublicIP" json:"PublicIP"`
	PublicDNS         string     `yaml:"PublicDNS" json:"PublicDNS"`
	PrivateIP         string     `yaml:"PrivateIP" json:"PrivateIP"`
	PrivateDNS        string     `yaml:"PrivateDNS" json:"PrivateDNS"`
	VMBootDisk        string     `yaml:"VMBootDisk" json:"VMBootDisk"`
	VMBlockDisk       string     `yaml:"VMBlockDisk" json:"VMBlockDisk"`
	SSHAccessPoint    string     `yaml:"SSHAccessPoint" json:"SSHAccessPoint"`
	KeyValueList      []KeyValue `yaml:"KeyValueList" json:"KeyValueList"`
}

SpiderVMInfo - VM 정보 구조 정의

type TbImageCreateRequest

type TbImageCreateRequest struct {
	NsId string     `yaml:"nsId" json:"nsId"`
	Item TbImageReq `yaml:"image" json:"image"`
}

TbImageCreateRequest - Wrapper struct

type TbImageInfo

type TbImageInfo struct {
	Id                   string     `yaml:"id" json:"id"`
	Name                 string     `yaml:"name" json:"name"`
	ConnectionName       string     `yaml:"connectionName" json:"connectionName"`
	CspImageId           string     `yaml:"cspImageId" json:"cspImageId"`
	CspImageName         string     `yaml:"cspImageName" json:"cspImageName"`
	Description          string     `yaml:"description" json:"description"`
	CreationDate         string     `yaml:"creationDate" json:"creationDate"`
	GuestOS              string     `yaml:"guestOS" json:"guestOS"`
	Status               string     `yaml:"status" json:"status"`
	KeyValueList         []KeyValue `yaml:"keyValueList" json:"keyValueList"`
	AssociatedObjectList []string   `yaml:"associatedObjectList" json:"associatedObjectList"`
	IsAutoGenerated      bool       `yaml:"isAutoGenerated" json:"isAutoGenerated"`
}

TbImageInfo

type TbImageInfoRequest

type TbImageInfoRequest struct {
	NsId string      `yaml:"nsId" json:"nsId"`
	Item TbImageInfo `yaml:"image" json:"image"`
}

TbImageInfoRequest - Wrapper struct

type TbImageReq

type TbImageReq struct {
	Name           string `yaml:"name" json:"name"`
	ConnectionName string `yaml:"connectionName" json:"connectionName"`
	CspImageId     string `yaml:"cspImageId" json:"cspImageId"`
	Description    string `yaml:"description" json:"description"`
}

TbImageReq

type TbMcisCreateRequest

type TbMcisCreateRequest struct {
	NsId string    `yaml:"nsId" json:"nsId"`
	Item TbMcisReq `yaml:"mcis" json:"mcis"`
}

TbMcisCreateRequest - MCIS 생성 요청 구조 Wrapper 정의

type TbMcisReq

type TbMcisReq struct {
	Name            string    `yaml:"name" json:"name"`
	InstallMonAgent string    `yaml:"installMonAgent" json:"installMonAgent"`
	Label           string    `yaml:"label" json:"label"`
	PlacementAlgo   string    `yaml:"placementAlgo" json:"placementAlgo"`
	Description     string    `yaml:"description" json:"description"`
	Vm              []TbVmReq `yaml:"vm" json:"vm"`
}

TbMcisReq - MCIS 생성 요청 구조 정의

type TbSecurityGroupCreateRequest

type TbSecurityGroupCreateRequest struct {
	NsId string             `yaml:"nsId" json:"nsId"`
	Item TbSecurityGroupReq `yaml:"securityGroup" json:"securityGroup"`
}

TbSecurityGroupCreateRequest - Wrapper struct

type TbSecurityGroupReq

type TbSecurityGroupReq struct {
	Name           string                    `yaml:"name" json:"name"`
	ConnectionName string                    `yaml:"connectionName" json:"connectionName"`
	VNetId         string                    `yaml:"vNetId" json:"vNetId"`
	Description    string                    `yaml:"description" json:"description"`
	FirewallRules  *[]SpiderSecurityRuleInfo `yaml:"firewallRules" json:"firewallRules"`
}

TbSecurityGroupReq

type TbSpecCreateRequest

type TbSpecCreateRequest struct {
	NsId string    `yaml:"nsId" json:"nsId"`
	Item TbSpecReq `yaml:"spec" json:"spec"`
}

TbSpecCreateRequest - Wrapper struct

type TbSpecInfo

type TbSpecInfo struct {
	Id                    string   `yaml:"id" json:"id"`
	Name                  string   `yaml:"name" json:"name"`
	ConnectionName        string   `yaml:"connectionName" json:"connectionName"`
	CspSpecName           string   `yaml:"cspSpecName" json:"cspSpecName"`
	Os_type               string   `yaml:"os_type" json:"os_type"`
	Num_vCPU              uint16   `yaml:"num_vCPU" json:"num_vCPU"`
	Num_core              uint16   `yaml:"num_core" json:"num_core"`
	Mem_GiB               uint16   `yaml:"mem_GiB" json:"mem_GiB"`
	Storage_GiB           uint32   `yaml:"storage_GiB" json:"storage_GiB"`
	Description           string   `yaml:"description" json:"description"`
	Cost_per_hour         float32  `yaml:"cost_per_hour" json:"cost_per_hour"`
	Num_storage           uint8    `yaml:"num_storage" json:"num_storage"`
	Max_num_storage       uint8    `yaml:"max_num_storage" json:"max_num_storage"`
	Max_total_storage_TiB uint16   `yaml:"max_total_storage_TiB" json:"max_total_storage_TiB"`
	Net_bw_Gbps           uint16   `yaml:"net_bw_Gbps" json:"net_bw_Gbps"`
	Ebs_bw_Mbps           uint32   `yaml:"ebs_bw_Mbps" json:"ebs_bw_Mbps"`
	Gpu_model             string   `yaml:"gpu_model" json:"gpu_model"`
	Num_gpu               uint8    `yaml:"num_gpu" json:"num_gpu"`
	Gpumem_GiB            uint16   `yaml:"gpumem_GiB" json:"gpumem_GiB"`
	Gpu_p2p               string   `yaml:"gpu_p2p" json:"gpu_p2p"`
	OrderInFilteredResult uint16   `yaml:"orderInFilteredResult" json:"orderInFilteredResult"`
	EvaluationStatus      string   `yaml:"evaluationStatus" json:"evaluationStatus"`
	EvaluationScore_01    float32  `yaml:"evaluationScore_01" json:"evaluationScore_01"`
	EvaluationScore_02    float32  `yaml:"evaluationScore_02" json:"evaluationScore_02"`
	EvaluationScore_03    float32  `yaml:"evaluationScore_03" json:"evaluationScore_03"`
	EvaluationScore_04    float32  `yaml:"evaluationScore_04" json:"evaluationScore_04"`
	EvaluationScore_05    float32  `yaml:"evaluationScore_05" json:"evaluationScore_05"`
	EvaluationScore_06    float32  `yaml:"evaluationScore_06" json:"evaluationScore_06"`
	EvaluationScore_07    float32  `yaml:"evaluationScore_07" json:"evaluationScore_07"`
	EvaluationScore_08    float32  `yaml:"evaluationScore_08" json:"evaluationScore_08"`
	EvaluationScore_09    float32  `yaml:"evaluationScore_09" json:"evaluationScore_09"`
	EvaluationScore_10    float32  `yaml:"evaluationScore_10" json:"evaluationScore_10"`
	AssociatedObjectList  []string `yaml:"associatedObjectList" json:"associatedObjectList"`
	IsAutoGenerated       bool     `yaml:"isAutoGenerated" json:"isAutoGenerated"`
}

TbSpecInfo

type TbSpecInfoRequest

type TbSpecInfoRequest struct {
	NsId string     `yaml:"nsId" json:"nsId"`
	Item TbSpecInfo `yaml:"spec" json:"spec"`
}

TbSpecInfoRequest - Wrapper struct

type TbSpecReq

type TbSpecReq struct {
	Name           string `yaml:"name" json:"name"`
	ConnectionName string `yaml:"connectionName" json:"connectionName"`
	CspSpecName    string `yaml:"cspSpecName" json:"cspSpecName"`
	Description    string `yaml:"description" json:"description"`
}

TbSpecReq

type TbSshKeyCreateRequest

type TbSshKeyCreateRequest struct {
	NsId string      `yaml:"nsId" json:"nsId"`
	Item TbSshKeyReq `yaml:"sshKey" json:"sshKey"`
}

TbSshKeyCreateRequest - Wrapper struct

type TbSshKeyReq

type TbSshKeyReq struct {
	Name           string `yaml:"name" json:"name"`
	ConnectionName string `yaml:"connectionName" json:"connectionName"`
	Description    string `yaml:"description" json:"description"`
}

TbSshKeyReq

type TbVNetCreateRequest

type TbVNetCreateRequest struct {
	NsId string    `yaml:"nsId" json:"nsId"`
	Item TbVNetReq `yaml:"vNet" json:"vNet"`
}

TbVNetCreateRequest - Wrapper struct

type TbVNetReq

type TbVNetReq struct {
	Name           string                `yaml:"name" json:"name"`
	ConnectionName string                `yaml:"connectionName" json:"connectionName"`
	CidrBlock      string                `yaml:"cidrBlock" json:"cidrBlock"`
	SubnetInfoList []SpiderSubnetReqInfo `yaml:"subnetInfoList" json:"subnetInfoList"`
	Description    string                `yaml:"description" json:"description"`
}

TbVNetReq

type TbVmCreateRequest

type TbVmCreateRequest struct {
	NsId   string   `yaml:"nsId" json:"nsId"`
	McisId string   `yaml:"mcisId" json:"mcisId"`
	Item   TbVmInfo `yaml:"mcisvm" json:"mcisvm"`
}

TbVmCreateRequest - MCIS VM 생성 요청 구조 Wrapper 정의

type TbVmGroupCreateRequest added in v0.3.7

type TbVmGroupCreateRequest struct {
	NsId   string  `yaml:"nsId" json:"nsId"`
	McisId string  `yaml:"mcisId" json:"mcisId"`
	Item   TbVmReq `yaml:"groupvm" json:"groupvm"`
}

TbVmGroupCreateRequest - MCIS VM 그룹 생성 요청 구조 Wrapper 정의

type TbVmInfo

type TbVmInfo struct {
	Id               string      `yaml:"id" json:"id"`
	Name             string      `yaml:"name" json:"name"`
	VmGroupId        string      `yaml:"vmGroupId" json:"vmGroupId"`
	Location         GeoLocation `yaml:"location" json:"location"`
	Status           string      `yaml:"status" json:"status"`
	TargetStatus     string      `yaml:"targetStatus" json:"targetStatus"`
	TargetAction     string      `yaml:"targetAction" json:"targetAction"`
	MonAgentStatus   string      `yaml:"monAgentStatus" json:"monAgentStatus"`
	SystemMessage    string      `yaml:"systemMessage" json:"systemMessage"`
	CreatedTime      string      `yaml:"createdTime" json:"createdTime"`
	Label            string      `yaml:"label" json:"label"`
	Description      string      `yaml:"description" json:"description"`
	Region           RegionInfo  `yaml:"region" json:"region"`
	PublicIP         string      `yaml:"publicIP" json:"publicIP"`
	SSHPort          string      `yaml:"sshPort" json:"sshPort"`
	PublicDNS        string      `yaml:"publicDNS" json:"publicDNS"`
	PrivateIP        string      `yaml:"privateIP" json:"privateIP"`
	PrivateDNS       string      `yaml:"privateDNS" json:"privateDNS"`
	VMBootDisk       string      `yaml:"vmBootDisk" json:"vmBootDisk"`
	VMBlockDisk      string      `yaml:"vmBlockDisk" json:"vmBlockDisk"`
	ConnectionName   string      `yaml:"connectionName" json:"connectionName"`
	SpecId           string      `yaml:"specId" json:"specId"`
	ImageId          string      `yaml:"imageId" json:"imageId"`
	VNetId           string      `yaml:"vNetId" json:"vNetId"`
	SubnetId         string      `yaml:"subnetId" json:"subnetId"`
	SecurityGroupIds []string    `yaml:"securityGroupIds" json:"securityGroupIds"`
	SshKeyId         string      `yaml:"sshKeyId" json:"sshKeyId"`
	VmUserAccount    string      `yaml:"vmUserAccount" json:"vmUserAccount"`
	VmUserPassword   string      `yaml:"vmUserPassword" json:"vmUserPassword"`
}

TbVmInfo - MCIS VM 구조 정의

type TbVmRecommendReq

type TbVmRecommendReq struct {
	RequestName  string `yaml:"requestName" json:"requestName"`
	MaxResultNum string `yaml:"maxResultNum" json:"maxResultNum"`

	VcpuSize   string `yaml:"vcpuSize" json:"vcpuSize"`
	MemorySize string `yaml:"memorySize" json:"memorySize"`
	DiskSize   string `yaml:"diskSize" json:"diskSize"`

	PlacementAlgo  string     `yaml:"placementAlgo" json:"placementAlgo"`
	PlacementParam []KeyValue `yaml:"placementParam" json:"placementParam"`
}

McisRecommendReq - MCIS VM 추천 요청 구조 정의

type TbVmReq

type TbVmReq struct {
	Name             string   `yaml:"name" json:"name"`
	VmGroupSize      string   `yaml:"vmGroupSize" json:"vmGroupSize"`
	Label            string   `yaml:"label" json:"label"`
	Description      string   `yaml:"description" json:"description"`
	ConnectionName   string   `yaml:"connectionName" json:"connectionName"`
	SpecId           string   `yaml:"specId" json:"specId"`
	ImageId          string   `yaml:"imageId" json:"imageId"`
	VNetId           string   `yaml:"vNetId" json:"vNetId"`
	SubnetId         string   `yaml:"subnetId" json:"subnetId"`
	SecurityGroupIds []string `yaml:"securityGroupIds" json:"securityGroupIds"`
	SshKeyId         string   `yaml:"sshKeyId" json:"sshKeyId"`
	VmUserAccount    string   `yaml:"vmUserAccount" json:"vmUserAccount"`
	VmUserPassword   string   `yaml:"vmUserPassword" json:"vmUserPassword"`
}

TbVmReq - MCIS VM 생성 요청 구조 정의

type UtilityApi added in v0.3.11

type UtilityApi struct {
	// contains filtered or unexported fields
}

UtilityApi - Utility API 구조 정의

func NewUtilityManager added in v0.3.11

func NewUtilityManager() (u *UtilityApi)

NewUtilityManager - Utility API 객체 생성

func (*UtilityApi) Close added in v0.3.11

func (u *UtilityApi) Close()

Close - 연결 종료

func (*UtilityApi) CreateConfig added in v0.3.11

func (u *UtilityApi) CreateConfig(doc string) (string, error)

CreateConfig - Config 생성

func (*UtilityApi) CreateConfigByParam added in v0.3.11

func (u *UtilityApi) CreateConfigByParam(req *ConfigReq) (string, error)

CreateConfigByParam - Config 생성

func (*UtilityApi) DeleteAllObject added in v0.3.11

func (u *UtilityApi) DeleteAllObject(doc string) (string, error)

DeleteAllObject - 객체 전체 삭제

func (*UtilityApi) DeleteAllObjectByParam added in v0.3.11

func (u *UtilityApi) DeleteAllObjectByParam(key string) (string, error)

DeleteAllObjectByParam - 객체 전체 삭제

func (*UtilityApi) DeleteObject added in v0.3.11

func (u *UtilityApi) DeleteObject(doc string) (string, error)

DeleteObject - 객체 삭제

func (*UtilityApi) DeleteObjectByParam added in v0.3.11

func (u *UtilityApi) DeleteObjectByParam(key string) (string, error)

DeleteObjectByParam - 객체 삭제

func (*UtilityApi) GetConfig added in v0.3.11

func (u *UtilityApi) GetConfig(doc string) (string, error)

GetConfig - Config 조회

func (*UtilityApi) GetConfigByParam added in v0.3.11

func (u *UtilityApi) GetConfigByParam(configId string) (string, error)

GetConfigByParam - Config 조회

func (*UtilityApi) GetConnConfig added in v0.3.11

func (u *UtilityApi) GetConnConfig(doc string) (string, error)

GetConnConfig - Connection Config 조회

func (*UtilityApi) GetConnConfigByParam added in v0.3.11

func (u *UtilityApi) GetConnConfigByParam(connConfigName string) (string, error)

GetConnConfigByParam - Connection Config 조회

func (*UtilityApi) GetInType added in v0.3.11

func (u *UtilityApi) GetInType() (string, error)

GetInType - 입력 문서 타입 값 조회

func (*UtilityApi) GetJWTToken added in v0.3.11

func (u *UtilityApi) GetJWTToken() (string, error)

GetJWTToken - JWT 인증 토큰 값 조회

func (*UtilityApi) GetObject added in v0.3.11

func (u *UtilityApi) GetObject(doc string) (string, error)

GetObject - 객체 조회

func (*UtilityApi) GetObjectByParam added in v0.3.11

func (u *UtilityApi) GetObjectByParam(key string) (string, error)

GetObjectByParam - 객체 조회

func (*UtilityApi) GetOutType added in v0.3.11

func (u *UtilityApi) GetOutType() (string, error)

GetOutType - 출력 문서 타입 값 조회

func (*UtilityApi) GetRegion added in v0.3.11

func (u *UtilityApi) GetRegion(doc string) (string, error)

GetRegion - Region 조회

func (*UtilityApi) GetRegionByParam added in v0.3.11

func (u *UtilityApi) GetRegionByParam(regionName string) (string, error)

GetRegionByParam - Region 조회

func (*UtilityApi) GetServerAddr added in v0.3.11

func (u *UtilityApi) GetServerAddr() (string, error)

GetServerAddr - Tumblebug 서버 주소 값 조회

func (*UtilityApi) GetTLSCA added in v0.3.11

func (u *UtilityApi) GetTLSCA() (string, error)

GetTLSCA - TLS CA 값 조회

func (*UtilityApi) GetTimeout added in v0.3.11

func (u *UtilityApi) GetTimeout() (time.Duration, error)

GetTimeout - Timeout 값 조회

func (*UtilityApi) InitAllConfig added in v0.3.11

func (u *UtilityApi) InitAllConfig() (string, error)

InitAllConfig - Config 전체 삭제

func (*UtilityApi) InitConfig added in v0.3.11

func (u *UtilityApi) InitConfig(doc string) (string, error)

InitConfig - Config 조회

func (*UtilityApi) InitConfigByParam added in v0.3.11

func (u *UtilityApi) InitConfigByParam(configId string) (string, error)

InitConfigByParam - Config 조회

func (*UtilityApi) InspectMcirResources added in v0.3.11

func (u *UtilityApi) InspectMcirResources(doc string) (string, error)

InspectMcirResources - MCIR 리소스 점검

func (*UtilityApi) InspectMcirResourcesByParam added in v0.3.11

func (u *UtilityApi) InspectMcirResourcesByParam(connectionName string, mcirType string) (string, error)

InspectMcirResourcesByParam - MCIR 리소스 점검

func (*UtilityApi) InspectVmResources added in v0.3.11

func (u *UtilityApi) InspectVmResources(doc string) (string, error)

InspectVmResources - VM 리소스 점검

func (*UtilityApi) InspectVmResourcesByParam added in v0.3.11

func (u *UtilityApi) InspectVmResourcesByParam(connectionName string) (string, error)

InspectVmResourcesByParam - VM 리소스 점검

func (*UtilityApi) ListConfig added in v0.3.11

func (u *UtilityApi) ListConfig() (string, error)

ListConfig - Config 목록

func (*UtilityApi) ListConnConfig added in v0.3.11

func (u *UtilityApi) ListConnConfig() (string, error)

ListConnConfig - Connection Config 목록

func (*UtilityApi) ListObject added in v0.3.11

func (u *UtilityApi) ListObject(doc string) (string, error)

ListObject - 객체 목록

func (*UtilityApi) ListObjectByParam added in v0.3.11

func (u *UtilityApi) ListObjectByParam(key string) (string, error)

ListObjectByParam - 객체 목록

func (*UtilityApi) ListRegion added in v0.3.11

func (u *UtilityApi) ListRegion() (string, error)

ListRegion - Region 목록

func (*UtilityApi) Open added in v0.3.11

func (u *UtilityApi) Open() error

Open - 연결 설정

func (*UtilityApi) SetConfigPath added in v0.3.11

func (u *UtilityApi) SetConfigPath(configFile string) error

SetConfigPath - 환경설정 파일 설정

func (*UtilityApi) SetInType added in v0.3.11

func (u *UtilityApi) SetInType(in string) error

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

func (*UtilityApi) SetJWTToken added in v0.3.11

func (u *UtilityApi) SetJWTToken(token string) error

SetJWTToken - JWT 인증 토큰 설정

func (*UtilityApi) SetOutType added in v0.3.11

func (u *UtilityApi) SetOutType(out string) error

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

func (*UtilityApi) SetServerAddr added in v0.3.11

func (u *UtilityApi) SetServerAddr(addr string) error

SetServerAddr - Tumblebug 서버 주소 설정

func (*UtilityApi) SetTLSCA added in v0.3.11

func (u *UtilityApi) SetTLSCA(tlsCAFile string) error

SetTLSCA - TLS CA 설정

func (*UtilityApi) SetTimeout added in v0.3.11

func (u *UtilityApi) SetTimeout(timeout time.Duration) error

SetTimeout - Timeout 설정

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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