Documentation
¶
Index ¶
- Constants
- func InitLog()
- type IId
- type KTVpcDiskHandler
- func (diskHandler *KTVpcDiskHandler) AttachDisk(diskIID irs.IID, vmIID irs.IID) (irs.DiskInfo, error)
- func (diskHandler *KTVpcDiskHandler) ChangeDiskSize(diskIID irs.IID, newDiskSize string) (bool, error)
- func (diskHandler *KTVpcDiskHandler) CreateDisk(diskReqInfo irs.DiskInfo) (irs.DiskInfo, error)
- func (diskHandler *KTVpcDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
- func (diskHandler *KTVpcDiskHandler) DetachDisk(diskIID irs.IID, vmIID irs.IID) (bool, error)
- func (diskHandler *KTVpcDiskHandler) GetDisk(diskIID irs.IID) (irs.DiskInfo, error)
- func (diskHandler *KTVpcDiskHandler) ListDisk() ([]*irs.DiskInfo, error)
- type KTVpcImageHandler
- func (imageHandler *KTVpcImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
- func (imageHandler *KTVpcImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *KTVpcImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
- func (imageHandler *KTVpcImageHandler) GetImage(imageIID irs.IID) (irs.ImageInfo, error)
- func (imageHandler *KTVpcImageHandler) ListImage() ([]*irs.ImageInfo, error)
- type KTVpcKeyPairHandler
- func (keyPairHandler *KTVpcKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
- func (keyPairHandler *KTVpcKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
- func (keyPairHandler *KTVpcKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
- func (keyPairHandler *KTVpcKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type KTVpcMyImageHandler
- func (myImageHandler *KTVpcMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *KTVpcMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *KTVpcMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
- func (myImageHandler *KTVpcMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
- func (myImageHandler *KTVpcMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)
- type KTVpcNLBHandler
- func (nlbHandler *KTVpcNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
- func (nlbHandler *KTVpcNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
- func (nlbHandler *KTVpcNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
- func (nlbHandler *KTVpcNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
- func (nlbHandler *KTVpcNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (createNLB irs.NLBInfo, newErr error)
- func (nlbHandler *KTVpcNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
- func (nlbHandler *KTVpcNLBHandler) GetNLB(nlbIID irs.IID) (irs.NLBInfo, error)
- func (nlbHandler *KTVpcNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
- func (nlbHandler *KTVpcNLBHandler) ListNLB() ([]*irs.NLBInfo, error)
- func (nlbHandler *KTVpcNLBHandler) RemoveVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (bool, error)
- type KTVpcRegionZoneHandler
- func (regionZoneHandler KTVpcRegionZoneHandler) GetRegionZone(regionCode string) (irs.RegionZoneInfo, error)
- func (regionZoneHandler *KTVpcRegionZoneHandler) ListOrgRegion() (string, error)
- func (regionZoneHandler *KTVpcRegionZoneHandler) ListOrgZone() (string, error)
- func (regionZoneHandler *KTVpcRegionZoneHandler) ListRegionZone() ([]*irs.RegionZoneInfo, error)
- type KTVpcSecurityHandler
- func (securityHandler *KTVpcSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
- func (securityHandler *KTVpcSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
- func (securityHandler *KTVpcSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
- func (securityHandler *KTVpcSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
- func (securityHandler *KTVpcSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- func (securityHandler *KTVpcSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
- type KTVpcVMHandler
- func (vmHandler *KTVpcVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)
- func (vmHandler *KTVpcVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *KTVpcVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *KTVpcVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *KTVpcVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *KTVpcVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *KTVpcVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)
- func (vmHandler *KTVpcVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *KTVpcVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)
- type KTVpcVMSpecHandler
- func (vmSpecHandler *KTVpcVMSpecHandler) GetOrgVMSpec(specName string) (string, error)
- func (vmSpecHandler *KTVpcVMSpecHandler) GetVMSpec(specName string) (irs.VMSpecInfo, error)
- func (vmSpecHandler *KTVpcVMSpecHandler) ListOrgVMSpec() (string, error)
- func (vmSpecHandler *KTVpcVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
- type KTVpcVPCHandler
- func (vpcHandler *KTVpcVPCHandler) AddSubnet(vpcIID irs.IID, subnetReqInfo irs.SubnetInfo) (irs.VPCInfo, error)
- func (vpcHandler *KTVpcVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
- func (vpcHandler *KTVpcVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
- func (vpcHandler *KTVpcVPCHandler) GetSubnet(subnetIID irs.IID) (irs.SubnetInfo, error)
- func (vpcHandler *KTVpcVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)
- func (vpcHandler *KTVpcVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
- func (vpcHandler *KTVpcVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)
- type KtVpcRegion
- type KtVpcZone
- type NetworkInfo
- type NetworkWithExt
- type SecurityGroup
- type Security_Rule
- type VpcIId
Constants ¶
View Source
const ( DefaultDataDiskSize string = "100" DefaultDiskUsagePlanType string = "hourly" )
View Source
const ( DefaultNLBOption string = "roundrobin" // NLBOption : roundrobin / leastconnection / leastresponse / sourceiphash / DefaultHealthCheckURL string = "abc.kt.com" NlbSubnetName string = "NLB-SUBNET" // Subnet for NLB )
View Source
const ( LnxUserName string = "cb-user" WinUserName string = "Administrator" UbuntuCloudInitFilePath string = "/cloud-driver-libs/.cloud-init-ktcloudvpc/cloud-init-ubuntu" CentosCloudInitFilePath string = "/cloud-driver-libs/.cloud-init-ktcloudvpc/cloud-init-centos" WinCloudInitFilePath string = "/cloud-driver-libs/.cloud-init-ktcloudvpc/cloud-init-windows" DefaultUsagePlan string = "hourly" DefaultDiskSize string = "50" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KTVpcDiskHandler ¶
type KTVpcDiskHandler struct { RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient VolumeClient *ktvpcsdk.ServiceClient }
func (*KTVpcDiskHandler) AttachDisk ¶
func (*KTVpcDiskHandler) ChangeDiskSize ¶
func (*KTVpcDiskHandler) CreateDisk ¶
func (*KTVpcDiskHandler) DeleteDisk ¶
func (diskHandler *KTVpcDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
func (*KTVpcDiskHandler) DetachDisk ¶
type KTVpcImageHandler ¶
type KTVpcImageHandler struct { RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient ImageClient *ktvpcsdk.ServiceClient }
func (*KTVpcImageHandler) CheckWindowsImage ¶
func (imageHandler *KTVpcImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
func (*KTVpcImageHandler) CreateImage ¶
func (imageHandler *KTVpcImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
func (*KTVpcImageHandler) DeleteImage ¶
func (imageHandler *KTVpcImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
type KTVpcKeyPairHandler ¶
type KTVpcKeyPairHandler struct { CredentialInfo idrv.CredentialInfo RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient }
func (*KTVpcKeyPairHandler) CreateKey ¶
func (keyPairHandler *KTVpcKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
func (*KTVpcKeyPairHandler) DeleteKey ¶
func (keyPairHandler *KTVpcKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
func (*KTVpcKeyPairHandler) GetKey ¶
func (keyPairHandler *KTVpcKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
func (*KTVpcKeyPairHandler) ListKey ¶
func (keyPairHandler *KTVpcKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type KTVpcMyImageHandler ¶
type KTVpcMyImageHandler struct { RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient ImageClient *ktvpcsdk.ServiceClient NetworkClient *ktvpcsdk.ServiceClient VolumeClient *ktvpcsdk.ServiceClient }
func (*KTVpcMyImageHandler) CheckWindowsImage ¶
func (myImageHandler *KTVpcMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
func (*KTVpcMyImageHandler) DeleteMyImage ¶
func (myImageHandler *KTVpcMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
func (*KTVpcMyImageHandler) GetMyImage ¶
func (myImageHandler *KTVpcMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
func (*KTVpcMyImageHandler) ListMyImage ¶
func (myImageHandler *KTVpcMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
To Manage My Images
func (*KTVpcMyImageHandler) SnapshotVM ¶
func (myImageHandler *KTVpcMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (irs.MyImageInfo, error)
To Take a Snapshot Root Volume with VM ID (To Create My Image)
type KTVpcNLBHandler ¶
type KTVpcNLBHandler struct { RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient NetworkClient *ktvpcsdk.ServiceClient NLBClient *ktvpcsdk.ServiceClient }
func (*KTVpcNLBHandler) AddVMs ¶
func (nlbHandler *KTVpcNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
func (*KTVpcNLBHandler) ChangeHealthCheckerInfo ¶
func (nlbHandler *KTVpcNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
func (*KTVpcNLBHandler) ChangeListener ¶
func (nlbHandler *KTVpcNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
------ Frontend Control
func (*KTVpcNLBHandler) ChangeVMGroupInfo ¶
func (nlbHandler *KTVpcNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
------ Backend Control
func (*KTVpcNLBHandler) DeleteNLB ¶
func (nlbHandler *KTVpcNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
func (*KTVpcNLBHandler) GetVMGroupHealthInfo ¶
func (nlbHandler *KTVpcNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
type KTVpcRegionZoneHandler ¶
type KTVpcRegionZoneHandler struct {
RegionInfo idrv.RegionInfo
}
func (KTVpcRegionZoneHandler) GetRegionZone ¶
func (regionZoneHandler KTVpcRegionZoneHandler) GetRegionZone(regionCode string) (irs.RegionZoneInfo, error)
func (*KTVpcRegionZoneHandler) ListOrgRegion ¶
func (regionZoneHandler *KTVpcRegionZoneHandler) ListOrgRegion() (string, error)
func (*KTVpcRegionZoneHandler) ListOrgZone ¶
func (regionZoneHandler *KTVpcRegionZoneHandler) ListOrgZone() (string, error)
func (*KTVpcRegionZoneHandler) ListRegionZone ¶
func (regionZoneHandler *KTVpcRegionZoneHandler) ListRegionZone() ([]*irs.RegionZoneInfo, error)
type KTVpcSecurityHandler ¶
type KTVpcSecurityHandler struct { RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient NetworkClient *ktvpcsdk.ServiceClient }
func (*KTVpcSecurityHandler) AddRules ¶
func (securityHandler *KTVpcSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
func (*KTVpcSecurityHandler) CreateSecurity ¶
func (securityHandler *KTVpcSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
func (*KTVpcSecurityHandler) DeleteSecurity ¶
func (securityHandler *KTVpcSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
func (*KTVpcSecurityHandler) GetSecurity ¶
func (securityHandler *KTVpcSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
func (*KTVpcSecurityHandler) ListSecurity ¶
func (securityHandler *KTVpcSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
func (*KTVpcSecurityHandler) RemoveRules ¶
func (securityHandler *KTVpcSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
type KTVpcVMHandler ¶
type KTVpcVMHandler struct { CredentialInfo idrv.CredentialInfo RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient ImageClient *ktvpcsdk.ServiceClient NetworkClient *ktvpcsdk.ServiceClient VolumeClient *ktvpcsdk.ServiceClient }
func (*KTVpcVMHandler) GetVMStatus ¶
func (*KTVpcVMHandler) ListVMStatus ¶
func (vmHandler *KTVpcVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*KTVpcVMHandler) TerminateVM ¶
type KTVpcVMSpecHandler ¶
type KTVpcVMSpecHandler struct { RegionInfo idrv.RegionInfo VMClient *ktvpcsdk.ServiceClient }
func (*KTVpcVMSpecHandler) GetOrgVMSpec ¶
func (vmSpecHandler *KTVpcVMSpecHandler) GetOrgVMSpec(specName string) (string, error)
func (*KTVpcVMSpecHandler) GetVMSpec ¶
func (vmSpecHandler *KTVpcVMSpecHandler) GetVMSpec(specName string) (irs.VMSpecInfo, error)
func (*KTVpcVMSpecHandler) ListOrgVMSpec ¶
func (vmSpecHandler *KTVpcVMSpecHandler) ListOrgVMSpec() (string, error)
func (*KTVpcVMSpecHandler) ListVMSpec ¶
func (vmSpecHandler *KTVpcVMSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
type KTVpcVPCHandler ¶
type KTVpcVPCHandler struct { RegionInfo idrv.RegionInfo NetworkClient *ktvpcsdk.ServiceClient }
func (*KTVpcVPCHandler) AddSubnet ¶
func (vpcHandler *KTVpcVPCHandler) AddSubnet(vpcIID irs.IID, subnetReqInfo irs.SubnetInfo) (irs.VPCInfo, error)
func (*KTVpcVPCHandler) CreateVPC ¶
func (vpcHandler *KTVpcVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
func (*KTVpcVPCHandler) DeleteVPC ¶
func (vpcHandler *KTVpcVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
func (*KTVpcVPCHandler) GetSubnet ¶
func (vpcHandler *KTVpcVPCHandler) GetSubnet(subnetIID irs.IID) (irs.SubnetInfo, error)
func (*KTVpcVPCHandler) ListVPC ¶
func (vpcHandler *KTVpcVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
func (*KTVpcVPCHandler) RemoveSubnet ¶
type KtVpcRegion ¶
type NetworkInfo ¶
type NetworkWithExt ¶
type NetworkWithExt struct { networks.Network external.NetworkExternalExt }
type SecurityGroup ¶
type SecurityGroup struct { IID IId `json:"IId"` VpcIID VpcIId `json:"VpcIID"` Direc string `json:"Direction"` Secu_Rules []Security_Rule `json:"SecurityRules"` }
type Security_Rule ¶
Click to show internal directories.
Click to hide internal directories.