Skip to content
ByoungSeob Kim edited this page Oct 22, 2021 · 1 revision

CB-Spider Go API

 
v0.4.12
import "github.com/cloud-barista/cb-spider/interface/api"
 

 

Index ▾

type CCMApi
    func NewCloudResourceHandler() (ccm *CCMApi)
    func (ccm *CCMApi) AddSubnet(doc string) (string, error)
    func (ccm *CCMApi) AddSubnetByParam(req *SubnetReq) (string, error)
    func (ccm *CCMApi) Close()
    func (ccm *CCMApi) ControlVM(doc string) (string, error)
    func (ccm *CCMApi) ControlVMByParam(connectionName string, name string, action string) (string, error)
    func (ccm *CCMApi) CreateImage(doc string) (string, error)
    func (ccm *CCMApi) CreateImageByParam(req *ImageReq) (string, error)
    func (ccm *CCMApi) CreateKey(doc string) (string, error)
    func (ccm *CCMApi) CreateKeyByParam(req *KeyReq) (string, error)
    func (ccm *CCMApi) CreateSecurity(doc string) (string, error)
    func (ccm *CCMApi) CreateSecurityByParam(req *SecurityReq) (string, error)
    func (ccm *CCMApi) CreateVPC(doc string) (string, error)
    func (ccm *CCMApi) CreateVPCByParam(req *VPCReq) (string, error)
    func (ccm *CCMApi) DeleteCSPKey(doc string) (string, error)
    func (ccm *CCMApi) DeleteCSPKeyByParam(connectionName string, id string) (string, error)
    func (ccm *CCMApi) DeleteCSPSecurity(doc string) (string, error)
    func (ccm *CCMApi) DeleteCSPSecurityByParam(connectionName string, id string) (string, error)
    func (ccm *CCMApi) DeleteCSPVPC(doc string) (string, error)
    func (ccm *CCMApi) DeleteCSPVPCByParam(connectionName string, id string) (string, error)
    func (ccm *CCMApi) DeleteImage(doc string) (string, error)
    func (ccm *CCMApi) DeleteImageByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) DeleteKey(doc string) (string, error)
    func (ccm *CCMApi) DeleteKeyByParam(connectionName string, name string, force string) (string, error)
    func (ccm *CCMApi) DeleteSecurity(doc string) (string, error)
    func (ccm *CCMApi) DeleteSecurityByParam(connectionName string, name string, force string) (string, error)
    func (ccm *CCMApi) DeleteVPC(doc string) (string, error)
    func (ccm *CCMApi) DeleteVPCByParam(connectionName string, name string, force string) (string, error)
    func (ccm *CCMApi) GetImage(doc string) (string, error)
    func (ccm *CCMApi) GetImageByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) GetInType() (string, error)
    func (ccm *CCMApi) GetJWTToken() (string, error)
    func (ccm *CCMApi) GetKey(doc string) (string, error)
    func (ccm *CCMApi) GetKeyByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) GetOrgVMSpec(doc string) (string, error)
    func (ccm *CCMApi) GetOrgVMSpecByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) GetOutType() (string, error)
    func (ccm *CCMApi) GetSecurity(doc string) (string, error)
    func (ccm *CCMApi) GetSecurityByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) GetServerAddr() (string, error)
    func (ccm *CCMApi) GetTLSCA() (string, error)
    func (ccm *CCMApi) GetTimeout() (time.Duration, error)
    func (ccm *CCMApi) GetVM(doc string) (string, error)
    func (ccm *CCMApi) GetVMByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) GetVMSpec(doc string) (string, error)
    func (ccm *CCMApi) GetVMSpecByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) GetVMStatus(doc string) (string, error)
    func (ccm *CCMApi) GetVMStatusByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) GetVPC(doc string) (string, error)
    func (ccm *CCMApi) GetVPCByParam(connectionName string, name string) (string, error)
    func (ccm *CCMApi) ListAllKey(doc string) (string, error)
    func (ccm *CCMApi) ListAllKeyByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListAllSecurity(doc string) (string, error)
    func (ccm *CCMApi) ListAllSecurityByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListAllVM(doc string) (string, error)
    func (ccm *CCMApi) ListAllVMByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListAllVPC(doc string) (string, error)
    func (ccm *CCMApi) ListAllVPCByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListImage(doc string) (string, error)
    func (ccm *CCMApi) ListImageByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListKey(doc string) (string, error)
    func (ccm *CCMApi) ListKeyByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListOrgVMSpec(doc string) (string, error)
    func (ccm *CCMApi) ListOrgVMSpecByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListSecurity(doc string) (string, error)
    func (ccm *CCMApi) ListSecurityByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListVM(doc string) (string, error)
    func (ccm *CCMApi) ListVMByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListVMSpec(doc string) (string, error)
    func (ccm *CCMApi) ListVMSpecByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListVMStatus(doc string) (string, error)
    func (ccm *CCMApi) ListVMStatusByParam(connectionName string) (string, error)
    func (ccm *CCMApi) ListVPC(doc string) (string, error)
    func (ccm *CCMApi) ListVPCByParam(connectionName string) (string, error)
    func (ccm *CCMApi) Open() error
    func (ccm *CCMApi) RemoveCSPSubnet(doc string) (string, error)
    func (ccm *CCMApi) RemoveCSPSubnetByParam(connectionName string, vpcName string, id string) (string, error)
    func (ccm *CCMApi) RemoveSubnet(doc string) (string, error)
    func (ccm *CCMApi) RemoveSubnetByParam(connectionName string, vpcName string, subnetName string, force string) (string, error)
    func (ccm *CCMApi) SSHRun(doc string) (string, error)
    func (ccm *CCMApi) SSHRunByParam(req *SSHRUNReq) (string, error)
    func (ccm *CCMApi) SetConfigPath(configFile string) error
    func (ccm *CCMApi) SetInType(in string) error
    func (ccm *CCMApi) SetJWTToken(token string) error
    func (ccm *CCMApi) SetOutType(out string) error
    func (ccm *CCMApi) SetServerAddr(addr string) error
    func (ccm *CCMApi) SetTLSCA(tlsCAFile string) error
    func (ccm *CCMApi) SetTimeout(timeout time.Duration) error
    func (ccm *CCMApi) StartVM(doc string) (string, error)
    func (ccm *CCMApi) StartVMByParam(req *VMReq) (string, error)
    func (ccm *CCMApi) TerminateCSPVM(doc string) (string, error)
    func (ccm *CCMApi) TerminateCSPVMByParam(connectionName string, id string) (string, error)
    func (ccm *CCMApi) TerminateVM(doc string) (string, error)
    func (ccm *CCMApi) TerminateVMByParam(connectionName string, name string, force string) (string, error)
type CIMApi
    func NewCloudInfoManager() (cim *CIMApi)
    func (cim *CIMApi) Close()
    func (cim *CIMApi) CreateCloudDriver(doc string) (string, error)
    func (cim *CIMApi) CreateCloudDriverByParam(req *CloudDriverReq) (string, error)
    func (cim *CIMApi) CreateConnectionConfig(doc string) (string, error)
    func (cim *CIMApi) CreateConnectionConfigByParam(req *ConnectionConfigReq) (string, error)
    func (cim *CIMApi) CreateCredential(doc string) (string, error)
    func (cim *CIMApi) CreateCredentialByParam(req *CredentialReq) (string, error)
    func (cim *CIMApi) CreateRegion(doc string) (string, error)
    func (cim *CIMApi) CreateRegionByParam(req *RegionReq) (string, error)
    func (cim *CIMApi) DeleteCloudDriver(doc string) (string, error)
    func (cim *CIMApi) DeleteCloudDriverByParam(driverName string) (string, error)
    func (cim *CIMApi) DeleteConnectionConfig(doc string) (string, error)
    func (cim *CIMApi) DeleteConnectionConfigByParam(configName string) (string, error)
    func (cim *CIMApi) DeleteCredential(doc string) (string, error)
    func (cim *CIMApi) DeleteCredentialByParam(credentialName string) (string, error)
    func (cim *CIMApi) DeleteRegion(doc string) (string, error)
    func (cim *CIMApi) DeleteRegionByParam(regionName string) (string, error)
    func (cim *CIMApi) GetCloudDriver(doc string) (string, error)
    func (cim *CIMApi) GetCloudDriverByParam(driverName string) (string, error)
    func (cim *CIMApi) GetConnectionConfig(doc string) (string, error)
    func (cim *CIMApi) GetConnectionConfigByParam(configName string) (string, error)
    func (cim *CIMApi) GetCredential(doc string) (string, error)
    func (cim *CIMApi) GetCredentialByParam(credentialName string) (string, error)
    func (cim *CIMApi) GetInType() (string, error)
    func (cim *CIMApi) GetJWTToken() (string, error)
    func (cim *CIMApi) GetOutType() (string, error)
    func (cim *CIMApi) GetRegion(doc string) (string, error)
    func (cim *CIMApi) GetRegionByParam(regionName string) (string, error)
    func (cim *CIMApi) GetServerAddr() (string, error)
    func (cim *CIMApi) GetTLSCA() (string, error)
    func (cim *CIMApi) GetTimeout() (time.Duration, error)
    func (cim *CIMApi) ListCloudDriver() (string, error)
    func (cim *CIMApi) ListCloudOS() (string, error)
    func (cim *CIMApi) ListConnectionConfig() (string, error)
    func (cim *CIMApi) ListCredential() (string, error)
    func (cim *CIMApi) ListRegion() (string, error)
    func (cim *CIMApi) Open() error
    func (cim *CIMApi) SetConfigPath(configFile string) error
    func (cim *CIMApi) SetInType(in string) error
    func (cim *CIMApi) SetJWTToken(token string) error
    func (cim *CIMApi) SetOutType(out string) error
    func (cim *CIMApi) SetServerAddr(addr string) error
    func (cim *CIMApi) SetTLSCA(tlsCAFile string) error
    func (cim *CIMApi) SetTimeout(timeout time.Duration) error
type CloudDriverReq
type ConnectionConfigReq
type CredentialReq
type ImageInfo
type ImageReq
type KeyInfo
type KeyReq
type KeyValue
type RegionReq
type SSHRUNReq
type SecurityInfo
type SecurityReq
type SecurityRuleInfo
type SubnetInfo
type SubnetReq
type VMInfo
type VMReq
type VPCInfo
type VPCReq

Package files

ccm.go cim.go

type CCMApi 

CCMApi - CCM API 구조 정의

type CCMApi struct {
    // contains filtered or unexported fields
}
func NewCloudResourceHandler() (ccm *CCMApi)

NewCloudResourceHandler - CCM API 객체 생성

func (*CCMApi) AddSubnet 

func (ccm *CCMApi) AddSubnet(doc string) (string, error)

AddSubnet - Subnet 추가

func (*CCMApi) AddSubnetByParam 

func (ccm *CCMApi) AddSubnetByParam(req *SubnetReq) (string, error)

AddSubnetByParam - Subnet 추가

func (*CCMApi) Close 

func (ccm *CCMApi) Close()

Close - 연결 종료

func (*CCMApi) ControlVM 

func (ccm *CCMApi) ControlVM(doc string) (string, error)

ControlVM - VM 제어

func (*CCMApi) ControlVMByParam 

func (ccm *CCMApi) ControlVMByParam(connectionName string, name string, action string) (string, error)

ControlVMByParam - VM 제어

func (*CCMApi) CreateImage 

func (ccm *CCMApi) CreateImage(doc string) (string, error)

CreateImage - Image 생성

func (*CCMApi) CreateImageByParam 

func (ccm *CCMApi) CreateImageByParam(req *ImageReq) (string, error)

CreateImageByParam - Image 생성

func (*CCMApi) CreateKey 

func (ccm *CCMApi) CreateKey(doc string) (string, error)

CreateKey - Key Pair 생성

func (*CCMApi) CreateKeyByParam 

func (ccm *CCMApi) CreateKeyByParam(req *KeyReq) (string, error)

CreateKeyByParam - Key Pair 생성

func (*CCMApi) CreateSecurity 

func (ccm *CCMApi) CreateSecurity(doc string) (string, error)

CreateSecurity - Security 생성

func (*CCMApi) CreateSecurityByParam 

func (ccm *CCMApi) CreateSecurityByParam(req *SecurityReq) (string, error)

CreateSecurityByParam - Security 생성

func (*CCMApi) CreateVPC 

func (ccm *CCMApi) CreateVPC(doc string) (string, error)

CreateVPC - VPC 생성

func (*CCMApi) CreateVPCByParam 

func (ccm *CCMApi) CreateVPCByParam(req *VPCReq) (string, error)

CreateVPCByParam - VPC 생성

func (*CCMApi) DeleteCSPKey 

func (ccm *CCMApi) DeleteCSPKey(doc string) (string, error)

DeleteCSPKey - 관리 Key Pair 삭제

func (*CCMApi) DeleteCSPKeyByParam 

func (ccm *CCMApi) DeleteCSPKeyByParam(connectionName string, id string) (string, error)

DeleteCSPKeyByParam - 관리 Key Pair 삭제

func (*CCMApi) DeleteCSPSecurity 

func (ccm *CCMApi) DeleteCSPSecurity(doc string) (string, error)

DeleteCSPSecurity - 관리 Security 삭제

func (*CCMApi) DeleteCSPSecurityByParam 

func (ccm *CCMApi) DeleteCSPSecurityByParam(connectionName string, id string) (string, error)

DeleteCSPSecurityByParam - 관리 Security 삭제

func (*CCMApi) DeleteCSPVPC 

func (ccm *CCMApi) DeleteCSPVPC(doc string) (string, error)

DeleteCSPVPC - 관리 VPC 삭제

func (*CCMApi) DeleteCSPVPCByParam 

func (ccm *CCMApi) DeleteCSPVPCByParam(connectionName string, id string) (string, error)

DeleteCSPVPCByParam - 관리 VPC 삭제

func (*CCMApi) DeleteImage 

func (ccm *CCMApi) DeleteImage(doc string) (string, error)

DeleteImage - Image 삭제

func (*CCMApi) DeleteImageByParam 

func (ccm *CCMApi) DeleteImageByParam(connectionName string, name string) (string, error)

DeleteImageByParam - Image 삭제

func (*CCMApi) DeleteKey 

func (ccm *CCMApi) DeleteKey(doc string) (string, error)

DeleteKey - Key Pair 삭제

func (*CCMApi) DeleteKeyByParam 

func (ccm *CCMApi) DeleteKeyByParam(connectionName string, name string, force string) (string, error)

DeleteKeyByParam - Key Pair 삭제

func (*CCMApi) DeleteSecurity 

func (ccm *CCMApi) DeleteSecurity(doc string) (string, error)

DeleteSecurity - Security 삭제

func (*CCMApi) DeleteSecurityByParam 

func (ccm *CCMApi) DeleteSecurityByParam(connectionName string, name string, force string) (string, error)

DeleteSecurityByParam - Security 삭제

func (*CCMApi) DeleteVPC 

func (ccm *CCMApi) DeleteVPC(doc string) (string, error)

DeleteVPC - VPC 삭제

func (*CCMApi) DeleteVPCByParam 

func (ccm *CCMApi) DeleteVPCByParam(connectionName string, name string, force string) (string, error)

DeleteVPCByParam - VPC 삭제

func (*CCMApi) GetImage 

func (ccm *CCMApi) GetImage(doc string) (string, error)

GetImage - Image 조회

func (*CCMApi) GetImageByParam 

func (ccm *CCMApi) GetImageByParam(connectionName string, name string) (string, error)

GetImageByParam - Image 조회

func (*CCMApi) GetInType 

func (ccm *CCMApi) GetInType() (string, error)

GetInType - 입력 문서 타입 값 조회

func (*CCMApi) GetJWTToken 

func (ccm *CCMApi) GetJWTToken() (string, error)

GetJWTToken - JWT 인증 토큰 값 조회

func (*CCMApi) GetKey 

func (ccm *CCMApi) GetKey(doc string) (string, error)

GetKey - Key Pair 조회

func (*CCMApi) GetKeyByParam 

func (ccm *CCMApi) GetKeyByParam(connectionName string, name string) (string, error)

GetKeyByParam - Key Pair 조회

func (*CCMApi) GetOrgVMSpec 

func (ccm *CCMApi) GetOrgVMSpec(doc string) (string, error)

GetOrgVMSpec - 클라우드의 원래 VM Spec 조회

func (*CCMApi) GetOrgVMSpecByParam 

func (ccm *CCMApi) GetOrgVMSpecByParam(connectionName string, name string) (string, error)

GetOrgVMSpecByParam - 클라우드의 원래 VM Spec 조회

func (*CCMApi) GetOutType 

func (ccm *CCMApi) GetOutType() (string, error)

GetOutType - 출력 문서 타입 값 조회

func (*CCMApi) GetSecurity 

func (ccm *CCMApi) GetSecurity(doc string) (string, error)

GetSecurity - Security 조회

func (*CCMApi) GetSecurityByParam 

func (ccm *CCMApi) GetSecurityByParam(connectionName string, name string) (string, error)

GetSecurityByParam - Security 조회

func (*CCMApi) GetServerAddr 

func (ccm *CCMApi) GetServerAddr() (string, error)

GetServerAddr - Spider 서버 주소 값 조회

func (*CCMApi) GetTLSCA 

func (ccm *CCMApi) GetTLSCA() (string, error)

GetTLSCA - TLS CA 값 조회

func (*CCMApi) GetTimeout 

func (ccm *CCMApi) GetTimeout() (time.Duration, error)

GetTimeout - Timeout 값 조회

func (*CCMApi) GetVM 

func (ccm *CCMApi) GetVM(doc string) (string, error)

GetVM - VM 조회

func (*CCMApi) GetVMByParam 

func (ccm *CCMApi) GetVMByParam(connectionName string, name string) (string, error)

GetVMByParam - VM 조회

func (*CCMApi) GetVMSpec 

func (ccm *CCMApi) GetVMSpec(doc string) (string, error)

GetVMSpec - VM Spec 조회

func (*CCMApi) GetVMSpecByParam 

func (ccm *CCMApi) GetVMSpecByParam(connectionName string, name string) (string, error)

GetVMSpecByParam - VM Spec 조회

func (*CCMApi) GetVMStatus 

func (ccm *CCMApi) GetVMStatus(doc string) (string, error)

GetVMStatus - VM 상태 조회

func (*CCMApi) GetVMStatusByParam 

func (ccm *CCMApi) GetVMStatusByParam(connectionName string, name string) (string, error)

GetVMStatusByParam - VM 상태 조회

func (*CCMApi) GetVPC 

func (ccm *CCMApi) GetVPC(doc string) (string, error)

GetVPC - VPC 조회

func (*CCMApi) GetVPCByParam 

func (ccm *CCMApi) GetVPCByParam(connectionName string, name string) (string, error)

GetVPCByParam - VPC 조회

func (*CCMApi) ListAllKey 

func (ccm *CCMApi) ListAllKey(doc string) (string, error)

ListAllKey - 관리 Key Pair 목록

func (*CCMApi) ListAllKeyByParam 

func (ccm *CCMApi) ListAllKeyByParam(connectionName string) (string, error)

ListAllKeyByParam - 관리 Key Pair 목록

func (*CCMApi) ListAllSecurity 

func (ccm *CCMApi) ListAllSecurity(doc string) (string, error)

ListAllSecurity - 관리 Security 목록

func (*CCMApi) ListAllSecurityByParam 

func (ccm *CCMApi) ListAllSecurityByParam(connectionName string) (string, error)

ListAllSecurityByParam - 관리 Security 목록

func (*CCMApi) ListAllVM 

func (ccm *CCMApi) ListAllVM(doc string) (string, error)

ListAllVM - 관리 VM 목록

func (*CCMApi) ListAllVMByParam 

func (ccm *CCMApi) ListAllVMByParam(connectionName string) (string, error)

ListAllVMByParam - 관리 VM 목록

func (*CCMApi) ListAllVPC 

func (ccm *CCMApi) ListAllVPC(doc string) (string, error)

ListAllVPC - 관리 VPC 목록

func (*CCMApi) ListAllVPCByParam 

func (ccm *CCMApi) ListAllVPCByParam(connectionName string) (string, error)

ListAllVPCByParam - 관리 VPC 목록

func (*CCMApi) ListImage 

func (ccm *CCMApi) ListImage(doc string) (string, error)

ListImage - Image 목록

func (*CCMApi) ListImageByParam 

func (ccm *CCMApi) ListImageByParam(connectionName string) (string, error)

ListImageByParam - Image 목록

func (*CCMApi) ListKey 

func (ccm *CCMApi) ListKey(doc string) (string, error)

ListKey - Key Pair 목록

func (*CCMApi) ListKeyByParam 

func (ccm *CCMApi) ListKeyByParam(connectionName string) (string, error)

ListKeyByParam - Key Pair 목록

func (*CCMApi) ListOrgVMSpec 

func (ccm *CCMApi) ListOrgVMSpec(doc string) (string, error)

ListOrgVMSpec - 클라우드의 원래 VM Spec 목록

func (*CCMApi) ListOrgVMSpecByParam 

func (ccm *CCMApi) ListOrgVMSpecByParam(connectionName string) (string, error)

ListOrgVMSpecByParam - 클라우드의 원래 VM Spec 목록

func (*CCMApi) ListSecurity 

func (ccm *CCMApi) ListSecurity(doc string) (string, error)

ListSecurity - Security 목록

func (*CCMApi) ListSecurityByParam 

func (ccm *CCMApi) ListSecurityByParam(connectionName string) (string, error)

ListSecurityByParam - Security 목록

func (*CCMApi) ListVM 

func (ccm *CCMApi) ListVM(doc string) (string, error)

ListVM - VM 목록

func (*CCMApi) ListVMByParam 

func (ccm *CCMApi) ListVMByParam(connectionName string) (string, error)

ListVMByParam - VM 목록

func (*CCMApi) ListVMSpec 

func (ccm *CCMApi) ListVMSpec(doc string) (string, error)

ListVMSpec - VM Spec 목록

func (*CCMApi) ListVMSpecByParam 

func (ccm *CCMApi) ListVMSpecByParam(connectionName string) (string, error)

ListVMSpecByParam - VM Spec 목록

func (*CCMApi) ListVMStatus 

func (ccm *CCMApi) ListVMStatus(doc string) (string, error)

ListVMStatus - VM 상태 목록

func (*CCMApi) ListVMStatusByParam 

func (ccm *CCMApi) ListVMStatusByParam(connectionName string) (string, error)

ListVMStatusByParam - VM 상태 목록

func (*CCMApi) ListVPC 

func (ccm *CCMApi) ListVPC(doc string) (string, error)

ListVPC - VPC 목록

func (*CCMApi) ListVPCByParam 

func (ccm *CCMApi) ListVPCByParam(connectionName string) (string, error)

ListVPCByParam - VPC 목록

func (*CCMApi) Open 

func (ccm *CCMApi) Open() error

Open - 연결 설정

func (*CCMApi) RemoveCSPSubnet 

func (ccm *CCMApi) RemoveCSPSubnet(doc string) (string, error)

RemoveCSPSubnet - CSP Subnet 삭제

func (*CCMApi) RemoveCSPSubnetByParam 

func (ccm *CCMApi) RemoveCSPSubnetByParam(connectionName string, vpcName string, id string) (string, error)

RemoveCSPSubnetByParam - CSP Subnet 삭제

func (*CCMApi) RemoveSubnet 

func (ccm *CCMApi) RemoveSubnet(doc string) (string, error)

RemoveSubnet - Subnet 삭제

func (*CCMApi) RemoveSubnetByParam 

func (ccm *CCMApi) RemoveSubnetByParam(connectionName string, vpcName string, subnetName string, force string) (string, error)

RemoveSubnetByParam - Subnet 삭제

func (*CCMApi) SSHRun 

func (ccm *CCMApi) SSHRun(doc string) (string, error)

SSHRun - SSH 실행

func (*CCMApi) SSHRunByParam 

func (ccm *CCMApi) SSHRunByParam(req *SSHRUNReq) (string, error)

SSHRunByParam - SSH 실행

func (*CCMApi) SetConfigPath 

func (ccm *CCMApi) SetConfigPath(configFile string) error

SetConfigPath - 환경설정 파일 설정

func (*CCMApi) SetInType 

func (ccm *CCMApi) SetInType(in string) error

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

func (*CCMApi) SetJWTToken 

func (ccm *CCMApi) SetJWTToken(token string) error

SetJWTToken - JWT 인증 토큰 설정

func (*CCMApi) SetOutType 

func (ccm *CCMApi) SetOutType(out string) error

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

func (*CCMApi) SetServerAddr 

func (ccm *CCMApi) SetServerAddr(addr string) error

SetServerAddr - Spider 서버 주소 설정

func (*CCMApi) SetTLSCA 

func (ccm *CCMApi) SetTLSCA(tlsCAFile string) error

SetTLSCA - TLS CA 설정

func (*CCMApi) SetTimeout 

func (ccm *CCMApi) SetTimeout(timeout time.Duration) error

SetTimeout - Timeout 설정

func (*CCMApi) StartVM 

func (ccm *CCMApi) StartVM(doc string) (string, error)

StartVM - VM 시작

func (*CCMApi) StartVMByParam 

func (ccm *CCMApi) StartVMByParam(req *VMReq) (string, error)

StartVMByParam - VM 시작

func (*CCMApi) TerminateCSPVM 

func (ccm *CCMApi) TerminateCSPVM(doc string) (string, error)

TerminateCSPVM - 관리 VM 삭제

func (*CCMApi) TerminateCSPVMByParam 

func (ccm *CCMApi) TerminateCSPVMByParam(connectionName string, id string) (string, error)

TerminateCSPVMByParam - 관리 VM 삭제

func (*CCMApi) TerminateVM 

func (ccm *CCMApi) TerminateVM(doc string) (string, error)

TerminateVM - VM 삭제

func (*CCMApi) TerminateVMByParam 

func (ccm *CCMApi) TerminateVMByParam(connectionName string, name string, force string) (string, error)

TerminateVMByParam - VM 삭제

type CIMApi 

CIMApi - CIM API 구조 정의

type CIMApi struct {
    // contains filtered or unexported fields
}
func NewCloudInfoManager() (cim *CIMApi)

NewCloudInfoManager - CIM API 객체 생성

func (*CIMApi) Close 

func (cim *CIMApi) Close()

Close - 연결 종료

func (*CIMApi) CreateCloudDriver 

func (cim *CIMApi) CreateCloudDriver(doc string) (string, error)

CreateCloudDriver - Cloud Driver 생성

func (*CIMApi) CreateCloudDriverByParam 

func (cim *CIMApi) CreateCloudDriverByParam(req *CloudDriverReq) (string, error)

CreateCloudDriverByParam - Cloud Driver 생성

func (*CIMApi) CreateConnectionConfig 

func (cim *CIMApi) CreateConnectionConfig(doc string) (string, error)

CreateConnectionConfig - Connection Config 생성

func (cim *CIMApi) CreateConnectionConfigByParam(req *ConnectionConfigReq) (string, error)

CreateConnectionConfigByParam - Connection Config 생성

func (*CIMApi) CreateCredential 

func (cim *CIMApi) CreateCredential(doc string) (string, error)

CreateCredential - Credential 생성

func (*CIMApi) CreateCredentialByParam 

func (cim *CIMApi) CreateCredentialByParam(req *CredentialReq) (string, error)

CreateCredentialByParam - Credential 생성

func (*CIMApi) CreateRegion 

func (cim *CIMApi) CreateRegion(doc string) (string, error)

CreateRegion - Region 생성

func (*CIMApi) CreateRegionByParam 

func (cim *CIMApi) CreateRegionByParam(req *RegionReq) (string, error)

CreateRegionByParam - Region 생성

func (*CIMApi) DeleteCloudDriver 

func (cim *CIMApi) DeleteCloudDriver(doc string) (string, error)

DeleteCloudDriver - Cloud Driver 삭제

func (*CIMApi) DeleteCloudDriverByParam 

func (cim *CIMApi) DeleteCloudDriverByParam(driverName string) (string, error)

DeleteCloudDriverByParam - Cloud Driver 삭제

func (*CIMApi) DeleteConnectionConfig 

func (cim *CIMApi) DeleteConnectionConfig(doc string) (string, error)

DeleteConnectionConfig - Connection Config 삭제

func (cim *CIMApi) DeleteConnectionConfigByParam(configName string) (string, error)

DeleteConnectionConfigByParam - Connection Config 삭제

func (*CIMApi) DeleteCredential 

func (cim *CIMApi) DeleteCredential(doc string) (string, error)

DeleteCredential - Credential 삭제

func (*CIMApi) DeleteCredentialByParam 

func (cim *CIMApi) DeleteCredentialByParam(credentialName string) (string, error)

DeleteCredentialByParam - Credential 삭제

func (*CIMApi) DeleteRegion 

func (cim *CIMApi) DeleteRegion(doc string) (string, error)

DeleteRegion - Region 삭제

func (*CIMApi) DeleteRegionByParam 

func (cim *CIMApi) DeleteRegionByParam(regionName string) (string, error)

DeleteRegionByParam - Region 삭제

func (*CIMApi) GetCloudDriver 

func (cim *CIMApi) GetCloudDriver(doc string) (string, error)

GetCloudDriver - Cloud Driver 조회

func (*CIMApi) GetCloudDriverByParam 

func (cim *CIMApi) GetCloudDriverByParam(driverName string) (string, error)

GetCloudDriverByParam - Cloud Driver 조회

func (*CIMApi) GetConnectionConfig 

func (cim *CIMApi) GetConnectionConfig(doc string) (string, error)

GetConnectionConfig - Connection Config 조회

func (*CIMApi) GetConnectionConfigByParam 

func (cim *CIMApi) GetConnectionConfigByParam(configName string) (string, error)

GetConnectionConfigByParam - Connection Config 조회

func (*CIMApi) GetCredential 

func (cim *CIMApi) GetCredential(doc string) (string, error)

GetCredential - Credential 조회

func (*CIMApi) GetCredentialByParam 

func (cim *CIMApi) GetCredentialByParam(credentialName string) (string, error)

GetCredentialByParam - Credential 조회

func (*CIMApi) GetInType 

func (cim *CIMApi) GetInType() (string, error)

GetInType - 입력 문서 타입 값 조회

func (*CIMApi) GetJWTToken 

func (cim *CIMApi) GetJWTToken() (string, error)

GetJWTToken - JWT 인증 토큰 값 조회

func (*CIMApi) GetOutType 

func (cim *CIMApi) GetOutType() (string, error)

GetOutType - 출력 문서 타입 값 조회

func (*CIMApi) GetRegion 

func (cim *CIMApi) GetRegion(doc string) (string, error)

GetRegion - Region 조회

func (*CIMApi) GetRegionByParam 

func (cim *CIMApi) GetRegionByParam(regionName string) (string, error)

GetRegionByParam - Region 조회

func (*CIMApi) GetServerAddr 

func (cim *CIMApi) GetServerAddr() (string, error)

GetServerAddr - Spider 서버 주소 값 조회

func (*CIMApi) GetTLSCA 

func (cim *CIMApi) GetTLSCA() (string, error)

GetTLSCA - TLS CA 값 조회

func (*CIMApi) GetTimeout 

func (cim *CIMApi) GetTimeout() (time.Duration, error)

GetTimeout - Timeout 값 조회

func (*CIMApi) ListCloudDriver 

func (cim *CIMApi) ListCloudDriver() (string, error)

ListCloudDriver -Cloud Driver 목록

func (*CIMApi) ListCloudOS 

func (cim *CIMApi) ListCloudOS() (string, error)

ListCloudOS -Cloud OS 목록

func (*CIMApi) ListConnectionConfig 

func (cim *CIMApi) ListConnectionConfig() (string, error)

ListConnectionConfig - Connection Config 목록

func (*CIMApi) ListCredential 

func (cim *CIMApi) ListCredential() (string, error)

ListCredential -Credential 목록

func (*CIMApi) ListRegion 

func (cim *CIMApi) ListRegion() (string, error)

ListRegion - Region 목록

func (*CIMApi) Open 

func (cim *CIMApi) Open() error

Open - 연결 설정

func (*CIMApi) SetConfigPath 

func (cim *CIMApi) SetConfigPath(configFile string) error

SetConfigPath - 환경설정 파일 설정

func (*CIMApi) SetInType 

func (cim *CIMApi) SetInType(in string) error

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

func (*CIMApi) SetJWTToken 

func (cim *CIMApi) SetJWTToken(token string) error

SetJWTToken - JWT 인증 토큰 설정

func (*CIMApi) SetOutType 

func (cim *CIMApi) SetOutType(out string) error

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

func (*CIMApi) SetServerAddr 

func (cim *CIMApi) SetServerAddr(addr string) error

SetServerAddr - Spider 서버 주소 설정

func (*CIMApi) SetTLSCA 

func (cim *CIMApi) SetTLSCA(tlsCAFile string) error

SetTLSCA - TLS CA 설정

func (*CIMApi) SetTimeout 

func (cim *CIMApi) SetTimeout(timeout time.Duration) error

SetTimeout - Timeout 설정

CloudDriverReq - Cloud Driver 정보 생성 요청 구조 정의

type CloudDriverReq struct {
    DriverName        string `yaml:"DriverName" json:"DriverName"`
    ProviderName      string `yaml:"ProviderName" json:"ProviderName"`
    DriverLibFileName string `yaml:"DriverLibFileName" json:"DriverLibFileName"`
}

ConnectionConfigReq - Connection Config 정보 생성 요청 구조 정의

type ConnectionConfigReq struct {
    ConfigName     string `yaml:"ConfigName" json:"ConfigName"`
    ProviderName   string `yaml:"ProviderName" json:"ProviderName"`
    DriverName     string `yaml:"DriverName" json:"DriverName"`
    CredentialName string `yaml:"CredentialName" json:"CredentialName"`
    RegionName     string `yaml:"RegionName" json:"RegionName"`
}

CredentialReq - Credential 정보 생성 요청 구조 정의

type CredentialReq struct {
    CredentialName   string     `yaml:"CredentialName" json:"CredentialName"`
    ProviderName     string     `yaml:"ProviderName" json:"ProviderName"`
    KeyValueInfoList []KeyValue `yaml:"KeyValueInfoList" json:"KeyValueInfoList"`
}

type ImageInfo 

ImageInfo - Image 정보 구조 정의

type ImageInfo struct {
    Name string `yaml:"Name" json:"Name"`
}

type ImageReq 

ImageReq - Image 정보 생성 요청 구조 정의

type ImageReq struct {
    ConnectionName string    `yaml:"ConnectionName" json:"ConnectionName"`
    ReqInfo        ImageInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

type KeyInfo 

KeyInfo - Key 정보 구조 정의

type KeyInfo struct {
    Name string `yaml:"Name" json:"Name"`
}

type KeyReq 

KeyReq - Key Pair 정보 생성 요청 구조 정의

type KeyReq struct {
    ConnectionName string  `yaml:"ConnectionName" json:"ConnectionName"`
    ReqInfo        KeyInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

type KeyValue 

KeyValue - Key / Value 구조 정의

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

type RegionReq 

RegionReq - Region 정보 생성 요청 구조 정의

type RegionReq struct {
    RegionName       string     `yaml:"RegionName" json:"RegionName"`
    ProviderName     string     `yaml:"ProviderName" json:"ProviderName"`
    KeyValueInfoList []KeyValue `yaml:"KeyValueInfoList" json:"KeyValueInfoList"`
}

type SSHRUNReq 

SSHRUNReq - SSH 실행 요청 구조 정의

type SSHRUNReq struct {
    UserName   string   `yaml:"UserName" json:"UserName"`
    PrivateKey []string `yaml:"PrivateKey" json:"PrivateKey"`
    ServerPort string   `yaml:"ServerPort" json:"ServerPort"`
    Command    string   `yaml:"Command" json:"Command"`
}

SecurityInfo - Security 정보 구조 정의

type SecurityInfo struct {
    Name          string              `yaml:"Name" json:"Name"`
    VPCName       string              `yaml:"VPCName" json:"VPCName"`
    Direction     string              `yaml:"Direction" json:"Direction"`
    SecurityRules *[]SecurityRuleInfo `yaml:"SecurityRules" json:"SecurityRules"`
}

type SecurityReq 

SecurityReq - Security 정보 생성 요청 구조 정의

type SecurityReq struct {
    ConnectionName string       `yaml:"ConnectionName" json:"ConnectionName"`
    ReqInfo        SecurityInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

SecurityRuleInfo - Security Rule 정보 구조 정의

type SecurityRuleInfo 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"`
}

type SubnetInfo 

SubnetInfo - Subnet 정보 구조 정의

type SubnetInfo struct {
    Name      string `yaml:"Name" json:"Name"`
    IPv4_CIDR string `yaml:"IPv4_CIDR" json:"IPv4_CIDR"`
}

type SubnetReq 

type SubnetReq struct {
    ConnectionName string     `yaml:"ConnectionName" json:"ConnectionName"`
    VPCName        string     `yaml:"VPCName" json:"VPCName"`
    ReqInfo        SubnetInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

type VMInfo 

VMInfo - VM 정보 구조 정의

type VMInfo struct {
    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"`
    VMSpecName         string   `yaml:"VMSpecName" json:"VMSpecName"`
    KeyPairName        string   `yaml:"KeyPairName" json:"KeyPairName"`

VMUserId string yaml:"VMUserId" json:"VMUserId" VMUserPasswd string yaml:"VMUserPasswd" json:"VMUserPasswd" }

type VMReq 

VMReq - VM 정보 생성 요청 구조 정의

type VMReq struct {
    ConnectionName string `yaml:"ConnectionName" json:"ConnectionName"`
    ReqInfo        VMInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

type VPCInfo 

VPCInfo - VPC 정보 구조 정의

type VPCInfo struct {
    Name           string        `yaml:"Name" json:"Name"`
    IPv4_CIDR      string        `yaml:"IPv4_CIDR" json:"IPv4_CIDR"`
    SubnetInfoList *[]SubnetInfo `yaml:"SubnetInfoList" json:"SubnetInfoList"`
}

type VPCReq 

VPCReq - VPC 정보 생성 요청 구조 정의

type VPCReq struct {
    ConnectionName string  `yaml:"ConnectionName" json:"ConnectionName"`
    ReqInfo        VPCInfo `yaml:"ReqInfo" json:"ReqInfo"`
}
 
Build version go1.10.
Except as noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code is licensed under a BSD license.
Terms of Service | Privacy Policy

Table of contents



Clone this wiki locally