zone

package
v0.0.2-test.load Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() time.Time
}

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider handles zone support detection for Azure regions TODO: This provider is currently unused. Keeping it around for now though as we will likely want to adapt it to provide physical to logical zone mappings.

func NewProvider

func NewProvider(
	subscriptionsAPI SubscriptionsAPI,
	clock Clock,
	subscriptionID string,
) *Provider

NewProvider creates a new zone provider

func (*Provider) SupportsZones

func (p *Provider) SupportsZones(ctx context.Context, region string) bool

SupportsZones returns true if the given region supports availability zones

type SubscriptionsAPI

type SubscriptionsAPI interface {
	NewListLocationsPager(
		subscriptionID string,
		options *armsubscriptions.ClientListLocationsOptions,
	) *runtime.Pager[armsubscriptions.ClientListLocationsResponse]
}

SubscriptionsAPI defines the interface for Azure Subscriptions client operations

Jump to

Keyboard shortcuts

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