Documentation ¶
Index ¶
- Constants
- func GetAzureCloudProviderConfig(cloudConfig *CloudConfiguration) string
- func GetCustomData(customData map[string]string, customRunData map[string]string) string
- type CloudConfiguration
- func (c *CloudConfiguration) CreateDefaultNetworkSecurityGroup(ctx context.Context, nsgName string) (network.SecurityGroup, error)
- func (c *CloudConfiguration) CreateInternalLoadBalancer(ctx context.Context, vnetName, subnetName, lbName string) error
- func (c *CloudConfiguration) CreateLoadBalancer(ctx context.Context, lbName, pipName string) error
- func (c *CloudConfiguration) CreateNIC(ctx context.Context, vnetName, subnetName, staticIPAddress, nicName string) (nic network.Interface, err error)
- func (c *CloudConfiguration) CreateNICWithLoadBalancer(ctx context.Context, ...) (nic network.Interface, err error)
- func (c *CloudConfiguration) CreateNetworkSecurityGroup(ctx context.Context, nsgName string) (network.SecurityGroup, error)
- func (c *CloudConfiguration) CreateOrUpdateResourceGroup(ctx context.Context) error
- func (c *CloudConfiguration) CreatePublicIP(ctx context.Context, ipName string) (network.PublicIPAddress, error)
- func (c *CloudConfiguration) CreateRouteTables(ctx context.Context, routeTableName string) (network.RouteTable, error)
- func (c *CloudConfiguration) CreateVMSS(ctx context.Context, vmssName, subnetID string, loadbalancerIDs []string, ...) error
- func (c *CloudConfiguration) CreateVirtualNetworkAndSubnets(ctx context.Context, vnetName string) error
- func (c *CloudConfiguration) DeleteNetworkSecurityGroup(ctx context.Context, nsgName string) error
- func (c *CloudConfiguration) DeleteResourceGroup(ctx context.Context) error
- func (c *CloudConfiguration) DeleteRouteTables(ctx context.Context, routeTableName string) error
- func (c *CloudConfiguration) DeleteVMSS(ctx context.Context, vmssName string) error
- func (c *CloudConfiguration) GetDeploymentsClient() (resources.DeploymentsClient, error)
- func (c *CloudConfiguration) GetDisksClient() (compute.DisksClient, error)
- func (c *CloudConfiguration) GetGroupsClient() (resources.GroupsClient, error)
- func (c *CloudConfiguration) GetIPClient() (network.PublicIPAddressesClient, error)
- func (c *CloudConfiguration) GetLBClient() (network.LoadBalancersClient, error)
- func (c *CloudConfiguration) GetLoadBalancer(ctx context.Context, lbName string) (network.LoadBalancer, error)
- func (c *CloudConfiguration) GetNICClient() (network.InterfacesClient, error)
- func (c *CloudConfiguration) GetNSGClient() (network.SecurityGroupsClient, error)
- func (c *CloudConfiguration) GetPublicIP(ctx context.Context, ipName string) (network.PublicIPAddress, error)
- func (c *CloudConfiguration) GetResourcesClient() (resources.Client, error)
- func (c *CloudConfiguration) GetRouteTablesClient() (network.RouteTablesClient, error)
- func (c *CloudConfiguration) GetSubnet(ctx context.Context, vnetName, subnetName string) (network.Subnet, error)
- func (c *CloudConfiguration) GetSubnetsClient() (network.SubnetsClient, error)
- func (c *CloudConfiguration) GetVMSS(ctx context.Context, vmssName string) (compute.VirtualMachineScaleSet, error)
- func (c *CloudConfiguration) GetVMSSClient() (compute.VirtualMachineScaleSetsClient, error)
- func (c *CloudConfiguration) GetVMSSExtensionsClient() (compute.VirtualMachineScaleSetExtensionsClient, error)
- func (c *CloudConfiguration) GetVMSSVMsClient() (compute.VirtualMachineScaleSetVMsClient, error)
- func (c *CloudConfiguration) GetVNETClient() (network.VirtualNetworksClient, error)
- func (c *CloudConfiguration) GetVNETPeeringsClient() (network.VirtualNetworkPeeringsClient, error)
- func (c *CloudConfiguration) IsValid() bool
- func (c *CloudConfiguration) ScaleVMSS(ctx context.Context, vmssName string, customData string, count int) error
Constants ¶
const (
AzurePublicCloudName = "AzurePublicCloud"
)
Variables ¶
This section is empty.
Functions ¶
func GetAzureCloudProviderConfig ¶
func GetAzureCloudProviderConfig(cloudConfig *CloudConfiguration) string
Types ¶
type CloudConfiguration ¶
type CloudConfiguration struct { CloudName string SubscriptionID string ClientID string ClientSecret string TenantID string GroupName string GroupLocation string UserAgent string }
func (*CloudConfiguration) CreateDefaultNetworkSecurityGroup ¶
func (c *CloudConfiguration) CreateDefaultNetworkSecurityGroup(ctx context.Context, nsgName string) (network.SecurityGroup, error)
CreateDefaultNetworkSecurityGroup creates a new network security group, without rules (rules can be set later)
func (*CloudConfiguration) CreateInternalLoadBalancer ¶
func (c *CloudConfiguration) CreateInternalLoadBalancer(ctx context.Context, vnetName, subnetName, lbName string) error
CreateLoadBalancer creates a load balancer with 2 inbound NAT rules.
func (*CloudConfiguration) CreateLoadBalancer ¶
func (c *CloudConfiguration) CreateLoadBalancer(ctx context.Context, lbName, pipName string) error
CreateLoadBalancer creates a load balancer with 2 inbound NAT rules.
func (*CloudConfiguration) CreateNICWithLoadBalancer ¶
func (*CloudConfiguration) CreateNetworkSecurityGroup ¶
func (c *CloudConfiguration) CreateNetworkSecurityGroup(ctx context.Context, nsgName string) (network.SecurityGroup, error)
CreateNetworkSecurityGroup creates a new network security group with rules set for allowing SSH and HTTPS use
func (*CloudConfiguration) CreateOrUpdateResourceGroup ¶
func (c *CloudConfiguration) CreateOrUpdateResourceGroup(ctx context.Context) error
func (*CloudConfiguration) CreatePublicIP ¶
func (c *CloudConfiguration) CreatePublicIP(ctx context.Context, ipName string) (network.PublicIPAddress, error)
func (*CloudConfiguration) CreateRouteTables ¶
func (c *CloudConfiguration) CreateRouteTables(ctx context.Context, routeTableName string) (network.RouteTable, error)
CreateRouteTables creates a new empty route tables
func (*CloudConfiguration) CreateVMSS ¶
func (c *CloudConfiguration) CreateVMSS(ctx context.Context, vmssName, subnetID string, loadbalancerIDs []string, customData, vmSKUType string, count int) error
CreateVMSS creates a new virtual machine scale set with the specified name using the specified vnet and subnet. Username, password, and sshPublicKeyPath determine logon credentials.
func (*CloudConfiguration) CreateVirtualNetworkAndSubnets ¶
func (c *CloudConfiguration) CreateVirtualNetworkAndSubnets(ctx context.Context, vnetName string) error
func (*CloudConfiguration) DeleteNetworkSecurityGroup ¶
func (c *CloudConfiguration) DeleteNetworkSecurityGroup(ctx context.Context, nsgName string) error
DeleteNetworkSecurityGroup deletes an existing network security group
func (*CloudConfiguration) DeleteResourceGroup ¶
func (c *CloudConfiguration) DeleteResourceGroup(ctx context.Context) error
func (*CloudConfiguration) DeleteRouteTables ¶
func (c *CloudConfiguration) DeleteRouteTables(ctx context.Context, routeTableName string) error
DeleteRouteTables deletes an existing routetable
func (*CloudConfiguration) DeleteVMSS ¶
func (c *CloudConfiguration) DeleteVMSS(ctx context.Context, vmssName string) error
DeleteVMSS deallocates the selected VMSS
func (*CloudConfiguration) GetDeploymentsClient ¶
func (c *CloudConfiguration) GetDeploymentsClient() (resources.DeploymentsClient, error)
func (*CloudConfiguration) GetDisksClient ¶
func (c *CloudConfiguration) GetDisksClient() (compute.DisksClient, error)
func (*CloudConfiguration) GetGroupsClient ¶
func (c *CloudConfiguration) GetGroupsClient() (resources.GroupsClient, error)
func (*CloudConfiguration) GetIPClient ¶
func (c *CloudConfiguration) GetIPClient() (network.PublicIPAddressesClient, error)
func (*CloudConfiguration) GetLBClient ¶
func (c *CloudConfiguration) GetLBClient() (network.LoadBalancersClient, error)
func (*CloudConfiguration) GetLoadBalancer ¶
func (c *CloudConfiguration) GetLoadBalancer(ctx context.Context, lbName string) (network.LoadBalancer, error)
GetLoadBalancer gets info on a loadbalancer
func (*CloudConfiguration) GetNICClient ¶
func (c *CloudConfiguration) GetNICClient() (network.InterfacesClient, error)
func (*CloudConfiguration) GetNSGClient ¶
func (c *CloudConfiguration) GetNSGClient() (network.SecurityGroupsClient, error)
func (*CloudConfiguration) GetPublicIP ¶
func (c *CloudConfiguration) GetPublicIP(ctx context.Context, ipName string) (network.PublicIPAddress, error)
GetPublicIP returns an existing public IP
func (*CloudConfiguration) GetResourcesClient ¶
func (c *CloudConfiguration) GetResourcesClient() (resources.Client, error)
func (*CloudConfiguration) GetRouteTablesClient ¶
func (c *CloudConfiguration) GetRouteTablesClient() (network.RouteTablesClient, error)
func (*CloudConfiguration) GetSubnet ¶
func (c *CloudConfiguration) GetSubnet(ctx context.Context, vnetName, subnetName string) (network.Subnet, error)
GetSubnet returns an existing subnet from a virtual network
func (*CloudConfiguration) GetSubnetsClient ¶
func (c *CloudConfiguration) GetSubnetsClient() (network.SubnetsClient, error)
func (*CloudConfiguration) GetVMSS ¶
func (c *CloudConfiguration) GetVMSS(ctx context.Context, vmssName string) (compute.VirtualMachineScaleSet, error)
GetVMSS gets the specified VMSS info
func (*CloudConfiguration) GetVMSSClient ¶
func (c *CloudConfiguration) GetVMSSClient() (compute.VirtualMachineScaleSetsClient, error)
func (*CloudConfiguration) GetVMSSExtensionsClient ¶
func (c *CloudConfiguration) GetVMSSExtensionsClient() (compute.VirtualMachineScaleSetExtensionsClient, error)
func (*CloudConfiguration) GetVMSSVMsClient ¶
func (c *CloudConfiguration) GetVMSSVMsClient() (compute.VirtualMachineScaleSetVMsClient, error)
func (*CloudConfiguration) GetVNETClient ¶
func (c *CloudConfiguration) GetVNETClient() (network.VirtualNetworksClient, error)
func (*CloudConfiguration) GetVNETPeeringsClient ¶
func (c *CloudConfiguration) GetVNETPeeringsClient() (network.VirtualNetworkPeeringsClient, error)
func (*CloudConfiguration) IsValid ¶
func (c *CloudConfiguration) IsValid() bool