azure

package
v1.20.0-pre.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocatorAzure

type AllocatorAzure struct {
	AzureSubscriptionID         string
	AzureResourceGroup          string
	AzureUserAssignedIdentityID string
	AzureUsePrimaryAddress      bool
	ParallelAllocWorkers        int64
	LimitIPAMAPIBurst           int
	LimitIPAMAPIQPS             float64
	AzureMetrics                azureAPI.MetricsAPI
	// contains filtered or unexported fields
}

AllocatorAzure is an implementation of IPAM allocator interface for Azure

func (*AllocatorAzure) Init

func (a *AllocatorAzure) Init(ctx context.Context, logger *slog.Logger) error

Init in Azure implementation doesn't need to do anything

func (*AllocatorAzure) Start

Start kicks of the Azure IP allocation

type Metrics

type Metrics struct {
	APIDuration metric.Vec[metric.Observer]
	RateLimit   metric.Vec[metric.Observer]
}

Metrics holds the metrics for the Azure API client.

func NewMetrics

func NewMetrics() *Metrics

NewMetrics returns the metrics for the Azure API client.

func (*Metrics) ObserveAPICall

func (m *Metrics) ObserveAPICall(operation, status string, duration float64)

ObserveAPICall records the duration of an API call.

func (*Metrics) ObserveRateLimit

func (m *Metrics) ObserveRateLimit(operation string, delay time.Duration)

ObserveRateLimit records a rate-limiter blocking event.

Jump to

Keyboard shortcuts

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