Documentation
¶
Index ¶
- Constants
- func CheckExistKey(keypairIId irs.IID, resourceGroup string, client *compute.SSHPublicKeysClient, ...) (bool, error)
- func CheckExistPublicIp(publicIPId string, resourceGroup string, ...) (bool, error)
- func CheckExistVM(vmIID irs.IID, resourceGroup string, client *compute.VirtualMachinesClient, ...) (bool, error)
- func CheckExistVMDisk(osDiskName string, client *compute.DisksClient, ctx context.Context) (bool, error)
- func CheckExistVNic(networkInterfaceName string, resourceGroup string, ...) (bool, error)
- func CheckIIDValidation(IId irs.IID) bool
- func ConvertVMIID(vmIID irs.IID, credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo) (irs.IID, error)
- func CreatePublicIP(vmHandler *AzureVMHandler, vmReqInfo irs.VMReqInfo) (irs.IID, error)
- func CreateVNic(vmHandler *AzureVMHandler, vmReqInfo irs.VMReqInfo, publicIPIId irs.IID) (irs.IID, error)
- func GetCallLogScheme(region idrv.RegionInfo, resourceType call.RES_TYPE, resourceName string, ...) call.CLOUDLOGSCHEMA
- func GetNetworksResourceIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, ...) string
- func GetRawKey(keypairIId irs.IID, resourceGroup string, client *compute.SSHPublicKeysClient, ...) (compute.SSHPublicKeyResource, error)
- func GetRawVM(vmIID irs.IID, resourceGroup string, client *compute.VirtualMachinesClient, ...) (compute.VirtualMachine, error)
- func GetResourceNameById(id string) string
- func GetSecGroupIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, ...) string
- func GetSshKeyIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, keyName string) string
- func GetSshKeyNameById(sshId string) (string, error)
- func InitLog()
- func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
- func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
- type AzureImageHandler
- func (imageHandler *AzureImageHandler) CreateImage(imageReqInfo irs.ImageReqInfo) (irs.ImageInfo, error)
- func (imageHandler *AzureImageHandler) DeleteImage(imageIID irs.IID) (bool, error)
- func (imageHandler *AzureImageHandler) GetImage(imageIID irs.IID) (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(keyIID irs.IID) (bool, error)
- func (keyPairHandler *AzureKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
- func (keyPairHandler *AzureKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
- type AzureNLBHandler
- func (nlbHandler *AzureNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
- func (nlbHandler *AzureNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
- func (nlbHandler *AzureNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
- func (nlbHandler *AzureNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
- func (nlbHandler *AzureNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (createNLB irs.NLBInfo, createError error)
- func (nlbHandler *AzureNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
- func (nlbHandler *AzureNLBHandler) GetNLB(nlbIID irs.IID) (irs.NLBInfo, error)
- func (nlbHandler *AzureNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
- func (nlbHandler *AzureNLBHandler) ListNLB() ([]*irs.NLBInfo, error)
- func (nlbHandler *AzureNLBHandler) NLBCleaner(nlbIID irs.IID) (bool, error)
- func (nlbHandler *AzureNLBHandler) RemoveVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (bool, error)
- type AzureResourceCategory
- type AzureResourceKind
- type AzureSecurityHandler
- func (securityHandler *AzureSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
- func (securityHandler *AzureSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
- func (securityHandler *AzureSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
- func (securityHandler *AzureSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
- func (securityHandler *AzureSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
- func (securityHandler *AzureSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, error)
- type AzureVMHandler
- func (vmHandler *AzureVMHandler) GetVM(vmIID irs.IID) (irs.VMInfo, error)
- func (vmHandler *AzureVMHandler) GetVMStatus(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) ListVM() ([]*irs.VMInfo, error)
- func (vmHandler *AzureVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
- func (vmHandler *AzureVMHandler) RebootVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) ResumeVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) StartVM(vmReqInfo irs.VMReqInfo) (irs.VMInfo, error)
- func (vmHandler *AzureVMHandler) SuspendVM(vmIID irs.IID) (irs.VMStatus, error)
- func (vmHandler *AzureVMHandler) TerminateVM(vmIID irs.IID) (irs.VMStatus, error)
- type AzureVPCHandler
- func (vpcHandler *AzureVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
- func (vpcHandler *AzureVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
- func (vpcHandler *AzureVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
- func (vpcHandler *AzureVPCHandler) GetVPC(vpcIID irs.IID) (irs.VPCInfo, error)
- func (vpcHandler *AzureVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
- func (vpcHandler *AzureVPCHandler) RemoveSubnet(vpcIID irs.IID, subnetIID irs.IID) (bool, error)
- type AzureVmSpecHandler
- func (vmSpecHandler *AzureVmSpecHandler) GetOrgVMSpec(Name string) (string, error)
- func (vmSpecHandler *AzureVmSpecHandler) GetVMSpec(Name string) (irs.VMSpecInfo, error)
- func (vmSpecHandler *AzureVmSpecHandler) ListOrgVMSpec() (string, error)
- func (vmSpecHandler *AzureVmSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
- type BackendAddressesIPRefType
- type CleanVMClientRequestResource
- type CleanVMClientSet
- type NLBScope
- type NLBType
- type VMCleanRelatedResource
Constants ¶
View Source
const ( CBResourceGroupName = "CB-GROUP" CBVirtualNetworkName = "CB-VNet" CBVnetDefaultCidr = "130.0.0.0/16" CBVMUser = "cb-user" )
View Source
const ( AzureNetworkCategory AzureResourceCategory = "Microsoft.Network" AzureComputeCategory AzureResourceCategory = "Microsoft.Compute" AzureVirtualNetworks AzureResourceKind = "virtualNetworks" AzureSSHPublicKeys AzureResourceKind = "sshPublicKeys" AzureSecurityGroups AzureResourceKind = "networkSecurityGroups" AzurePublicIPAddresses AzureResourceKind = "publicIPAddresses" AzureFrontendIPConfigurations AzureResourceKind = "frontendIPConfigurations" AzureLoadBalancers AzureResourceKind = "loadBalancers" AzureNetworkInterfaces AzureResourceKind = "networkInterfaces" )
View Source
const ( FrontEndIPConfigPrefix = "frontEndIp" LoadBalancingRulesPrefix = "lbrule" ProbeNamePrefix = "probe" BackEndAddressPoolPrefix = "backend" BackendAddressesIPAddressRef BackendAddressesIPRefType = "IPADDRESS" BackendAddressesIPConfigurationRef BackendAddressesIPRefType = "IPCONFIGURATION" NLBPublicType NLBType = "PUBLIC" NLBInternalType NLBType = "INTERNAL" NLBGlobalType NLBScope = "GLOBAL" NLBRegionType NLBScope = "REGION" )
View Source
const ( ICMP = "icmp" SecurityGroup = "SECURITYGROUP" )
View Source
const ( ProvisioningStateCode string = "ProvisioningState/succeeded" VM = "VM" PremiumSSD = "PremiumSSD" StandardSSD = "StandardSSD" StandardHHD = "StandardHHD" )
View Source
const (
Image = "IMAGE"
)
View Source
const (
KeyPair = "KEYPAIR"
)
View Source
const (
VMSpec = "VMSPEC"
)
View Source
const (
VPC = "VPC"
)
Variables ¶
This section is empty.
Functions ¶
func CheckExistKey ¶ added in v0.4.15
func CheckExistPublicIp ¶ added in v0.5.3
func CheckExistVM ¶ added in v0.5.3
func CheckExistVMDisk ¶ added in v0.5.3
func CheckExistVNic ¶ added in v0.5.3
func CheckIIDValidation ¶ added in v0.4.15
func ConvertVMIID ¶ added in v0.5.3
func ConvertVMIID(vmIID irs.IID, credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo) (irs.IID, error)
func CreatePublicIP ¶ added in v0.1.3
VM 생성 시 Public IP 자동 생성 (nested flow 적용)
func CreateVNic ¶
func CreateVNic(vmHandler *AzureVMHandler, vmReqInfo irs.VMReqInfo, publicIPIId irs.IID) (irs.IID, error)
VM 생성 시 VNic 자동 생성 (nested flow 적용)
func GetCallLogScheme ¶ added in v0.2.1
func GetCallLogScheme(region idrv.RegionInfo, resourceType call.RES_TYPE, resourceName string, apiName string) call.CLOUDLOGSCHEMA
func GetNetworksResourceIdByName ¶ added in v0.5.9
func GetNetworksResourceIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, resourceKind AzureResourceKind, name string) string
func GetRawKey ¶ added in v0.4.15
func GetRawKey(keypairIId irs.IID, resourceGroup string, client *compute.SSHPublicKeysClient, ctx context.Context) (compute.SSHPublicKeyResource, error)
func GetRawVM ¶ added in v0.5.3
func GetRawVM(vmIID irs.IID, resourceGroup string, client *compute.VirtualMachinesClient, ctx context.Context) (compute.VirtualMachine, error)
func GetResourceNameById ¶ added in v0.5.9
func GetSecGroupIdByName ¶
func GetSecGroupIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, secGroupName string) string
func GetSshKeyIdByName ¶ added in v0.4.15
func GetSshKeyIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, keyName string) string
func GetSshKeyNameById ¶ added in v0.4.15
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 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(imageIID irs.IID) (bool, error)
type AzureKeyPairHandler ¶
type AzureKeyPairHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context Client *compute.SSHPublicKeysClient }
func (*AzureKeyPairHandler) CreateKey ¶
func (keyPairHandler *AzureKeyPairHandler) CreateKey(keyPairReqInfo irs.KeyPairReqInfo) (irs.KeyPairInfo, error)
func (*AzureKeyPairHandler) DeleteKey ¶
func (keyPairHandler *AzureKeyPairHandler) DeleteKey(keyIID irs.IID) (bool, error)
func (*AzureKeyPairHandler) GetKey ¶
func (keyPairHandler *AzureKeyPairHandler) GetKey(keyIID irs.IID) (irs.KeyPairInfo, error)
func (*AzureKeyPairHandler) ListKey ¶
func (keyPairHandler *AzureKeyPairHandler) ListKey() ([]*irs.KeyPairInfo, error)
type AzureNLBHandler ¶ added in v0.5.9
type AzureNLBHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context NLBClient *network.LoadBalancersClient NLBBackendAddressPoolsClient *network.LoadBalancerBackendAddressPoolsClient VNicClient *network.InterfacesClient PublicIPClient *network.PublicIPAddressesClient VMClient *compute.VirtualMachinesClient SubnetClient *network.SubnetsClient IPConfigClient *network.InterfaceIPConfigurationsClient NLBLoadBalancingRulesClient *network.LoadBalancerLoadBalancingRulesClient MetricClient *insights.MetricsClient }
func (*AzureNLBHandler) AddVMs ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) AddVMs(nlbIID irs.IID, vmIIDs *[]irs.IID) (irs.VMGroupInfo, error)
func (*AzureNLBHandler) ChangeHealthCheckerInfo ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) ChangeHealthCheckerInfo(nlbIID irs.IID, healthChecker irs.HealthCheckerInfo) (irs.HealthCheckerInfo, error)
func (*AzureNLBHandler) ChangeListener ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) ChangeListener(nlbIID irs.IID, listener irs.ListenerInfo) (irs.ListenerInfo, error)
------ Frontend Control ------ Backend Control
func (*AzureNLBHandler) ChangeVMGroupInfo ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) ChangeVMGroupInfo(nlbIID irs.IID, vmGroup irs.VMGroupInfo) (irs.VMGroupInfo, error)
func (*AzureNLBHandler) CreateNLB ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) CreateNLB(nlbReqInfo irs.NLBInfo) (createNLB irs.NLBInfo, createError error)
------ NLB Management
func (*AzureNLBHandler) DeleteNLB ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) DeleteNLB(nlbIID irs.IID) (bool, error)
func (*AzureNLBHandler) GetVMGroupHealthInfo ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) GetVMGroupHealthInfo(nlbIID irs.IID) (irs.HealthInfo, error)
func (*AzureNLBHandler) ListNLB ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) ListNLB() ([]*irs.NLBInfo, error)
func (*AzureNLBHandler) NLBCleaner ¶ added in v0.5.9
func (nlbHandler *AzureNLBHandler) NLBCleaner(nlbIID irs.IID) (bool, error)
type AzureResourceCategory ¶ added in v0.5.9
type AzureResourceCategory string
type AzureResourceKind ¶ added in v0.5.9
type AzureResourceKind string
type AzureSecurityHandler ¶
type AzureSecurityHandler struct { Region idrv.RegionInfo Ctx context.Context Client *network.SecurityGroupsClient RuleClient *network.SecurityRulesClient }
func (*AzureSecurityHandler) AddRules ¶ added in v0.5.4
func (securityHandler *AzureSecurityHandler) AddRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (irs.SecurityInfo, error)
func (*AzureSecurityHandler) CreateSecurity ¶
func (securityHandler *AzureSecurityHandler) CreateSecurity(securityReqInfo irs.SecurityReqInfo) (irs.SecurityInfo, error)
func (*AzureSecurityHandler) DeleteSecurity ¶
func (securityHandler *AzureSecurityHandler) DeleteSecurity(securityIID irs.IID) (bool, error)
func (*AzureSecurityHandler) GetSecurity ¶
func (securityHandler *AzureSecurityHandler) GetSecurity(securityIID irs.IID) (irs.SecurityInfo, error)
func (*AzureSecurityHandler) ListSecurity ¶
func (securityHandler *AzureSecurityHandler) ListSecurity() ([]*irs.SecurityInfo, error)
func (*AzureSecurityHandler) RemoveRules ¶ added in v0.5.4
func (securityHandler *AzureSecurityHandler) RemoveRules(sgIID irs.IID, securityRules *[]irs.SecurityRuleInfo) (bool, 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 SshKeyClient *compute.SSHPublicKeysClient }
func (*AzureVMHandler) GetVMStatus ¶
func (*AzureVMHandler) ListVMStatus ¶
func (vmHandler *AzureVMHandler) ListVMStatus() ([]*irs.VMStatusInfo, error)
func (*AzureVMHandler) TerminateVM ¶
type AzureVPCHandler ¶ added in v0.1.3
type AzureVPCHandler struct { Region idrv.RegionInfo Ctx context.Context Client *network.VirtualNetworksClient SubnetClient *network.SubnetsClient }
func (*AzureVPCHandler) AddSubnet ¶ added in v0.2.1
func (vpcHandler *AzureVPCHandler) AddSubnet(vpcIID irs.IID, subnetInfo irs.SubnetInfo) (irs.VPCInfo, error)
func (*AzureVPCHandler) CreateVPC ¶ added in v0.1.3
func (vpcHandler *AzureVPCHandler) CreateVPC(vpcReqInfo irs.VPCReqInfo) (irs.VPCInfo, error)
func (*AzureVPCHandler) DeleteVPC ¶ added in v0.1.3
func (vpcHandler *AzureVPCHandler) DeleteVPC(vpcIID irs.IID) (bool, error)
func (*AzureVPCHandler) ListVPC ¶ added in v0.1.3
func (vpcHandler *AzureVPCHandler) ListVPC() ([]*irs.VPCInfo, error)
func (*AzureVPCHandler) RemoveSubnet ¶ added in v0.2.1
type AzureVmSpecHandler ¶
type AzureVmSpecHandler struct { Region idrv.RegionInfo Ctx context.Context Client *compute.VirtualMachineSizesClient }
func (*AzureVmSpecHandler) GetOrgVMSpec ¶
func (vmSpecHandler *AzureVmSpecHandler) GetOrgVMSpec(Name string) (string, error)
func (*AzureVmSpecHandler) GetVMSpec ¶
func (vmSpecHandler *AzureVmSpecHandler) GetVMSpec(Name string) (irs.VMSpecInfo, error)
func (*AzureVmSpecHandler) ListOrgVMSpec ¶
func (vmSpecHandler *AzureVmSpecHandler) ListOrgVMSpec() (string, error)
func (*AzureVmSpecHandler) ListVMSpec ¶
func (vmSpecHandler *AzureVmSpecHandler) ListVMSpec() ([]*irs.VMSpecInfo, error)
type BackendAddressesIPRefType ¶ added in v0.5.9
type BackendAddressesIPRefType string
type CleanVMClientRequestResource ¶ added in v0.5.3
type CleanVMClientSet ¶ added in v0.5.3
type VMCleanRelatedResource ¶ added in v0.5.3
type VMCleanRelatedResource struct { CleanTargetResource CleanVMClientRequestResource RequiredSet CleanVMClientSet }
Click to show internal directories.
Click to hide internal directories.