api

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCMApi

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

CCMApi - CCM API 구조 정의

func NewCloudResourceHandler

func NewCloudResourceHandler() (ccm *CCMApi)

NewCloudResourceHandler - CCM API 객체 생성

func (*CCMApi) AddSubnet added in v0.3.1

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

AddSubnet - Subnet 추가

func (*CCMApi) AddSubnetByParam added in v0.3.1

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) ListImageInfo added in v0.5.1

func (ccm *CCMApi) ListImageInfo(connectionName string) ([]*cres.ImageInfo, error)

for Mini, by powerkim. 2021.11.

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) RegisterKey added in v0.4.15

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

RegisterKey - KeyPair 등록

func (*CCMApi) RegisterKeyByParam added in v0.4.15

func (ccm *CCMApi) RegisterKeyByParam(req *KeyRegisterReq) (string, error)

RegisterKeyByParam - KeyPair 등록

func (*CCMApi) RegisterSecurity added in v0.4.15

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

RegisterSecurity - Security 등록

func (*CCMApi) RegisterSecurityByParam added in v0.4.15

func (ccm *CCMApi) RegisterSecurityByParam(req *SecurityRegisterReq) (string, error)

RegisterSecurityByParam - Security 등록

func (*CCMApi) RegisterVM added in v0.4.15

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

RegisterVM - VM 등록

func (*CCMApi) RegisterVMByParam added in v0.4.15

func (ccm *CCMApi) RegisterVMByParam(req *VMRegisterReq) (string, error)

RegisterVMByParam - VM 등록

func (*CCMApi) RegisterVPC added in v0.4.15

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

RegisterVPC - VPC 등록

func (*CCMApi) RegisterVPCByParam added in v0.4.15

func (ccm *CCMApi) RegisterVPCByParam(req *VPCRegisterReq) (string, error)

RegisterVPCByParam - VPC 등록

func (*CCMApi) RemoveCSPSubnet added in v0.3.1

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

RemoveCSPSubnet - CSP Subnet 삭제

func (*CCMApi) RemoveCSPSubnetByParam added in v0.3.1

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

RemoveCSPSubnetByParam - CSP Subnet 삭제

func (*CCMApi) RemoveSubnet added in v0.3.1

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

RemoveSubnet - Subnet 삭제

func (*CCMApi) RemoveSubnetByParam added in v0.3.1

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 삭제

func (*CCMApi) UnregisterKey added in v0.4.15

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

UnregisterKey - KeyPair 제거

func (*CCMApi) UnregisterKeyByParam added in v0.4.15

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

UnregisterKeyByParam - KeyPair 제거

func (*CCMApi) UnregisterSecurity added in v0.4.15

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

UnregisterSecurity - Security 제거

func (*CCMApi) UnregisterSecurityByParam added in v0.4.15

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

UnregisterSecurityByParam - Security 제거

func (*CCMApi) UnregisterVM added in v0.4.15

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

UnregisterVM - VM 제거

func (*CCMApi) UnregisterVMByParam added in v0.4.15

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

UnregisterVMByParam - VM 제거

func (*CCMApi) UnregisterVPC added in v0.4.15

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

UnregisterVPC - VPC 제거

func (*CCMApi) UnregisterVPCByParam added in v0.4.15

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

UnregisterVPCByParam - VPC 제거

type CIMApi

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

CIMApi - CIM API 구조 정의

func NewCloudInfoManager

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 (*CIMApi) CreateConnectionConfigByParam

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 (*CIMApi) DeleteConnectionConfigByParam

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 설정

type CloudDriverReq

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

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

type ConnectionConfigReq

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

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

type CredentialReq

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

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

type ImageInfo

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

ImageInfo - Image 정보 구조 정의

type ImageReq

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

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

type KeyInfo

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

KeyInfo - Key 정보 구조 정의

type KeyRegisterInfo added in v0.4.15

type KeyRegisterInfo struct {
	Name  string `yaml:"Name" json:"Name"`
	CSPId string `yaml:"CSPId" json:"CSPId"`
}

KeyRegisterInfo - Key Register 정보 구조 정의

type KeyRegisterReq added in v0.4.15

type KeyRegisterReq struct {
	ConnectionName string          `yaml:"ConnectionName" json:"ConnectionName"`
	ReqInfo        KeyRegisterInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

KeyRegisterReq - Key Register 정보 생성 요청 구조 정의

type KeyReq

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

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

type KeyValue

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

KeyValue - Key / Value 구조 정의

type RegionReq

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

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

type SSHRUNReq

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

SSHRUNReq - SSH 실행 요청 구조 정의

type SecurityInfo

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

SecurityInfo - Security 정보 구조 정의

type SecurityRegisterInfo added in v0.4.15

type SecurityRegisterInfo struct {
	VPCName string `yaml:"VPCName" json:"VPCName"`
	Name    string `yaml:"Name" json:"Name"`
	CSPId   string `yaml:"CSPId" json:"CSPId"`
}

SecurityRegisterInfo - Security Register 정보 구조 정의

type SecurityRegisterReq added in v0.4.15

type SecurityRegisterReq struct {
	ConnectionName string               `yaml:"ConnectionName" json:"ConnectionName"`
	ReqInfo        SecurityRegisterInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

SecurityRegisterReq - Security Register 정보 생성 요청 구조 정의

type SecurityReq

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

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

type SecurityRuleInfo

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

SecurityRuleInfo - Security Rule 정보 구조 정의

type SubnetInfo

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

SubnetInfo - Subnet 정보 구조 정의

type SubnetReq added in v0.3.1

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

type VMInfo

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"`

	RootDiskType string `yaml:"RootDiskType" json:"RootDiskType"`
	RootDiskSize string `yaml:"RootDiskSize" json:"RootDiskSize"`

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

VMInfo - VM 정보 구조 정의

type VMRegisterInfo added in v0.4.15

type VMRegisterInfo struct {
	Name  string `yaml:"Name" json:"Name"`
	CSPId string `yaml:"CSPId" json:"CSPId"`
}

VMRegisterInfo - VM Register 정보 구조 정의

type VMRegisterReq added in v0.4.15

type VMRegisterReq struct {
	ConnectionName string         `yaml:"ConnectionName" json:"ConnectionName"`
	ReqInfo        VMRegisterInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

VMRegisterReq - VM Register 정보 생성 요청 구조 정의

type VMReq

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

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

type VPCInfo

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

VPCInfo - VPC 정보 구조 정의

type VPCRegisterInfo added in v0.4.15

type VPCRegisterInfo struct {
	Name  string `yaml:"Name" json:"Name"`
	CSPId string `yaml:"CSPId" json:"CSPId"`
}

VPCRegisterInfo - VPC Register 정보 구조 정의

type VPCRegisterReq added in v0.4.15

type VPCRegisterReq struct {
	ConnectionName string          `yaml:"ConnectionName" json:"ConnectionName"`
	ReqInfo        VPCRegisterInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

VPCRegisterReq - VPC Register 정보 생성 요청 구조 정의

type VPCReq

type VPCReq struct {
	ConnectionName string  `yaml:"ConnectionName" json:"ConnectionName"`
	ReqInfo        VPCInfo `yaml:"ReqInfo" json:"ReqInfo"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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