vmsizeclient

package
v0.7.18 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Overview

Package vmsizeclient implements the client for VirtualMachineSizes.

Index

Constants

View Source
const (
	// APIVersion is the API version for compute.
	APIVersion = "2020-12-01"
	// AzureStackCloudAPIVersion is the API version for Azure Stack
	AzureStackCloudAPIVersion = "2017-12-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 {

	// ARM throttling configures.
	RetryAfterReader time.Time
	RetryAfterWriter time.Time
	// contains filtered or unexported fields
}

Client implements VirtualMachineSize client Interface.

func New

func New(config *azclients.ClientConfig) *Client

New creates a new VirtualMachineSize client with ratelimiting.

func (*Client) List

List gets compute.VirtualMachineSizeListResult.

type Interface

type Interface interface {
	// List gets compute.VirtualMachineSizeListResult.
	List(ctx context.Context, location string) (result compute.VirtualMachineSizeListResult, rerr *retry.Error)
}

Interface is the client interface for VirtualMachineSizes. 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/vmsizeclient/interface.go -package=mockvmsizeclient Interface > $GOPATH/src/sigs.k8s.io/cloud-provider-azure/pkg/azureclients/vmsizeclient/mockvmsizeclient/interface.go

Directories

Path Synopsis
Package mockvmsizeclient implements the mock client for VirtualMachineSizes.
Package mockvmsizeclient implements the mock client for VirtualMachineSizes.

Jump to

Keyboard shortcuts

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