azureclients

package
v1.31.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package azureclients contains a set of Azure ARM clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRateLimiter

NewRateLimiter creates new read and write flowcontrol.RateLimiter from RateLimitConfig.

func RateLimitEnabled

func RateLimitEnabled(config *RateLimitConfig) bool

RateLimitEnabled returns true if CloudProviderRateLimit is set to true.

Types

type ClientConfig

type ClientConfig struct {
	CloudName               string
	Location                string
	ExtendedLocation        *ExtendedLocation
	SubscriptionID          string
	ResourceManagerEndpoint string
	Authorizer              autorest.Authorizer
	RateLimitConfig         *RateLimitConfig
	RestClientConfig        RestClientConfig
	Backoff                 *retry.Backoff
	UserAgent               string
	DisableAzureStackCloud  bool
}

ClientConfig contains all essential information to create an Azure client.

func (*ClientConfig) WithRateLimiter

func (cfg *ClientConfig) WithRateLimiter(rl *RateLimitConfig) *ClientConfig

WithRateLimiter returns a new ClientConfig with rateLimitConfig set.

type ExtendedLocation added in v0.7.3

type ExtendedLocation struct {
	// Name - The name of the extended location.
	Name string `json:"name,omitempty"`
	// Type - The type of the extended location.
	Type string `json:"type,omitempty"`
}

ExtendedLocation contains additional info about the location of resources.

type RateLimitConfig

type RateLimitConfig struct {
	// Enable rate limiting
	CloudProviderRateLimit bool `json:"cloudProviderRateLimit,omitempty" yaml:"cloudProviderRateLimit,omitempty"`
	// Rate limit QPS (Read)
	CloudProviderRateLimitQPS float32 `json:"cloudProviderRateLimitQPS,omitempty" yaml:"cloudProviderRateLimitQPS,omitempty"`
	// Rate limit Bucket Size
	CloudProviderRateLimitBucket int `json:"cloudProviderRateLimitBucket,omitempty" yaml:"cloudProviderRateLimitBucket,omitempty"`
	// Rate limit QPS (Write)
	CloudProviderRateLimitQPSWrite float32 `json:"cloudProviderRateLimitQPSWrite,omitempty" yaml:"cloudProviderRateLimitQPSWrite,omitempty"`
	// Rate limit Bucket Size
	CloudProviderRateLimitBucketWrite int `json:"cloudProviderRateLimitBucketWrite,omitempty" yaml:"cloudProviderRateLimitBucketWrite,omitempty"`
}

RateLimitConfig indicates the rate limit config options.

type RestClientConfig added in v1.0.16

type RestClientConfig struct {
	PollingDelay  *time.Duration
	RetryAttempts *int
	RetryDuration *time.Duration
}

Directories

Path Synopsis
module
Package armclient implements the client for ARM.
Package armclient implements the client for ARM.
mockarmclient
Package mockarmclient implements the mock client for ARM.
Package mockarmclient implements the mock client for ARM.
Package blobclient implements the client for blob container.
Package blobclient implements the client for blob container.
mockblobclient
Package mockblobclient implements the mock client for blob container.
Package mockblobclient implements the mock client for blob container.
Package diskclient implements the client for Disks.
Package diskclient implements the client for Disks.
mockdiskclient
Package mockdiskclient implements the mock client for Disks.
Package mockdiskclient implements the mock client for Disks.
Package fileclient implements the client for azure file.
Package fileclient implements the client for azure file.
mockfileclient
Package mockfileclient implements the mock client for azure file.
Package mockfileclient implements the mock client for azure file.
Package interfaceclient implements the client for network interfaces.
Package interfaceclient implements the client for network interfaces.
mockinterfaceclient
Package mockinterfaceclient implements the mock client for network interfaces.
Package mockinterfaceclient implements the mock client for network interfaces.
Package loadbalancerclient implements the client for LoadBalancer.
Package loadbalancerclient implements the client for LoadBalancer.
mockloadbalancerclient
Package mockloadbalancerclient implements the mock client for LoadBalancer.
Package mockloadbalancerclient implements the mock client for LoadBalancer.
mockprivatednszonegroupclient
Package mockprivatednszonegroupclient implements the mock client for PrivateDNSszonegroup.
Package mockprivatednszonegroupclient implements the mock client for PrivateDNSszonegroup.
Package privateendpointclient implements the client for Private Endpoint.
Package privateendpointclient implements the client for Private Endpoint.
mockprivateendpointclient
Package mockprivateendpointclient implements the mock client for PrivateEndpoint.
Package mockprivateendpointclient implements the mock client for PrivateEndpoint.
Package publicipclient implements the client for PublicIPAddress.
Package publicipclient implements the client for PublicIPAddress.
mockpublicipclient
Package mockpublicipclient implements the mock client for PublicIPAddress.
Package mockpublicipclient implements the mock client for PublicIPAddress.
Package storageaccountclient implements the client for StorageAccounts.
Package storageaccountclient implements the client for StorageAccounts.
mockstorageaccountclient
Package mockstorageaccountclient implements the mock client for StorageAccounts.
Package mockstorageaccountclient implements the mock client for StorageAccounts.
Package subnetclient implements the client for Subnet.
Package subnetclient implements the client for Subnet.
mocksubnetclient
Package mocksubnetclient implements the mock client for Subnet.
Package mocksubnetclient implements the mock client for Subnet.
Package vmasclient implements the client for VMAS.
Package vmasclient implements the client for VMAS.
mockvmasclient
Package mockvmasclient implements the mock client for VMAS.
Package mockvmasclient implements the mock client for VMAS.
Package vmclient implements the client for VirtualMachines.
Package vmclient implements the client for VirtualMachines.
mockvmclient
Package mockvmclient implements the mock client for VirtualMachines.
Package mockvmclient implements the mock client for VirtualMachines.
Package vmsizeclient implements the client for VirtualMachineSizes.
Package vmsizeclient implements the client for VirtualMachineSizes.
mockvmsizeclient
Package mockvmsizeclient implements the mock client for VirtualMachineSizes.
Package mockvmsizeclient implements the mock client for VirtualMachineSizes.
Package vmssclient implements the client for VMSS.
Package vmssclient implements the client for VMSS.
mockvmssclient
Package mockvmssclient implements the mock client for VMSS.
Package mockvmssclient implements the mock client for VMSS.
Package vmssvmclient implements the client for VirtualMachineScaleSetVM.
Package vmssvmclient implements the client for VirtualMachineScaleSetVM.
mockvmssvmclient
Package mockvmssvmclient implements the mock client for VirtualMachineScaleSetVM.
Package mockvmssvmclient implements the mock client for VirtualMachineScaleSetVM.

Jump to

Keyboard shortcuts

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