zoneclient

package
v0.7.13 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 10 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 the following command to generate the mock client: mockgen -source=$GOPATH/src/sigs.k8s.io/cloud-provider-azure/pkg/azureclients/zoneclient/interface.go -package=mockzoneclient Interface > $GOPATH/src/sigs.k8s.io/cloud-provider-azure/pkg/azureclients/zoneclient/mockzoneclient/interface.go

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