Documentation ¶
Overview ¶
MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
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 ¶
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)