zoneclient

package
v1.27.19 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Package zoneclient implements the client for ARM.

Index

Constants

View Source
const (
	// APIVersion is the API version for provider list api.
	APIVersion = "2020-06-01"
	// AzureStackCloudAPIVersion is the API version for Azure Stack
	AzureStackCloudAPIVersion = "2019-07-01"
	// AzureStackCloudName is the cloud name of Azure Stack
	AzureStackCloudName = "AZURESTACKCLOUD"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements zone client Interface.

func New

func New(config *azclients.ClientConfig) *Client

New creates a new zone client with ratelimiting.

func (*Client) GetZones

func (c *Client) GetZones(ctx context.Context, subscriptionID string) (map[string][]string, *retry.Error)

GetZones gets the region-zone map for the subscription specified

type Interface

type Interface interface {
	GetZones(ctx context.Context, subscriptionID string) (map[string][]string, *retry.Error)
}

Interface is the client interface for ARM. Don't forget to run "hack/update-mock-clients.sh" command to generate the mock client.

Directories

Path Synopsis
Package mockzonevmclient implements the mock client for zone
Package mockzonevmclient implements the mock client for zone

Jump to

Keyboard shortcuts

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