Documentation ¶
Index ¶
- Constants
- func CreateHashString(credentialInfo idrv.CredentialInfo) (string, error)
- func CreateVPCHashString(credentialInfo idrv.CredentialInfo) (string, error)
- func GetCallLogScheme(endpoint string, resourceType call.RES_TYPE, resourceName string, ...) call.CLOUDLOGSCHEMA
- func GetPublicKey(credentialInfo idrv.CredentialInfo, keyPairName string) (string, error)
- func GetSSHClient(serverIp string, serverPort int, username string, password string) (scp.Client, error)
- func GetVMSpecByName(authHeader map[string]string, reqClient *client.RestClient, specName string) (*string, error)
- func InitLog()
- func ListVNic(authHeader map[string]string, reqClient *client.RestClient, vmId string) (*[]nic.VmNicInfo, error)
- func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
- func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
- func RunCommand(serverIp string, serverPort int, username string, password string, ...) (string, error)
- type ClouditImageHandler
- func (imageHandler *ClouditImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *ClouditImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
- func (imageHandler *ClouditImageHandler) GetImage(imageIID irs.IID) (irs.ImageInfo, error)
- func (imageHandler *ClouditImageHandler) ListImage() ([]*irs.ImageInfo, error)
- type ClouditKeyPairHandler
- func (keyPairHandler *ClouditKeyPairHandler) CheckKeyPairFolder(folderPath string) error
- func (keyPairHandler *ClouditKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
- func (keyPairHandler *ClouditKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
- func (keyPairHandler *ClouditKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
- func (keyPairHandler *ClouditKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type ClouditNLBHandler
- func (nlbHandler *ClouditNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
- func (nlbHandler *ClouditNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
- func (nlbHandler *ClouditNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
- func (nlbHandler *ClouditNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
- func (nlbHandler *ClouditNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (irs.NLBInfo, error)
- func (nlbHandler *ClouditNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
- func (nlbHandler *ClouditNLBHandler) GetNLB(nlbIID irs.IID) (irs.NLBInfo, error)
- func (nlbHandler *ClouditNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
- func (nlbHandler *ClouditNLBHandler) ListNLB() ([]*irs.NLBInfo, error)
- func (nlbHandler *ClouditNLBHandler) RemoveVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (bool, error)
- type ClouditSecurityHandler
- func (securityHandler *ClouditSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
- func (securityHandler *ClouditSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
- func (securityHandler *ClouditSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
- func (securityHandler *ClouditSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
- func (securityHandler *ClouditSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- func (securityHandler *ClouditSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
- type ClouditVMHandler
- func (vmHandler *ClouditVMHandler) AssociatePublicIP(vmName string, vmIp string) (bool, error)
- func (vmHandler *ClouditVMHandler) DisassociatePublicIP(publicIP string) (bool, error)
- func (vmHandler *ClouditVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)
- func (vmHandler *ClouditVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *ClouditVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *ClouditVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *ClouditVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *ClouditVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *ClouditVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (startVM irs.VMInfo, createError error)
- func (vmHandler *ClouditVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *ClouditVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)
- type ClouditVMSpecHandler
- func (vmSpecHandler *ClouditVMSpecHandler) GetOrgVMSpec(Name string) (string, error)
- func (vmSpecHandler *ClouditVMSpecHandler) GetVMSpec(Name string) (irs.VMSpecInfo, error)
- func (vmSpecHandler *ClouditVMSpecHandler) GetVMSpecByName(region string, specName string) (*irs.VMSpecInfo, error)
- func (vmSpecHandler *ClouditVMSpecHandler) ListOrgVMSpec() (string, error)
- func (vmSpecHandler *ClouditVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
- type ClouditVPCHandler
- func (vpcHandler *ClouditVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
- func (vpcHandler *ClouditVPCHandler) CreateSubnet(subnetReqInfo irs.SubnetInfo) (subnet.SubnetInfo, error)
- func (vpcHandler *ClouditVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
- func (vpcHandler *ClouditVPCHandler) DeleteSubnet(subnetIId irs.IID) (bool, error)
- func (vpcHandler *ClouditVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
- func (vpcHandler *ClouditVPCHandler) GetDefaultVPC() (irs.VPCInfo, error)
- func (vpcHandler *ClouditVPCHandler) GetSubnet(subnetIId irs.IID) (subnet.SubnetInfo, error)
- func (vpcHandler *ClouditVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)
- func (vpcHandler *ClouditVPCHandler) ListSubnet() ([]subnet.SubnetInfo, error)
- func (vpcHandler *ClouditVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
- func (vpcHandler *ClouditVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)
- type NLBHealthType
- type NLBScope
- type NLBType
Constants ¶
View Source
const ( CBVMUser = "cb-user" CBKeyPairPath = "/meta_db/.ssh-cloudit/" ClouditRegion = "ClouditRegion" ClouditVPCREGISTER = "VPC-REGISTER" )
View Source
const ( KeyPair = "KEYPAIR" KeyPairProvider = "cloudit" )
View Source
const ( NLBPublicType NLBType = "PUBLIC" NLBInternalType NLBType = "INTERNAL" NLBGlobalType NLBScope = "GLOBAL" NLBRegionType NLBScope = "REGION" NLBOpenHealth NLBHealthType = "OPEN" )
View Source
const ( SecurityGroup = "SECURITYGROUP" NULL = "" DefaultCIDR = "0.0.0.0/0" DefaultPort = "0" )
View Source
const ( VMDefaultUser = "root" VMDefaultPassword = "qwe1212!Q" SSHDefaultUser = "cb-user" SSHDefaultPort = 22 VM = "VM" DefaultSGName = "SSH" )
View Source
const ( VPC = "VPC" VPCProvider = "CloudITVPC" )
View Source
const (
Image = "IMAGE"
)
View Source
const (
VMSpec = "VMSPEC"
)
Variables ¶
This section is empty.
Functions ¶
func CreateHashString ¶ added in v0.3.8
func CreateHashString(credentialInfo idrv.CredentialInfo) (string, error)
KeyPair 해시 생성 함수
func CreateVPCHashString ¶ added in v0.5.3
func CreateVPCHashString(credentialInfo idrv.CredentialInfo) (string, error)
func GetCallLogScheme ¶ added in v0.2.1
func GetPublicKey ¶ added in v0.3.8
func GetPublicKey(credentialInfo idrv.CredentialInfo, keyPairName string) (string, error)
Public KeyPair 정보 가져오기
func GetSSHClient ¶ added in v0.3.8
func GetVMSpecByName ¶ added in v0.1.4
func GetVMSpecByName(authHeader map[string]string, reqClient *client.RestClient, specName string) (*string, error)
VM Spec 정보 조회
func ListVNic ¶ added in v0.1.4
func ListVNic(authHeader map[string]string, reqClient *client.RestClient, vmId string) (*[]nic.VmNicInfo, error)
VNic 목록 조회
func LoggingError ¶ added in v0.2.1
func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
func LoggingInfo ¶ added in v0.2.1
func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
Types ¶
type ClouditImageHandler ¶
type ClouditImageHandler struct { CredentialInfo idrv.CredentialInfo Client *client.RestClient }
func (*ClouditImageHandler) CreateImage ¶
func (imageHandler *ClouditImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
func (*ClouditImageHandler) DeleteImage ¶
func (imageHandler *ClouditImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
type ClouditKeyPairHandler ¶ added in v0.3.8
type ClouditKeyPairHandler struct { CredentialInfo idrv.CredentialInfo Client *client.RestClient }
func (*ClouditKeyPairHandler) CheckKeyPairFolder ¶ added in v0.3.8
func (keyPairHandler *ClouditKeyPairHandler) CheckKeyPairFolder(folderPath string) error
func (*ClouditKeyPairHandler) CreateKey ¶ added in v0.3.8
func (keyPairHandler *ClouditKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
func (*ClouditKeyPairHandler) DeleteKey ¶ added in v0.3.8
func (keyPairHandler *ClouditKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
func (*ClouditKeyPairHandler) GetKey ¶ added in v0.3.8
func (keyPairHandler *ClouditKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
func (*ClouditKeyPairHandler) ListKey ¶ added in v0.3.8
func (keyPairHandler *ClouditKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type ClouditNLBHandler ¶ added in v0.5.10
type ClouditNLBHandler struct { CredentialInfo idrv.CredentialInfo Client *client.RestClient }
func (*ClouditNLBHandler) AddVMs ¶ added in v0.5.10
func (nlbHandler *ClouditNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
func (*ClouditNLBHandler) ChangeHealthCheckerInfo ¶ added in v0.5.10
func (nlbHandler *ClouditNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
func (*ClouditNLBHandler) ChangeListener ¶ added in v0.5.10
func (nlbHandler *ClouditNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
------ Frontend Control
func (*ClouditNLBHandler) ChangeVMGroupInfo ¶ added in v0.5.10
func (nlbHandler *ClouditNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
------ Backend Control
func (*ClouditNLBHandler) DeleteNLB ¶ added in v0.5.10
func (nlbHandler *ClouditNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
func (*ClouditNLBHandler) GetVMGroupHealthInfo ¶ added in v0.5.10
func (nlbHandler *ClouditNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
type ClouditSecurityHandler ¶
type ClouditSecurityHandler struct { CredentialInfo idrv.CredentialInfo Client *client.RestClient }
func (*ClouditSecurityHandler) AddRules ¶ added in v0.5.4
func (securityHandler *ClouditSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
func (*ClouditSecurityHandler) CreateSecurity ¶
func (securityHandler *ClouditSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
func (*ClouditSecurityHandler) DeleteSecurity ¶
func (securityHandler *ClouditSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
func (*ClouditSecurityHandler) GetSecurity ¶
func (securityHandler *ClouditSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
func (*ClouditSecurityHandler) ListSecurity ¶
func (securityHandler *ClouditSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
func (*ClouditSecurityHandler) RemoveRules ¶ added in v0.5.4
func (securityHandler *ClouditSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
type ClouditVMHandler ¶
type ClouditVMHandler struct { CredentialInfo idrv.CredentialInfo Client *client.RestClient }
func (*ClouditVMHandler) AssociatePublicIP ¶
func (vmHandler *ClouditVMHandler) AssociatePublicIP(vmName string, vmIp string) (bool, error)
VM에 PublicIP 연결
func (*ClouditVMHandler) DisassociatePublicIP ¶
func (vmHandler *ClouditVMHandler) DisassociatePublicIP(publicIP string) (bool, error)
VM에 PublicIP 해제
func (*ClouditVMHandler) GetVMStatus ¶
func (*ClouditVMHandler) ListVM ¶
func (vmHandler *ClouditVMHandler) ListVM() ([]*irs.VMInfo, error)
func (*ClouditVMHandler) ListVMStatus ¶
func (vmHandler *ClouditVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*ClouditVMHandler) TerminateVM ¶
type ClouditVMSpecHandler ¶
type ClouditVMSpecHandler struct { CredentialInfo idrv.CredentialInfo Client *client.RestClient }
func (*ClouditVMSpecHandler) GetOrgVMSpec ¶
func (vmSpecHandler *ClouditVMSpecHandler) GetOrgVMSpec(Name string) (string, error)
func (*ClouditVMSpecHandler) GetVMSpec ¶
func (vmSpecHandler *ClouditVMSpecHandler) GetVMSpec(Name string) (irs.VMSpecInfo, error)
func (*ClouditVMSpecHandler) GetVMSpecByName ¶ added in v0.1.2
func (vmSpecHandler *ClouditVMSpecHandler) GetVMSpecByName(region string, specName string) (*irs.VMSpecInfo, error)
func (*ClouditVMSpecHandler) ListOrgVMSpec ¶
func (vmSpecHandler *ClouditVMSpecHandler) ListOrgVMSpec() (string, error)
func (*ClouditVMSpecHandler) ListVMSpec ¶
func (vmSpecHandler *ClouditVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
type ClouditVPCHandler ¶ added in v0.1.3
type ClouditVPCHandler struct { CredentialInfo idrv.CredentialInfo Client *client.RestClient }
func (*ClouditVPCHandler) AddSubnet ¶ added in v0.2.1
func (vpcHandler *ClouditVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
func (*ClouditVPCHandler) CreateSubnet ¶ added in v0.1.3
func (vpcHandler *ClouditVPCHandler) CreateSubnet(subnetReqInfo irs.SubnetInfo) (subnet.SubnetInfo, error)
func (*ClouditVPCHandler) CreateVPC ¶ added in v0.1.3
func (vpcHandler *ClouditVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
func (*ClouditVPCHandler) DeleteSubnet ¶ added in v0.1.3
func (vpcHandler *ClouditVPCHandler) DeleteSubnet(subnetIId irs.IID) (bool, error)
func (*ClouditVPCHandler) DeleteVPC ¶ added in v0.1.3
func (vpcHandler *ClouditVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
func (*ClouditVPCHandler) GetDefaultVPC ¶ added in v0.5.3
func (vpcHandler *ClouditVPCHandler) GetDefaultVPC() (irs.VPCInfo, error)
func (*ClouditVPCHandler) GetSubnet ¶ added in v0.1.3
func (vpcHandler *ClouditVPCHandler) GetSubnet(subnetIId irs.IID) (subnet.SubnetInfo, error)
func (*ClouditVPCHandler) ListSubnet ¶ added in v0.1.3
func (vpcHandler *ClouditVPCHandler) ListSubnet() ([]subnet.SubnetInfo, error)
func (*ClouditVPCHandler) ListVPC ¶ added in v0.1.3
func (vpcHandler *ClouditVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
func (*ClouditVPCHandler) RemoveSubnet ¶ added in v0.2.1
type NLBHealthType ¶ added in v0.5.10
type NLBHealthType string
Click to show internal directories.
Click to hide internal directories.