Documentation ¶
Index ¶
- Constants
- func Attach(diskIID irs.IID, ownerVM irs.IID, credentialInfo idrv.CredentialInfo, ...) (compute.Disk, error)
- func AttachList(diskIIDList []irs.IID, ownerVM irs.IID, credentialInfo idrv.CredentialInfo, ...) (compute.VirtualMachine, error)
- func CheckAttachStatus(disk compute.Disk) error
- func CheckExistDisk(diskIID irs.IID, resourceGroup string, client *compute.DisksClient, ...) (bool, error)
- func CheckExistKey(keypairIId irs.IID, resourceGroup string, client *compute.SSHPublicKeysClient, ...) (bool, error)
- func CheckExistMyImage(myImageIID irs.IID, client *compute.ImagesClient, ctx context.Context) (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 ConvertDiskIID(diskIID irs.IID, credentialInfo idrv.CredentialInfo, ...) (irs.IID, error)
- func ConvertMyImageIID(myImageIID irs.IID, credentialInfo idrv.CredentialInfo, ...) (irs.IID, error)
- 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 GetClusterIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, ...) string
- func GetClusterNameById(clusterId string) (string, error)
- func GetDiskInfoType(diskType compute.DiskStorageAccountTypes) string
- func GetDiskTypeInitType(diskType string) (compute.DiskStorageAccountTypes, error)
- func GetNetworksResourceIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, ...) string
- func GetRawDisk(diskIID irs.IID, resourceGroup string, client *compute.DisksClient, ...) (compute.Disk, error)
- 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 GetVMDiskInfoType(diskType compute.StorageAccountTypes) string
- func GetVMDiskTypeInitType(diskType string) compute.StorageAccountTypes
- func GetVMNameById(vmId string) (string, error)
- func GetVPCNameById(vpcId string) (string, error)
- func InitLog()
- func LoggingError(hiscallInfo call.CLOUDLOGSCHEMA, err error)
- func LoggingInfo(hiscallInfo call.CLOUDLOGSCHEMA, start time.Time)
- type AzureClusterHandler
- func (ac *AzureClusterHandler) AddNodeGroup(clusterIID irs.IID, nodeGroupReqInfo irs.NodeGroupInfo) (nodeInfo irs.NodeGroupInfo, addNodeErr error)
- func (ac *AzureClusterHandler) ChangeNodeGroupScaling(clusterIID irs.IID, nodeGroupIID irs.IID, DesiredNodeSize int, MinNodeSize int, ...) (nodeGroupInfo irs.NodeGroupInfo, changeErr error)
- func (ac *AzureClusterHandler) CreateCluster(clusterReqInfo irs.ClusterInfo) (info irs.ClusterInfo, createErr error)
- func (ac *AzureClusterHandler) DeleteCluster(clusterIID irs.IID) (deleteResult bool, delErr error)
- func (ac *AzureClusterHandler) GetCluster(clusterIID irs.IID) (info irs.ClusterInfo, getErr error)
- func (ac *AzureClusterHandler) ListCluster() (listInfo []*irs.ClusterInfo, getErr error)
- func (ac *AzureClusterHandler) RemoveNodeGroup(clusterIID irs.IID, nodeGroupIID irs.IID) (result bool, delErr error)
- func (ac *AzureClusterHandler) SetNodeGroupAutoScaling(clusterIID irs.IID, nodeGroupIID irs.IID, on bool) (result bool, setErr error)
- func (ac *AzureClusterHandler) UpgradeCluster(clusterIID irs.IID, newVersion string) (info irs.ClusterInfo, upgradeErr error)
- type AzureDiskHandler
- func (diskHandler *AzureDiskHandler) AttachDisk(diskIID irs.IID, ownerVM irs.IID) (irs.DiskInfo, error)
- func (diskHandler *AzureDiskHandler) ChangeDiskSize(diskIID irs.IID, size string) (bool, error)
- func (diskHandler *AzureDiskHandler) CreateDisk(DiskReqInfo irs.DiskInfo) (diskInfo irs.DiskInfo, createErr error)
- func (diskHandler *AzureDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
- func (diskHandler *AzureDiskHandler) DetachDisk(diskIID irs.IID, ownerVM irs.IID) (bool, error)
- func (diskHandler *AzureDiskHandler) GetDisk(diskIID irs.IID) (irs.DiskInfo, error)
- func (diskHandler *AzureDiskHandler) ListDisk() ([]*irs.DiskInfo, error)
- type AzureImageHandler
- func (imageHandler *AzureImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
- 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 AzureMyImageHandler
- func (myImageHandler *AzureMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *AzureMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
- func (myImageHandler *AzureMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
- func (myImageHandler *AzureMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
- func (myImageHandler *AzureMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (myImageInfo irs.MyImageInfo, snapshotErr 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 AzureOSTYPE
- 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 ClusterInfoWithError
- type NLBScope
- type NLBType
- type NodePoolPair
- type ServerKubeConfig
- type VMCleanRelatedResource
Constants ¶
View Source
const ( OwnerClusterKey = "ownerCluster" ScaleSetOwnerKey = "aks-managed-poolName" ClusterNodeSSHKeyKey = "sshkey" ClusterAdminKey = "clusterAdmin" )
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" AzureContainerServiceCategory AzureResourceCategory = "Microsoft.ContainerService" AzureVirtualNetworks AzureResourceKind = "virtualNetworks" AzureSubnet AzureResourceKind = "subnets" AzureSSHPublicKeys AzureResourceKind = "sshPublicKeys" AzureSecurityGroups AzureResourceKind = "networkSecurityGroups" AzurePublicIPAddresses AzureResourceKind = "publicIPAddresses" AzureFrontendIPConfigurations AzureResourceKind = "frontendIPConfigurations" AzureLoadBalancers AzureResourceKind = "loadBalancers" AzureNetworkInterfaces AzureResourceKind = "networkInterfaces" AzureContainerService AzureResourceKind = "managedClusters" )
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" StandardHDD = "StandardHDD" WindowBaseUser = "Administrator" WindowBaseGroup = "Administrators" WindowTempUser = CBVMUser UnknownOS AzureOSTYPE = "UnknownOS" WindowOS AzureOSTYPE = "WindowOS" LinuxOS AzureOSTYPE = "LinuxOS" )
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 Attach ¶ added in v0.6.12
func Attach(diskIID irs.IID, ownerVM irs.IID, credentialInfo idrv.CredentialInfo, region idrv.RegionInfo, ctx context.Context, vmClient *compute.VirtualMachinesClient, diskClient *compute.DisksClient) (compute.Disk, error)
func AttachList ¶ added in v0.6.12
func AttachList(diskIIDList []irs.IID, ownerVM irs.IID, credentialInfo idrv.CredentialInfo, region idrv.RegionInfo, ctx context.Context, vmClient *compute.VirtualMachinesClient, diskClient *compute.DisksClient) (compute.VirtualMachine, error)
func CheckAttachStatus ¶ added in v0.6.12
func CheckExistDisk ¶ added in v0.6.7
func CheckExistKey ¶ added in v0.4.15
func CheckExistMyImage ¶ added in v0.6.9
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 ConvertDiskIID ¶ added in v0.6.7
func ConvertDiskIID(diskIID irs.IID, credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo) (irs.IID, error)
func ConvertMyImageIID ¶ added in v0.6.9
func ConvertMyImageIID(myImageIID irs.IID, credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo) (irs.IID, error)
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 GetClusterIdByName ¶ added in v0.6.15
func GetClusterIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, clusterName string) string
func GetClusterNameById ¶ added in v0.6.15
func GetDiskInfoType ¶ added in v0.6.7
func GetDiskInfoType(diskType compute.DiskStorageAccountTypes) string
DiskType
func GetDiskTypeInitType ¶ added in v0.6.7
func GetDiskTypeInitType(diskType string) (compute.DiskStorageAccountTypes, error)
DiskType
func GetNetworksResourceIdByName ¶ added in v0.5.9
func GetNetworksResourceIdByName(credentialInfo idrv.CredentialInfo, regionInfo idrv.RegionInfo, resourceKind AzureResourceKind, name string) string
func GetRawDisk ¶ added in v0.6.7
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 GetVMDiskInfoType ¶ added in v0.6.7
func GetVMDiskInfoType(diskType compute.StorageAccountTypes) string
VMBootDiskType
func GetVMDiskTypeInitType ¶ added in v0.6.7
func GetVMDiskTypeInitType(diskType string) compute.StorageAccountTypes
VMBootDiskType
func GetVMNameById ¶ added in v0.6.7
func GetVPCNameById ¶ added in v0.6.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 AzureClusterHandler ¶ added in v0.6.15
type AzureClusterHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context ManagedClustersClient *containerservice.ManagedClustersClient VirtualNetworksClient *network.VirtualNetworksClient AgentPoolsClient *containerservice.AgentPoolsClient VirtualMachineScaleSetsClient *compute.VirtualMachineScaleSetsClient VirtualMachineScaleSetVMsClient *compute.VirtualMachineScaleSetVMsClient SubnetClient *network.SubnetsClient SecurityGroupsClient *network.SecurityGroupsClient SecurityRulesClient *network.SecurityRulesClient VirtualMachineSizesClient *compute.VirtualMachineSizesClient SSHPublicKeysClient *compute.SSHPublicKeysClient }
func (*AzureClusterHandler) AddNodeGroup ¶ added in v0.6.15
func (ac *AzureClusterHandler) AddNodeGroup(clusterIID irs.IID, nodeGroupReqInfo irs.NodeGroupInfo) (nodeInfo irs.NodeGroupInfo, addNodeErr error)
func (*AzureClusterHandler) ChangeNodeGroupScaling ¶ added in v0.6.15
func (*AzureClusterHandler) CreateCluster ¶ added in v0.6.15
func (ac *AzureClusterHandler) CreateCluster(clusterReqInfo irs.ClusterInfo) (info irs.ClusterInfo, createErr error)
func (*AzureClusterHandler) DeleteCluster ¶ added in v0.6.15
func (ac *AzureClusterHandler) DeleteCluster(clusterIID irs.IID) (deleteResult bool, delErr error)
func (*AzureClusterHandler) GetCluster ¶ added in v0.6.15
func (ac *AzureClusterHandler) GetCluster(clusterIID irs.IID) (info irs.ClusterInfo, getErr error)
func (*AzureClusterHandler) ListCluster ¶ added in v0.6.15
func (ac *AzureClusterHandler) ListCluster() (listInfo []*irs.ClusterInfo, getErr error)
func (*AzureClusterHandler) RemoveNodeGroup ¶ added in v0.6.15
func (*AzureClusterHandler) SetNodeGroupAutoScaling ¶ added in v0.6.15
func (*AzureClusterHandler) UpgradeCluster ¶ added in v0.6.15
func (ac *AzureClusterHandler) UpgradeCluster(clusterIID irs.IID, newVersion string) (info irs.ClusterInfo, upgradeErr error)
------ Upgrade K8S
type AzureDiskHandler ¶ added in v0.6.7
type AzureDiskHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context VMClient *compute.VirtualMachinesClient DiskClient *compute.DisksClient }
func (*AzureDiskHandler) AttachDisk ¶ added in v0.6.7
func (*AzureDiskHandler) ChangeDiskSize ¶ added in v0.6.7
func (*AzureDiskHandler) CreateDisk ¶ added in v0.6.7
func (*AzureDiskHandler) DeleteDisk ¶ added in v0.6.7
func (diskHandler *AzureDiskHandler) DeleteDisk(diskIID irs.IID) (bool, error)
func (*AzureDiskHandler) DetachDisk ¶ added in v0.6.7
type AzureImageHandler ¶
type AzureImageHandler struct { Region idrv.RegionInfo Ctx context.Context Client *compute.ImagesClient VMImageClient *compute.VirtualMachineImagesClient }
func (*AzureImageHandler) CheckWindowsImage ¶ added in v0.6.15
func (imageHandler *AzureImageHandler) CheckWindowsImage(imageIID irs.IID) (bool, error)
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 AzureMyImageHandler ¶ added in v0.6.9
type AzureMyImageHandler struct { CredentialInfo idrv.CredentialInfo Region idrv.RegionInfo Ctx context.Context VMClient *compute.VirtualMachinesClient ImageClient *compute.ImagesClient VirtualMachineRunCommandsClient *compute.VirtualMachineRunCommandsClient }
func (*AzureMyImageHandler) CheckWindowsImage ¶ added in v0.6.15
func (myImageHandler *AzureMyImageHandler) CheckWindowsImage(myImageIID irs.IID) (bool, error)
func (*AzureMyImageHandler) DeleteMyImage ¶ added in v0.6.9
func (myImageHandler *AzureMyImageHandler) DeleteMyImage(myImageIID irs.IID) (bool, error)
func (*AzureMyImageHandler) GetMyImage ¶ added in v0.6.9
func (myImageHandler *AzureMyImageHandler) GetMyImage(myImageIID irs.IID) (irs.MyImageInfo, error)
func (*AzureMyImageHandler) ListMyImage ¶ added in v0.6.9
func (myImageHandler *AzureMyImageHandler) ListMyImage() ([]*irs.MyImageInfo, error)
func (*AzureMyImageHandler) SnapshotVM ¶ added in v0.6.9
func (myImageHandler *AzureMyImageHandler) SnapshotVM(snapshotReqInfo irs.MyImageInfo) (myImageInfo irs.MyImageInfo, snapshotErr 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 AzureOSTYPE ¶ added in v0.6.15
type AzureOSTYPE string
func CheckVMReqInfoOSType ¶ added in v0.6.15
func CheckVMReqInfoOSType(vmReqInfo irs.VMReqInfo, imageClient *compute.ImagesClient, credentialInfo idrv.CredentialInfo, region idrv.RegionInfo, ctx context.Context) (AzureOSTYPE, 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 ImageClient *compute.ImagesClient VirtualMachineRunCommandsClient *compute.VirtualMachineRunCommandsClient }
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 ClusterInfoWithError ¶ added in v0.6.15
type ClusterInfoWithError struct { ClusterInfo irs.ClusterInfo // contains filtered or unexported fields }
type NodePoolPair ¶ added in v0.6.15
type NodePoolPair struct { AgentPool containerservice.AgentPool // contains filtered or unexported fields }
type ServerKubeConfig ¶ added in v0.6.15
type ServerKubeConfig struct { Clusters []struct { Cluster struct { Server string `yaml:"server"` CertificateAuthorityData string `yaml:"certificate-authority-data"` } `yaml:"cluster"` Name string `yaml:"name"` } `yaml:"clusters"` Context []struct { Context struct { Cluster string `yaml:"cluster"` User string `yaml:"user"` } `yaml:"context"` Name string `yaml:"name"` } `yaml:"contexts"` CurrentContext string `yaml:"current-context"` Kind string `yaml:"kind"` Users []struct { User struct { ClientCertificateData string `yaml:"client-certificate-data"` ClientKeyData string `yaml:"client-key-data"` Token string `yaml:"token"` } Name string `yaml:"name"` } `yaml:"users"` }
type VMCleanRelatedResource ¶ added in v0.5.3
type VMCleanRelatedResource struct { CleanTargetResource CleanVMClientRequestResource RequiredSet CleanVMClientSet }
Click to show internal directories.
Click to hide internal directories.