Documentation ¶
Index ¶
- Constants
- func CreateHashString(credentialInfo idrv.CredentialInfo) (string, error)
- func CreateSubnetCIDR(subnetList []*irs.VNetworkInfo) (*string, error)
- func CreateVNic(vmHandler *AzureVMHandler, vmReqInfo irs.VMReqInfo) (*string, error)
- func GetPublicIPIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, ...) string
- func GetPublicKey(credentialInfo idrv.CredentialInfo, keyPairName string) (string, error)
- func GetSecGroupIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, ...) string
- func GetVNicIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, ...) string
- type AzureImageHandler
- func (imageHandler *AzureImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *AzureImageHandler) DeleteImage(imageID string) (bool, error)
- func (imageHandler *AzureImageHandler) GetImage(imageID string) (irs.ImageInfo, error)
- func (imageHandler *AzureImageHandler) ListImage() ([]*irs.ImageInfo, error)
- type AzureKeyPairHandler
- func (keyPairHandler *AzureKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
- func (keyPairHandler *AzureKeyPairHandler) DeleteKey(keyPairName string) (bool, error)
- func (keyPairHandler *AzureKeyPairHandler) GetKey(keyPairName string) (irs.KeyPairInfo, error)
- func (keyPairHandler *AzureKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type AzurePublicIPHandler
- func (publicIpHandler *AzurePublicIPHandler) CreatePublicIP(publicIPReqInfo irs.PublicIPReqInfo) (irs.PublicIPInfo, error)
- func (publicIpHandler *AzurePublicIPHandler) DeletePublicIP(publicIPID string) (bool, error)
- func (publicIpHandler *AzurePublicIPHandler) GetPublicIP(publicIPID string) (irs.PublicIPInfo, error)
- func (publicIpHandler *AzurePublicIPHandler) ListPublicIP() ([]*irs.PublicIPInfo, error)
- type AzureSecurityHandler
- func (securityHandler *AzureSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
- func (securityHandler *AzureSecurityHandler) DeleteSecurity(securityID string) (bool, error)
- func (securityHandler *AzureSecurityHandler) GetSecurity(securityID string) (irs.SecurityInfo, error)
- func (securityHandler *AzureSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- type AzureVMHandler
- func (vmHandler *AzureVMHandler) GetVM(vmID string) (irs.VMInfo, error)
- func (vmHandler *AzureVMHandler) GetVMStatus(vmID string) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *AzureVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *AzureVMHandler) RebootVM(vmID string) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) ResumeVM(vmID string) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)
- func (vmHandler *AzureVMHandler) SuspendVM(vmID string) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) TerminateVM(vmID string) (irs.VMStatus, error)
- type AzureVNetworkHandler
- func (vNetworkHandler *AzureVNetworkHandler) CreateVNetwork(vNetworkReqInfo irs.VNetworkReqInfo) (irs.VNetworkInfo, error)
- func (vNetworkHandler *AzureVNetworkHandler) DeleteVNetwork(vNetworkID string) (bool, error)
- func (vNetworkHandler *AzureVNetworkHandler) GetVNetwork(vNetworkID string) (irs.VNetworkInfo, error)
- func (vNetworkHandler *AzureVNetworkHandler) ListVNetwork() ([]*irs.VNetworkInfo, error)
- type AzureVNicHandler
- func (vNicHandler *AzureVNicHandler) CreateVNic(vNicReqInfo irs.VNicReqInfo) (irs.VNicInfo, error)
- func (vNicHandler *AzureVNicHandler) DeleteVNic(vNicID string) (bool, error)
- func (vNicHandler *AzureVNicHandler) GetVNic(vNicID string) (irs.VNicInfo, error)
- func (vNicHandler *AzureVNicHandler) ListVNic() ([]*irs.VNicInfo, error)
Constants ¶
View Source
const ( CBResourceGroupName = "CB-GROUP" CBVirutalNetworkName = "CB-VNet" CBVnetDefaultCidr = "130.0.0.0/16" CBVMUser = "cb-user" //CBKeyPairPath = "/cloud-control-manager/cloud-driver/driver-libs/.ssh-azure/" // by powerkim, 2019.10.30 CBKeyPairPath = "/cloud-driver-libs/.ssh-azure/" )
Variables ¶
This section is empty.
Functions ¶
func CreateHashString ¶
func CreateHashString(credentialInfo idrv.CredentialInfo) (string, error)
KeyPair 해시 생성 함수
func CreateSubnetCIDR ¶
func CreateSubnetCIDR(subnetList []*irs.VNetworkInfo) (*string, error)
서브넷 CIDR 생성 (CIDR C class 기준 생성)
func CreateVNic ¶
func CreateVNic(vmHandler *AzureVMHandler, vmReqInfo irs.VMReqInfo) (*string, error)
VM 생성 시 VNic 자동 생성
func GetPublicIPIdByName ¶
func GetPublicIPIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, publicIPName string) string
func GetPublicKey ¶
func GetPublicKey(credentialInfo idrv.CredentialInfo, keyPairName string) (string, error)
Public KeyPair 정보 가져오기
func GetSecGroupIdByName ¶
func GetSecGroupIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, secGroupName string) string
func GetVNicIdByName ¶
func GetVNicIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, vNicName string) string
Types ¶
type AzureImageHandler ¶
type AzureImageHandler struct { Region idrv.RegionInfo Ctx context.Context Client *compute.ImagesClient VMImageClient *compute.VirtualMachineImagesClient }
func (*AzureImageHandler) CreateImage ¶
func (imageHandler *AzureImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
func (*AzureImageHandler) DeleteImage ¶
func (imageHandler *AzureImageHandler) DeleteImage(imageID string) (bool, error)
type AzureKeyPairHandler ¶
type AzureKeyPairHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo }
func (*AzureKeyPairHandler) CreateKey ¶
func (keyPairHandler *AzureKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
func (*AzureKeyPairHandler) DeleteKey ¶
func (keyPairHandler *AzureKeyPairHandler) DeleteKey(keyPairName string) (bool, error)
func (*AzureKeyPairHandler) GetKey ¶
func (keyPairHandler *AzureKeyPairHandler) GetKey(keyPairName string) (irs.KeyPairInfo, error)
func (*AzureKeyPairHandler) ListKey ¶
func (keyPairHandler *AzureKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type AzurePublicIPHandler ¶
type AzurePublicIPHandler struct { Region idrv.RegionInfo Ctx context.Context Client *network.PublicIPAddressesClient IPConfigClient *network.InterfaceIPConfigurationsClient }
func (*AzurePublicIPHandler) CreatePublicIP ¶
func (publicIpHandler *AzurePublicIPHandler) CreatePublicIP(publicIPReqInfo irs.PublicIPReqInfo) (irs.PublicIPInfo, error)
func (*AzurePublicIPHandler) DeletePublicIP ¶
func (publicIpHandler *AzurePublicIPHandler) DeletePublicIP(publicIPID string) (bool, error)
func (*AzurePublicIPHandler) GetPublicIP ¶
func (publicIpHandler *AzurePublicIPHandler) GetPublicIP(publicIPID string) (irs.PublicIPInfo, error)
func (*AzurePublicIPHandler) ListPublicIP ¶
func (publicIpHandler *AzurePublicIPHandler) ListPublicIP() ([]*irs.PublicIPInfo, error)
type AzureSecurityHandler ¶
type AzureSecurityHandler struct { Region idrv.RegionInfo Ctx context.Context Client *network.SecurityGroupsClient }
func (*AzureSecurityHandler) CreateSecurity ¶
func (securityHandler *AzureSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
func (*AzureSecurityHandler) DeleteSecurity ¶
func (securityHandler *AzureSecurityHandler) DeleteSecurity(securityID string) (bool, error)
func (*AzureSecurityHandler) GetSecurity ¶
func (securityHandler *AzureSecurityHandler) GetSecurity(securityID string) (irs.SecurityInfo, error)
func (*AzureSecurityHandler) ListSecurity ¶
func (securityHandler *AzureSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
type AzureVMHandler ¶
type AzureVMHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context Client *compute.VirtualMachinesClient SubnetClient *network.SubnetsClient NicClient *network.InterfacesClient PublicIPClient *network.PublicIPAddressesClient DiskClient *compute.DisksClient }
func (*AzureVMHandler) GetVM ¶
func (vmHandler *AzureVMHandler) GetVM(vmID string) (irs.VMInfo, error)
func (*AzureVMHandler) GetVMStatus ¶
func (vmHandler *AzureVMHandler) GetVMStatus(vmID string) (irs.VMStatus, error)
func (*AzureVMHandler) ListVMStatus ¶
func (vmHandler *AzureVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*AzureVMHandler) RebootVM ¶
func (vmHandler *AzureVMHandler) RebootVM(vmID string) (irs.VMStatus, error)
func (*AzureVMHandler) ResumeVM ¶
func (vmHandler *AzureVMHandler) ResumeVM(vmID string) (irs.VMStatus, error)
func (*AzureVMHandler) SuspendVM ¶
func (vmHandler *AzureVMHandler) SuspendVM(vmID string) (irs.VMStatus, error)
func (*AzureVMHandler) TerminateVM ¶
func (vmHandler *AzureVMHandler) TerminateVM(vmID string) (irs.VMStatus, error)
type AzureVNetworkHandler ¶
type AzureVNetworkHandler struct { Region idrv.RegionInfo Ctx context.Context Client *network.VirtualNetworksClient SubnetClient *network.SubnetsClient }
func (*AzureVNetworkHandler) CreateVNetwork ¶
func (vNetworkHandler *AzureVNetworkHandler) CreateVNetwork(vNetworkReqInfo irs.VNetworkReqInfo) (irs.VNetworkInfo, error)
func (*AzureVNetworkHandler) DeleteVNetwork ¶
func (vNetworkHandler *AzureVNetworkHandler) DeleteVNetwork(vNetworkID string) (bool, error)
func (*AzureVNetworkHandler) GetVNetwork ¶
func (vNetworkHandler *AzureVNetworkHandler) GetVNetwork(vNetworkID string) (irs.VNetworkInfo, error)
func (*AzureVNetworkHandler) ListVNetwork ¶
func (vNetworkHandler *AzureVNetworkHandler) ListVNetwork() ([]*irs.VNetworkInfo, error)
type AzureVNicHandler ¶
type AzureVNicHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context NicClient *network.InterfacesClient SubnetClient *network.SubnetsClient }
func (*AzureVNicHandler) CreateVNic ¶
func (vNicHandler *AzureVNicHandler) CreateVNic(vNicReqInfo irs.VNicReqInfo) (irs.VNicInfo, error)
func (*AzureVNicHandler) DeleteVNic ¶
func (vNicHandler *AzureVNicHandler) DeleteVNic(vNicID string) (bool, error)
Click to show internal directories.
Click to hide internal directories.