azmanager

package
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

View Source
const (
	// 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) DeleteLB

func (az *AzureManager) DeleteLB(ctx context.Context) error

func (*AzureManager) DeletePublicIPPrefix

func (az *AzureManager) DeletePublicIPPrefix(ctx context.Context, resourceGroup, prefixName string) error

func (*AzureManager) GetLB

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) GetSubnet

func (az *AzureManager) GetSubnet(ctx context.Context) (*network.Subnet, 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 (az *AzureManager) GetVMSSInterface(ctx context.Context, resourceGroup, vmssName, instanceID, interfaceName string) (*network.Interface, error)

func (*AzureManager) ListVMSS

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL