Documentation
¶
Index ¶
- type GeoLocation
- type IID
- type KeyValue
- type MCIRApi
- func (m *MCIRApi) CheckResource(doc string) (string, error)
- func (m *MCIRApi) CheckResourceByParam(nameSpaceID string, resourceID string, resourceType string) (string, error)
- func (m *MCIRApi) Close()
- func (m *MCIRApi) CreateImageWithID(doc string) (string, error)
- func (m *MCIRApi) CreateImageWithIDByParam(req *TbImageCreateRequest) (string, error)
- func (m *MCIRApi) CreateImageWithInfo(doc string) (string, error)
- func (m *MCIRApi) CreateImageWithInfoByParam(req *TbImageInfoRequest) (string, error)
- func (m *MCIRApi) CreateSecurityGroup(doc string) (string, error)
- func (m *MCIRApi) CreateSecurityGroupByParam(req *TbSecurityGroupCreateRequest) (string, error)
- func (m *MCIRApi) CreateSpecWithInfo(doc string) (string, error)
- func (m *MCIRApi) CreateSpecWithInfoByParam(req *TbSpecInfoRequest) (string, error)
- func (m *MCIRApi) CreateSpecWithSpecName(doc string) (string, error)
- func (m *MCIRApi) CreateSpecWithSpecNameByParam(req *TbSpecCreateRequest) (string, error)
- func (m *MCIRApi) CreateSshKey(doc string) (string, error)
- func (m *MCIRApi) CreateSshKeyByParam(req *TbSshKeyCreateRequest) (string, error)
- func (m *MCIRApi) CreateVNet(doc string) (string, error)
- func (m *MCIRApi) CreateVNetByParam(req *TbVNetCreateRequest) (string, error)
- func (m *MCIRApi) DeleteAllImage(doc string) (string, error)
- func (m *MCIRApi) DeleteAllImageByParam(nameSpaceID string, force string) (string, error)
- func (m *MCIRApi) DeleteAllSecurityGroup(doc string) (string, error)
- func (m *MCIRApi) DeleteAllSecurityGroupByParam(nameSpaceID string, force string) (string, error)
- func (m *MCIRApi) DeleteAllSpec(doc string) (string, error)
- func (m *MCIRApi) DeleteAllSpecByParam(nameSpaceID string, force string) (string, error)
- func (m *MCIRApi) DeleteAllSshKey(doc string) (string, error)
- func (m *MCIRApi) DeleteAllSshKeyByParam(nameSpaceID string, force string) (string, error)
- func (m *MCIRApi) DeleteAllVNet(doc string) (string, error)
- func (m *MCIRApi) DeleteAllVNetByParam(nameSpaceID string, force string) (string, error)
- func (m *MCIRApi) DeleteImage(doc string) (string, error)
- func (m *MCIRApi) DeleteImageByParam(nameSpaceID string, resourceID string, force string) (string, error)
- func (m *MCIRApi) DeleteSecurityGroup(doc string) (string, error)
- func (m *MCIRApi) DeleteSecurityGroupByParam(nameSpaceID string, resourceID string, force string) (string, error)
- func (m *MCIRApi) DeleteSpec(doc string) (string, error)
- func (m *MCIRApi) DeleteSpecByParam(nameSpaceID string, resourceID string, force string) (string, error)
- func (m *MCIRApi) DeleteSshKey(doc string) (string, error)
- func (m *MCIRApi) DeleteSshKeyByParam(nameSpaceID string, resourceID string, force string) (string, error)
- func (m *MCIRApi) DeleteVNet(doc string) (string, error)
- func (m *MCIRApi) DeleteVNetByParam(nameSpaceID string, resourceID string, force string) (string, error)
- func (m *MCIRApi) FetchImage(doc string) (string, error)
- func (m *MCIRApi) FetchImageByParam(nameSpaceID string) (string, error)
- func (m *MCIRApi) FetchSpec(doc string) (string, error)
- func (m *MCIRApi) FetchSpecByParam(nameSpaceID string) (string, error)
- func (m *MCIRApi) FilterSpec(doc string) (string, error)
- func (m *MCIRApi) FilterSpecsByRange(doc string) (string, error)
- func (m *MCIRApi) GetImage(doc string) (string, error)
- func (m *MCIRApi) GetImageByParam(nameSpaceID string, resourceID string) (string, error)
- func (m *MCIRApi) GetInType() (string, error)
- func (m *MCIRApi) GetJWTToken() (string, error)
- func (m *MCIRApi) GetLookupImage(doc string) (string, error)
- func (m *MCIRApi) GetLookupImageByParam(connConfigName string, imageId string) (string, error)
- func (m *MCIRApi) GetLookupSpec(doc string) (string, error)
- func (m *MCIRApi) GetLookupSpecByParam(connConfigName string, specName string) (string, error)
- func (m *MCIRApi) GetOutType() (string, error)
- func (m *MCIRApi) GetSecurityGroup(doc string) (string, error)
- func (m *MCIRApi) GetSecurityGroupByParam(nameSpaceID string, resourceID string) (string, error)
- func (m *MCIRApi) GetServerAddr() (string, error)
- func (m *MCIRApi) GetSpec(doc string) (string, error)
- func (m *MCIRApi) GetSpecByParam(nameSpaceID string, resourceID string) (string, error)
- func (m *MCIRApi) GetSshKey(doc string) (string, error)
- func (m *MCIRApi) GetSshKeyByParam(nameSpaceID string, resourceID string) (string, error)
- func (m *MCIRApi) GetTLSCA() (string, error)
- func (m *MCIRApi) GetTimeout() (time.Duration, error)
- func (m *MCIRApi) GetVNet(doc string) (string, error)
- func (m *MCIRApi) GetVNetByParam(nameSpaceID string, resourceID string) (string, error)
- func (m *MCIRApi) ListImage(doc string) (string, error)
- func (m *MCIRApi) ListImageByParam(nameSpaceID string) (string, error)
- func (m *MCIRApi) ListLookupImage(doc string) (string, error)
- func (m *MCIRApi) ListLookupImageByParam(connConfigName string) (string, error)
- func (m *MCIRApi) ListLookupSpec(doc string) (string, error)
- func (m *MCIRApi) ListLookupSpecByParam(connConfigName string) (string, error)
- func (m *MCIRApi) ListSecurityGroup(doc string) (string, error)
- func (m *MCIRApi) ListSecurityGroupByParam(nameSpaceID string) (string, error)
- func (m *MCIRApi) ListSpec(doc string) (string, error)
- func (m *MCIRApi) ListSpecByParam(nameSpaceID string) (string, error)
- func (m *MCIRApi) ListSshKey(doc string) (string, error)
- func (m *MCIRApi) ListSshKeyByParam(nameSpaceID string) (string, error)
- func (m *MCIRApi) ListVNet(doc string) (string, error)
- func (m *MCIRApi) ListVNetByParam(nameSpaceID string) (string, error)
- func (m *MCIRApi) Open() error
- func (m *MCIRApi) SetConfigPath(configFile string) error
- func (m *MCIRApi) SetInType(in string) error
- func (m *MCIRApi) SetJWTToken(token string) error
- func (m *MCIRApi) SetOutType(out string) error
- func (m *MCIRApi) SetServerAddr(addr string) error
- func (m *MCIRApi) SetTLSCA(tlsCAFile string) error
- func (m *MCIRApi) SetTimeout(timeout time.Duration) error
- func (m *MCIRApi) SortSpecs(doc string) (string, error)
- func (m *MCIRApi) UpdateSpec(doc string) (string, error)
- type MCISApi
- func (m *MCISApi) CheckMcis(doc string) (string, error)
- func (m *MCISApi) CheckMcisByParam(nameSpaceID string, mcisID string) (string, error)
- func (m *MCISApi) CheckVm(doc string) (string, error)
- func (m *MCISApi) CheckVmByParam(nameSpaceID string, mcisID string, vmID string) (string, error)
- func (m *MCISApi) Close()
- func (m *MCISApi) CmdMcis(doc string) (string, error)
- func (m *MCISApi) CmdMcisByParam(req *McisCmdCreateRequest) (string, error)
- func (m *MCISApi) CmdMcisVm(doc string) (string, error)
- func (m *MCISApi) CmdMcisVmByParam(req *McisCmdVmCreateRequest) (string, error)
- func (m *MCISApi) ControlMcis(doc string) (string, error)
- func (m *MCISApi) ControlMcisByParam(nameSpaceID string, mcisID string, action string) (string, error)
- func (m *MCISApi) ControlMcisVM(doc string) (string, error)
- func (m *MCISApi) ControlMcisVMByParam(nameSpaceID string, mcisID string, vmID string, action string) (string, error)
- func (m *MCISApi) CreateMcis(doc string) (string, error)
- func (m *MCISApi) CreateMcisByParam(req *TbMcisCreateRequest) (string, error)
- func (m *MCISApi) CreateMcisVM(doc string) (string, error)
- func (m *MCISApi) CreateMcisVMByParam(req *TbVmCreateRequest) (string, error)
- func (m *MCISApi) DeleteAllMcis(doc string) (string, error)
- func (m *MCISApi) DeleteAllMcisByParam(nameSpaceID string) (string, error)
- func (m *MCISApi) DeleteMcis(doc string) (string, error)
- func (m *MCISApi) DeleteMcisByParam(nameSpaceID string, mcisID string) (string, error)
- func (m *MCISApi) DeleteMcisVM(doc string) (string, error)
- func (m *MCISApi) DeleteMcisVMByParam(nameSpaceID string, mcisID string, vmID string) (string, error)
- func (m *MCISApi) GetAllBenchmark(doc string) (string, error)
- func (m *MCISApi) GetAllBenchmarkByParam(nameSpaceID string, mcisID string, host string) (string, error)
- func (m *MCISApi) GetBenchmark(doc string) (string, error)
- func (m *MCISApi) GetBenchmarkByParam(nameSpaceID string, mcisID string, action string, host string) (string, error)
- func (m *MCISApi) GetInType() (string, error)
- func (m *MCISApi) GetJWTToken() (string, error)
- func (m *MCISApi) GetMcisInfo(doc string) (string, error)
- func (m *MCISApi) GetMcisInfoByParam(nameSpaceID string, mcisID string) (string, error)
- func (m *MCISApi) GetMcisStatus(doc string) (string, error)
- func (m *MCISApi) GetMcisStatusByParam(nameSpaceID string, mcisID string) (string, error)
- func (m *MCISApi) GetMcisVMInfo(doc string) (string, error)
- func (m *MCISApi) GetMcisVMInfoByParam(nameSpaceID string, mcisID string, vmID string) (string, error)
- func (m *MCISApi) GetMcisVMStatus(doc string) (string, error)
- func (m *MCISApi) GetMcisVMStatusByParam(nameSpaceID string, mcisID string, vmID string) (string, error)
- func (m *MCISApi) GetMonitorData(doc string) (string, error)
- func (m *MCISApi) GetMonitorDataByParam(nameSpaceID string, mcisID string, metric string) (string, error)
- func (m *MCISApi) GetOutType() (string, error)
- func (m *MCISApi) GetServerAddr() (string, error)
- func (m *MCISApi) GetTLSCA() (string, error)
- func (m *MCISApi) GetTimeout() (time.Duration, error)
- func (m *MCISApi) InstallAgentToMcis(doc string) (string, error)
- func (m *MCISApi) InstallAgentToMcisByParam(req *McisCmdCreateRequest) (string, error)
- func (m *MCISApi) InstallMonitorAgentToMcis(doc string) (string, error)
- func (m *MCISApi) InstallMonitorAgentToMcisByParam(req *McisCmdCreateRequest) (string, error)
- func (m *MCISApi) ListMcis(doc string) (string, error)
- func (m *MCISApi) ListMcisByParam(nameSpaceID string, option string) (string, error)
- func (m *MCISApi) Open() error
- func (m *MCISApi) RecommandMcis(doc string) (string, error)
- func (m *MCISApi) RecommandMcisByParam(req *McisRecommendCreateRequest) (string, error)
- func (m *MCISApi) SetConfigPath(configFile string) error
- func (m *MCISApi) SetInType(in string) error
- func (m *MCISApi) SetJWTToken(token string) error
- func (m *MCISApi) SetOutType(out string) error
- func (m *MCISApi) SetServerAddr(addr string) error
- func (m *MCISApi) SetTLSCA(tlsCAFile string) error
- func (m *MCISApi) SetTimeout(timeout time.Duration) error
- type McisCmdCreateRequest
- type McisCmdReq
- type McisCmdVmCreateRequest
- type McisRecommendCreateRequest
- type McisRecommendReq
- type NSApi
- func (ns *NSApi) CheckNS(doc string) (string, error)
- func (ns *NSApi) CheckNSByParam(nameSpaceID string) (string, error)
- func (ns *NSApi) Close()
- func (ns *NSApi) CreateNS(doc string) (string, error)
- func (ns *NSApi) CreateNSByParam(req *NsReq) (string, error)
- func (ns *NSApi) DeleteAllNS() (string, error)
- func (ns *NSApi) DeleteNS(doc string) (string, error)
- func (ns *NSApi) DeleteNSByParam(nameSpaceID string) (string, error)
- func (ns *NSApi) GetInType() (string, error)
- func (ns *NSApi) GetJWTToken() (string, error)
- func (ns *NSApi) GetNS(doc string) (string, error)
- func (ns *NSApi) GetNSByParam(nameSpaceID string) (string, error)
- func (ns *NSApi) GetOutType() (string, error)
- func (ns *NSApi) GetServerAddr() (string, error)
- func (ns *NSApi) GetTLSCA() (string, error)
- func (ns *NSApi) GetTimeout() (time.Duration, error)
- func (ns *NSApi) ListNS() (string, error)
- func (ns *NSApi) Open() error
- func (ns *NSApi) SetConfigPath(configFile string) error
- func (ns *NSApi) SetInType(in string) error
- func (ns *NSApi) SetJWTToken(token string) error
- func (ns *NSApi) SetOutType(out string) error
- func (ns *NSApi) SetServerAddr(addr string) error
- func (ns *NSApi) SetTLSCA(tlsCAFile string) error
- func (ns *NSApi) SetTimeout(timeout time.Duration) error
- type NsReq
- type RegionInfo
- type SpiderSecurityRuleInfo
- type SpiderSubnetReqInfo
- type SpiderVMInfo
- type TbImageCreateRequest
- type TbImageInfo
- type TbImageInfoRequest
- type TbImageReq
- type TbMcisCreateRequest
- type TbMcisReq
- type TbSecurityGroupCreateRequest
- type TbSecurityGroupReq
- type TbSpecCreateRequest
- type TbSpecInfo
- type TbSpecInfoRequest
- type TbSpecReq
- type TbSshKeyCreateRequest
- type TbSshKeyReq
- type TbVNetCreateRequest
- type TbVNetReq
- type TbVmCreateRequest
- type TbVmInfo
- type TbVmRecommendReq
- type TbVmReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 - IID 구조 정의
type KeyValue ¶
type KeyValue struct { Key string `yaml:"Key" json:"Key"` Value string `yaml:"Value" json:"Value"` }
KeyValue - Key / Value 구조 정의
type MCIRApi ¶
type MCIRApi struct {
// contains filtered or unexported fields
}
MCIRApi - MCIR API 구조 정의
func (*MCIRApi) CheckResource ¶
CheckResource - Resouce 체크
func (*MCIRApi) CheckResourceByParam ¶
func (m *MCIRApi) CheckResourceByParam(nameSpaceID string, resourceID string, resourceType string) (string, error)
CheckResourceByParam - Resouce 체크
func (*MCIRApi) CreateImageWithID ¶
CreateImageWithID - Image 생성
func (*MCIRApi) CreateImageWithIDByParam ¶
func (m *MCIRApi) CreateImageWithIDByParam(req *TbImageCreateRequest) (string, error)
CreateImageWithIDByParam - Image 생성
func (*MCIRApi) CreateImageWithInfo ¶
CreateImageWithInfo - Image 생성
func (*MCIRApi) CreateImageWithInfoByParam ¶
func (m *MCIRApi) CreateImageWithInfoByParam(req *TbImageInfoRequest) (string, error)
CreateImageWithInfoByParam - Image 생성
func (*MCIRApi) CreateSecurityGroup ¶
CreateSecurityGroup - Security Group 생성
func (*MCIRApi) CreateSecurityGroupByParam ¶
func (m *MCIRApi) CreateSecurityGroupByParam(req *TbSecurityGroupCreateRequest) (string, error)
CreateSecurityGroupByParam - Security Group 생성
func (*MCIRApi) CreateSpecWithInfo ¶
CreateSpecWithInfo - Spec 생성
func (*MCIRApi) CreateSpecWithInfoByParam ¶
func (m *MCIRApi) CreateSpecWithInfoByParam(req *TbSpecInfoRequest) (string, error)
CreateSpecWithInfoByParam - Spec 생성
func (*MCIRApi) CreateSpecWithSpecName ¶
CreateSpecWithSpecName - Spec 생성
func (*MCIRApi) CreateSpecWithSpecNameByParam ¶
func (m *MCIRApi) CreateSpecWithSpecNameByParam(req *TbSpecCreateRequest) (string, error)
CreateSpecWithSpecNameByParam - Spec 생성
func (*MCIRApi) CreateSshKey ¶
CreateSshKey - KeyPair 생성
func (*MCIRApi) CreateSshKeyByParam ¶
func (m *MCIRApi) CreateSshKeyByParam(req *TbSshKeyCreateRequest) (string, error)
CreateSshKeyByParam - KeyPair 생성
func (*MCIRApi) CreateVNet ¶
CreateVNet - VNet 생성
func (*MCIRApi) CreateVNetByParam ¶
func (m *MCIRApi) CreateVNetByParam(req *TbVNetCreateRequest) (string, error)
CreateVNetByParam - VNet 생성
func (*MCIRApi) DeleteAllImage ¶
DeleteAllImage - Image 전체 삭제
func (*MCIRApi) DeleteAllImageByParam ¶
DeleteAllImageByParam - Image 전체 삭제
func (*MCIRApi) DeleteAllSecurityGroup ¶
DeleteAllSecurityGroup - Security Group 전체 삭제
func (*MCIRApi) DeleteAllSecurityGroupByParam ¶
DeleteAllSecurityGroupByParam - Security Group 전체 삭제
func (*MCIRApi) DeleteAllSpec ¶
DeleteAllSpec - Spec 전체 삭제
func (*MCIRApi) DeleteAllSpecByParam ¶
DeleteAllSpecByParam - Spec 전체 삭제
func (*MCIRApi) DeleteAllSshKey ¶
DeleteAllSshKey - KeyPair 전체 삭제
func (*MCIRApi) DeleteAllSshKeyByParam ¶
DeleteAllSshKeyByParam - KeyPair 전체 삭제
func (*MCIRApi) DeleteAllVNet ¶
DeleteAllVNet - VNet 전체 삭제
func (*MCIRApi) DeleteAllVNetByParam ¶
DeleteAllVNetByParam - VNet 전체 삭제
func (*MCIRApi) DeleteImage ¶
DeleteImage - Image 삭제
func (*MCIRApi) DeleteImageByParam ¶
func (m *MCIRApi) DeleteImageByParam(nameSpaceID string, resourceID string, force string) (string, error)
DeleteImageByParam - Image 삭제
func (*MCIRApi) DeleteSecurityGroup ¶
DeleteSecurityGroup - Security Group 삭제
func (*MCIRApi) DeleteSecurityGroupByParam ¶
func (m *MCIRApi) DeleteSecurityGroupByParam(nameSpaceID string, resourceID string, force string) (string, error)
DeleteSecurityGroupByParam - Security Group 삭제
func (*MCIRApi) DeleteSpec ¶
DeleteSpec - Spec 삭제
func (*MCIRApi) DeleteSpecByParam ¶
func (m *MCIRApi) DeleteSpecByParam(nameSpaceID string, resourceID string, force string) (string, error)
DeleteSpecByParam - Spec 삭제
func (*MCIRApi) DeleteSshKey ¶
DeleteSshKey - KeyPair 삭제
func (*MCIRApi) DeleteSshKeyByParam ¶
func (m *MCIRApi) DeleteSshKeyByParam(nameSpaceID string, resourceID string, force string) (string, error)
DeleteSshKeyByParam - KeyPair 삭제
func (*MCIRApi) DeleteVNet ¶
DeleteVNet - VNet 삭제
func (*MCIRApi) DeleteVNetByParam ¶
func (m *MCIRApi) DeleteVNetByParam(nameSpaceID string, resourceID string, force string) (string, error)
DeleteVNetByParam - VNet 삭제
func (*MCIRApi) FetchImage ¶
FetchImage - Image 가져오기
func (*MCIRApi) FetchImageByParam ¶
FetchImageByParam - Image 가져오기
func (*MCIRApi) FetchSpecByParam ¶
FetchSpecByParam - Spec 가져오기
func (*MCIRApi) FilterSpec ¶ added in v0.2.8
FilterSpec
func (*MCIRApi) FilterSpecsByRange ¶ added in v0.3.1
FilterSpecsByRange
func (*MCIRApi) GetImageByParam ¶
GetImageByParam - Image 조회
func (*MCIRApi) GetJWTToken ¶
GetJWTToken - JWT 인증 토큰 값 조회
func (*MCIRApi) GetLookupImage ¶
GetLookupImage - Image 조회
func (*MCIRApi) GetLookupImageByParam ¶
GetLookupImageByParam - Image 조회
func (*MCIRApi) GetLookupSpec ¶
GetLookupSpec - Spec 조회
func (*MCIRApi) GetLookupSpecByParam ¶
GetLookupSpecByParam - Spec 조회
func (*MCIRApi) GetOutType ¶
GetOutType - 출력 문서 타입 값 조회
func (*MCIRApi) GetSecurityGroup ¶
GetSecurityGroup - Security Group 조회
func (*MCIRApi) GetSecurityGroupByParam ¶
GetSecurityGroupByParam - Security Group 조회
func (*MCIRApi) GetServerAddr ¶
GetServerAddr - Tumblebug 서버 주소 값 조회
func (*MCIRApi) GetSpecByParam ¶
GetSpecByParam - Spec 조회
func (*MCIRApi) GetSshKeyByParam ¶
GetSshKeyByParam - KeyPair 조회
func (*MCIRApi) GetTimeout ¶
GetTimeout - Timeout 값 조회
func (*MCIRApi) GetVNetByParam ¶
GetVNetByParam - VNet 조회
func (*MCIRApi) ListImageByParam ¶
ListImageByParam - Image 목록
func (*MCIRApi) ListLookupImage ¶
ListLookupImage - Image 목록
func (*MCIRApi) ListLookupImageByParam ¶
ListLookupImageByParam - Image 목록
func (*MCIRApi) ListLookupSpec ¶
ListLookupSpec - Spec 목록
func (*MCIRApi) ListLookupSpecByParam ¶
ListLookupSpecByParam - Spec 목록
func (*MCIRApi) ListSecurityGroup ¶
ListSecurityGroup - Security Group 목록
func (*MCIRApi) ListSecurityGroupByParam ¶
ListSecurityGroupByParam - Security Group 목록
func (*MCIRApi) ListSpecByParam ¶
ListSpecByParam - Spec 목록
func (*MCIRApi) ListSshKey ¶
ListSshKey - KeyPair 목록
func (*MCIRApi) ListSshKeyByParam ¶
ListSshKeyByParam - KeyPair 목록
func (*MCIRApi) ListVNetByParam ¶
ListVNetByParam - VNet 목록
func (*MCIRApi) SetConfigPath ¶
SetConfigPath - 환경설정 파일 설정
func (*MCIRApi) SetJWTToken ¶
SetJWTToken - JWT 인증 토큰 설정
func (*MCIRApi) SetOutType ¶
SetOutType - 출력 문서 타입 설정 (json/yaml)
func (*MCIRApi) SetServerAddr ¶
SetServerAddr - Tumblebug 서버 주소 설정
func (*MCIRApi) SetTimeout ¶
SetTimeout - Timeout 설정
type MCISApi ¶
type MCISApi struct {
// contains filtered or unexported fields
}
MCISApi - MCIS API 구조 정의
func (*MCISApi) CheckMcisByParam ¶
CheckMcisByParam - MCIS 체크
func (*MCISApi) CheckVmByParam ¶
CheckVmByParam - MCIS VM 체크
func (*MCISApi) CmdMcisByParam ¶
func (m *MCISApi) CmdMcisByParam(req *McisCmdCreateRequest) (string, error)
CmdMcisByParam - MCIS 명령 실행
func (*MCISApi) CmdMcisVmByParam ¶
func (m *MCISApi) CmdMcisVmByParam(req *McisCmdVmCreateRequest) (string, error)
CmdMcisVmByParam - MCIS VM 명령 실행
func (*MCISApi) ControlMcis ¶
ControlMcis - MCIS 제어
func (*MCISApi) ControlMcisByParam ¶
func (m *MCISApi) ControlMcisByParam(nameSpaceID string, mcisID string, action string) (string, error)
ControlMcisByParam - MCIS 제어
func (*MCISApi) ControlMcisVM ¶
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 ¶
CreateMcis - MCIS 생성
func (*MCISApi) CreateMcisByParam ¶
func (m *MCISApi) CreateMcisByParam(req *TbMcisCreateRequest) (string, error)
CreateMcisByParam - MCIS 생성
func (*MCISApi) CreateMcisVM ¶
CreateMcisVM - MCIS VM 생성
func (*MCISApi) CreateMcisVMByParam ¶
func (m *MCISApi) CreateMcisVMByParam(req *TbVmCreateRequest) (string, error)
CreateMcisVMByParam - MCIS VM 생성
func (*MCISApi) DeleteAllMcis ¶
DeleteAllMcis - MCIS 전체 삭제
func (*MCISApi) DeleteAllMcisByParam ¶
DeleteAllMcisByParam - MCIS 전체 삭제
func (*MCISApi) DeleteMcis ¶
DeleteMcis - MCIS 삭제
func (*MCISApi) DeleteMcisByParam ¶
DeleteMcisByParam - MCIS 삭제
func (*MCISApi) DeleteMcisVM ¶
DeleteMcisVM - MCIS VM 삭제
func (*MCISApi) DeleteMcisVMByParam ¶
func (m *MCISApi) DeleteMcisVMByParam(nameSpaceID string, mcisID string, vmID string) (string, error)
DeleteMcisVMByParam - MCIS VM 삭제
func (*MCISApi) GetAllBenchmark ¶
GetAllBenchmark - Benchmark 목록
func (*MCISApi) GetAllBenchmarkByParam ¶
func (m *MCISApi) GetAllBenchmarkByParam(nameSpaceID string, mcisID string, host string) (string, error)
GetAllBenchmarkByParam - Benchmark 목록
func (*MCISApi) GetBenchmark ¶
GetBenchmark - Benchmark 조회
func (*MCISApi) GetBenchmarkByParam ¶
func (m *MCISApi) GetBenchmarkByParam(nameSpaceID string, mcisID string, action string, host string) (string, error)
GetBenchmarkByParam - Benchmark 조회
func (*MCISApi) GetJWTToken ¶
GetJWTToken - JWT 인증 토큰 값 조회
func (*MCISApi) GetMcisInfo ¶
GetMcisInfo - MCIS 정보 조회
func (*MCISApi) GetMcisInfoByParam ¶
GetMcisInfoByParam - MCIS 정보 조회
func (*MCISApi) GetMcisStatus ¶
GetMcisStatus - MCIS 상태 조회
func (*MCISApi) GetMcisStatusByParam ¶
GetMcisStatusByParam - MCIS 상태 조회
func (*MCISApi) GetMcisVMInfo ¶
GetMcisVMInfo - MCIS VM 정보 조회
func (*MCISApi) GetMcisVMInfoByParam ¶
func (m *MCISApi) GetMcisVMInfoByParam(nameSpaceID string, mcisID string, vmID string) (string, error)
GetMcisVMInfoByParam - MCIS VM 정보 조회
func (*MCISApi) GetMcisVMStatus ¶
GetMcisVMStatus - MCIS VM 상태 조회
func (*MCISApi) GetMcisVMStatusByParam ¶
func (m *MCISApi) GetMcisVMStatusByParam(nameSpaceID string, mcisID string, vmID string) (string, error)
GetMcisVMStatusByParam - MCIS VM 상태 조회
func (*MCISApi) GetMonitorData ¶
GetMonitorData - MCIS Monitor 정보 조회
func (*MCISApi) GetMonitorDataByParam ¶
func (m *MCISApi) GetMonitorDataByParam(nameSpaceID string, mcisID string, metric string) (string, error)
GetMonitorDataByParam - MCIS Monitor 정보 조회
func (*MCISApi) GetOutType ¶
GetOutType - 출력 문서 타입 값 조회
func (*MCISApi) GetServerAddr ¶
GetServerAddr - Tumblebug 서버 주소 값 조회
func (*MCISApi) GetTimeout ¶
GetTimeout - Timeout 값 조회
func (*MCISApi) InstallAgentToMcis ¶
jmlee InstallAgentToMcis - MCIS Agent 설치
func (*MCISApi) InstallAgentToMcisByParam ¶
func (m *MCISApi) InstallAgentToMcisByParam(req *McisCmdCreateRequest) (string, error)
InstallAgentToMcisByParam - MCIS Agent 설치
func (*MCISApi) InstallMonitorAgentToMcis ¶
InstallMonitorAgentToMcis - MCIS Monitor Agent 설치
func (*MCISApi) InstallMonitorAgentToMcisByParam ¶
func (m *MCISApi) InstallMonitorAgentToMcisByParam(req *McisCmdCreateRequest) (string, error)
InstallMonitorAgentToMcisByParam - MCIS Monitor Agent 설치
func (*MCISApi) ListMcisByParam ¶
ListMcisByParam - MCIS 목록
func (*MCISApi) RecommandMcis ¶
RecommandMcis - MCIS 추천
func (*MCISApi) RecommandMcisByParam ¶
func (m *MCISApi) RecommandMcisByParam(req *McisRecommendCreateRequest) (string, error)
RecommandMcisByParam - MCIS 추천
func (*MCISApi) SetConfigPath ¶
SetConfigPath - 환경설정 파일 설정
func (*MCISApi) SetJWTToken ¶
SetJWTToken - JWT 인증 토큰 설정
func (*MCISApi) SetOutType ¶
SetOutType - 출력 문서 타입 설정 (json/yaml)
func (*MCISApi) SetServerAddr ¶
SetServerAddr - Tumblebug 서버 주소 설정
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 { Mcis_id string `yaml:"mcis_id" json:"mcis_id"` Vm_id string `yaml:"vm_id" json:"vm_id"` Ip string `yaml:"ip" json:"ip"` User_name string `yaml:"user_name" json:"user_name"` Ssh_key string `yaml:"ssh_key" json:"ssh_key"` 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 McisRecommendCreateRequest ¶
type McisRecommendCreateRequest struct { NsId string `yaml:"nsId" json:"nsId"` Item McisRecommendReq `yaml:"recommend" json:"recommend"` }
McisRecommendCreateRequest - MCIS 추천 요청 구조 Wrapper 정의
type McisRecommendReq ¶
type McisRecommendReq struct { Vm_req []TbVmRecommendReq `yaml:"vm_req" json:"vm_req"` Placement_algo string `yaml:"placement_algo" json:"placement_algo"` Placement_param []KeyValue `yaml:"placement_param" json:"placement_param"` Max_result_num string `yaml:"max_result_num" json:"max_result_num"` }
McisRecommendReq - MCIS 추천 요청 구조 정의
type NSApi ¶
type NSApi struct {
// contains filtered or unexported fields
}
NSApi - NS API 구조 정의
func (*NSApi) CheckNSByParam ¶
CheckNSByParam - Namespace 체크
func (*NSApi) CreateNSByParam ¶
CreateNSByParam - Namespace 생성
func (*NSApi) DeleteAllNS ¶
DeleteAllNS - Namespace 전체 삭제
func (*NSApi) DeleteNSByParam ¶
DeleteNSByParam - Namespace 삭제
func (*NSApi) GetJWTToken ¶
GetJWTToken - JWT 인증 토큰 값 조회
func (*NSApi) GetNSByParam ¶
GetNSByParam - Namespace 조회
func (*NSApi) GetServerAddr ¶
GetServerAddr - Tumblebug 서버 주소 값 조회
func (*NSApi) GetTimeout ¶
GetTimeout - Timeout 값 조회
func (*NSApi) SetConfigPath ¶
SetConfigPath - 환경설정 파일 설정
func (*NSApi) SetJWTToken ¶
SetJWTToken - JWT 인증 토큰 설정
func (*NSApi) SetOutType ¶
SetOutType - 출력 문서 타입 설정 (json/yaml)
func (*NSApi) SetServerAddr ¶
SetServerAddr - Tumblebug 서버 주소 설정
type NsReq ¶
type NsReq struct { Name string `yaml:"name" json:"name"` Description string `yaml:"description" json:"description"` }
NsReq - Namespace 정보 생성 요청 구조 정의
type RegionInfo ¶
type RegionInfo struct { Region string `yaml:"Region" json:"Region"` Zone string `yaml:"Zone" json:"Zone"` }
RegionInfo - Region 정보 구조 정의
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"` }
SpiderSecurityRuleInfo - Security Rule 구조 정의
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 - Subnet 요청 구조 정의
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"` 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 - Image ID를 이용한 생성 요청 구조 Wrapper 정의
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"` }
TbImageInfo - Image 정보를 이용한 생성 요청 구조 정의
type TbImageInfoRequest ¶
type TbImageInfoRequest struct { NsId string `yaml:"nsId" json:"nsId"` Item TbImageInfo `yaml:"image" json:"image"` }
TbImageInfoRequest - Image 정보를 이용한 생성 요청 구조 Wrapper 정의
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 - Image ID를 이용한 생성 요청 구조 정의
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"` Vm []TbVmReq `yaml:"vm" json:"vm"` Placement_algo string `yaml:"placement_algo" json:"placement_algo"` Description string `yaml:"description" json:"description"` }
TbMcisReq - MCIS 생성 요청 구조 정의
type TbSecurityGroupCreateRequest ¶
type TbSecurityGroupCreateRequest struct { NsId string `yaml:"nsId" json:"nsId"` Item TbSecurityGroupReq `yaml:"securityGroup" json:"securityGroup"` }
TbSecurityGroupCreateRequest - Security Group 생성 요청 구조 Wrapper 정의
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 - Security Group 생성 요청 구조 정의
type TbSpecCreateRequest ¶
type TbSpecCreateRequest struct { NsId string `yaml:"nsId" json:"nsId"` Item TbSpecReq `yaml:"spec" json:"spec"` }
TbSpecCreateRequest - Spec 이름을 이용한 생성 요청 구조 Wrapper 정의
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"` }
TbSpecInfo - Spec 정보를 이용한 생성 요청 구조 정의
type TbSpecInfoRequest ¶
type TbSpecInfoRequest struct { NsId string `yaml:"nsId" json:"nsId"` Item TbSpecInfo `yaml:"spec" json:"spec"` }
TbSpecCreateRequest - Spec 정보를 이용한 생성 요청 구조 Wrapper 정의
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 - Spec 이름을 이용한 생성 요청 구조 정의
type TbSshKeyCreateRequest ¶
type TbSshKeyCreateRequest struct { NsId string `yaml:"nsId" json:"nsId"` Item TbSshKeyReq `yaml:"sshKey" json:"sshKey"` }
TbSshKeyCreateRequest - Keypair 생성 요청 구조 Wrapper 정의
type TbSshKeyReq ¶
type TbSshKeyReq struct { Name string `yaml:"name" json:"name"` ConnectionName string `yaml:"connectionName" json:"connectionName"` Description string `yaml:"description" json:"description"` }
TbSshKeyReq - Keypair 생성 요청 구조 정의
type TbVNetCreateRequest ¶
type TbVNetCreateRequest struct { NsId string `yaml:"nsId" json:"nsId"` Item TbVNetReq `yaml:"vNet" json:"vNet"` }
TbVNetCreateRequest - VNet 생성 요청 구조 Wrapper 정의
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 - VNet 생성 요청 구조 정의
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 TbVmInfo ¶
type TbVmInfo struct { Id string `yaml:"id" json:"id"` Name string `yaml:"name" json:"name"` 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"` Description string `yaml:"description" json:"description"` Location GeoLocation `yaml:"location" json:"location"` // 2. Provided by CB-Spider Region RegionInfo `yaml:"region" json:"region"` 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"` // 3. Required by CB-Tumblebug Status string `yaml:"status" json:"status"` TargetStatus string `yaml:"targetStatus" json:"targetStatus"` TargetAction string `yaml:"targetAction" json:"targetAction"` CspViewVmDetail SpiderVMInfo `yaml:"cspViewVmDetail" json:"cspViewVmDetail"` }
TbVmInfo - MCIS VM 구조 정의
type TbVmRecommendReq ¶
type TbVmRecommendReq struct { Request_name string `yaml:"request_name" json:"request_name"` Max_result_num string `yaml:"max_result_num" json:"max_result_num"` Vcpu_size string `yaml:"vcpu_size" json:"vcpu_size"` Memory_size string `yaml:"memory_size" json:"memory_size"` Disk_size string `yaml:"disk_size" json:"disk_size"` Placement_algo string `yaml:"placement_algo" json:"placement_algo"` Placement_param []KeyValue `yaml:"placement_param" json:"placement_param"` }
McisRecommendReq - MCIS VM 추천 요청 구조 정의
type TbVmReq ¶
type TbVmReq struct { Name string `yaml:"name" json:"name"` 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"` Description string `yaml:"description" json:"description"` }
TbVmReq - MCIS VM 생성 요청 구조 정의