Documentation ¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT license.
Index ¶
- Constants
- type AzureManager
- func (az *AzureManager) CreateOrUpdateLB(ctx context.Context, lb network.LoadBalancer) (*network.LoadBalancer, error)
- func (az *AzureManager) CreateOrUpdatePublicIPPrefix(ctx context.Context, resourceGroup, prefixName string, ...) (*network.PublicIPPrefix, error)
- func (az *AzureManager) CreateOrUpdateVMSS(ctx context.Context, resourceGroup, vmssName string, ...) (*compute.VirtualMachineScaleSet, error)
- func (az *AzureManager) DeleteLB(ctx context.Context) error
- func (az *AzureManager) DeletePublicIPPrefix(ctx context.Context, resourceGroup, prefixName string) error
- func (az *AzureManager) GetLB(ctx context.Context) (*network.LoadBalancer, error)
- func (az *AzureManager) GetLBBackendAddressPoolID(name string) *string
- func (az *AzureManager) GetLBFrontendIPConfigurationID(name string) *string
- func (az *AzureManager) GetLBProbeID(name string) *string
- func (az *AzureManager) GetPublicIPPrefix(ctx context.Context, resourceGroup, prefixName string) (*network.PublicIPPrefix, error)
- func (az *AzureManager) GetSubnet(ctx context.Context) (*network.Subnet, error)
- func (az *AzureManager) GetVMSS(ctx context.Context, resourceGroup, vmssName string) (*compute.VirtualMachineScaleSet, error)
- func (az *AzureManager) GetVMSSInstance(ctx context.Context, resourceGroup, vmssName, instanceID string) (*compute.VirtualMachineScaleSetVM, error)
- func (az *AzureManager) GetVMSSInterface(ctx context.Context, resourceGroup, vmssName, instanceID, interfaceName string) (*network.Interface, error)
- func (az *AzureManager) ListVMSS(ctx context.Context) ([]*compute.VirtualMachineScaleSet, error)
- func (az *AzureManager) ListVMSSInstances(ctx context.Context, resourceGroup, vmssName string) ([]*compute.VirtualMachineScaleSetVM, error)
- func (az *AzureManager) LoadBalancerName() string
- func (az *AzureManager) Location() string
- func (az *AzureManager) SubscriptionID() string
- func (az *AzureManager) UpdateVMSSInstance(ctx context.Context, resourceGroup, vmssName, instanceID string, ...) (*compute.VirtualMachineScaleSetVM, error)
Constants ¶
View Source
const ( DefaultUserAgent = "kube-egress-gateway-controller" // LB frontendIPConfiguration ID template LBFrontendIPConfigTemplate = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/loadBalancers/%s/frontendIPConfigurations/%s" // LB backendAddressPool ID template LBBackendPoolIDTemplate = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/loadBalancers/%s/backendAddressPools/%s" // LB probe ID template LBProbeIDTemplate = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Network/loadBalancers/%s/probes/%s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureManager ¶
type AzureManager struct { *config.CloudConfig LoadBalancerClient loadbalancerclient.Interface VmssClient virtualmachinescalesetclient.Interface VmssVMClient virtualmachinescalesetvmclient.Interface PublicIPPrefixClient publicipprefixclient.Interface InterfaceClient interfaceclient.Interface SubnetClient subnetclient.Interface }
func CreateAzureManager ¶
func CreateAzureManager(cloud *config.CloudConfig, factory azclient.ClientFactory) (*AzureManager, error)
func (*AzureManager) CreateOrUpdateLB ¶
func (az *AzureManager) CreateOrUpdateLB(ctx context.Context, lb network.LoadBalancer) (*network.LoadBalancer, error)
func (*AzureManager) CreateOrUpdatePublicIPPrefix ¶
func (az *AzureManager) CreateOrUpdatePublicIPPrefix(ctx context.Context, resourceGroup, prefixName string, ipPrefix network.PublicIPPrefix) (*network.PublicIPPrefix, error)
func (*AzureManager) CreateOrUpdateVMSS ¶
func (az *AzureManager) CreateOrUpdateVMSS(ctx context.Context, resourceGroup, vmssName string, vmss compute.VirtualMachineScaleSet) (*compute.VirtualMachineScaleSet, error)
func (*AzureManager) DeletePublicIPPrefix ¶
func (az *AzureManager) DeletePublicIPPrefix(ctx context.Context, resourceGroup, prefixName string) error
func (*AzureManager) GetLB ¶
func (az *AzureManager) GetLB(ctx context.Context) (*network.LoadBalancer, error)
func (*AzureManager) GetLBBackendAddressPoolID ¶
func (az *AzureManager) GetLBBackendAddressPoolID(name string) *string
func (*AzureManager) GetLBFrontendIPConfigurationID ¶
func (az *AzureManager) GetLBFrontendIPConfigurationID(name string) *string
func (*AzureManager) GetLBProbeID ¶
func (az *AzureManager) GetLBProbeID(name string) *string
func (*AzureManager) GetPublicIPPrefix ¶
func (az *AzureManager) GetPublicIPPrefix(ctx context.Context, resourceGroup, prefixName string) (*network.PublicIPPrefix, error)
func (*AzureManager) GetVMSS ¶
func (az *AzureManager) GetVMSS(ctx context.Context, resourceGroup, vmssName string) (*compute.VirtualMachineScaleSet, error)
func (*AzureManager) GetVMSSInstance ¶
func (az *AzureManager) GetVMSSInstance(ctx context.Context, resourceGroup, vmssName, instanceID string) (*compute.VirtualMachineScaleSetVM, error)
func (*AzureManager) GetVMSSInterface ¶
func (*AzureManager) ListVMSS ¶
func (az *AzureManager) ListVMSS(ctx context.Context) ([]*compute.VirtualMachineScaleSet, error)
func (*AzureManager) ListVMSSInstances ¶
func (az *AzureManager) ListVMSSInstances(ctx context.Context, resourceGroup, vmssName string) ([]*compute.VirtualMachineScaleSetVM, error)
func (*AzureManager) LoadBalancerName ¶
func (az *AzureManager) LoadBalancerName() string
func (*AzureManager) Location ¶
func (az *AzureManager) Location() string
func (*AzureManager) SubscriptionID ¶
func (az *AzureManager) SubscriptionID() string
func (*AzureManager) UpdateVMSSInstance ¶
func (az *AzureManager) UpdateVMSSInstance(ctx context.Context, resourceGroup, vmssName, instanceID string, vm compute.VirtualMachineScaleSetVM) (*compute.VirtualMachineScaleSetVM, error)
Click to show internal directories.
Click to hide internal directories.