azureclients

package
v1.0.22 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 31

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 containerserviceclient implements the client for azure container service.
Package containerserviceclient implements the client for azure container service.
mockcontainerserviceclient
Package mockcontainerserviceclient implements the mock client for azure container service.
Package mockcontainerserviceclient implements the mock client for azure container service.
Package deploymentclient implements the client for azure deployments.
Package deploymentclient implements the client for azure deployments.
mockdeploymentclient
Package mockdeploymentclient implements the mock client for azure deployments.
Package mockdeploymentclient implements the mock client for azure deployments.
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.
Package privatelinkserviceclient implements the client for PrivateLinkService.
Package privatelinkserviceclient implements the client for PrivateLinkService.
mockprivatelinkserviceclient
Package mockprivatelinkserviceclient implements the mock client for PrivateLinkService.
Package mockprivatelinkserviceclient implements the mock client for PrivateLinkService.
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 routeclient implements the client for Route.
Package routeclient implements the client for Route.
mockrouteclient
Package mockrouteclient implements the mock client for Route.
Package mockrouteclient implements the mock client for Route.
Package routetableclient implements the client for RouteTable.
Package routetableclient implements the client for RouteTable.
mockroutetableclient
Package mockroutetableclient implements the mock client for RouteTable.
Package mockroutetableclient implements the mock client for RouteTable.
Package securitygroupclient implements the client for SecurityGroups.
Package securitygroupclient implements the client for SecurityGroups.
mocksecuritygroupclient
Package mocksecuritygroupclient implements the mock client for SecurityGroups.
Package mocksecuritygroupclient implements the mock client for SecurityGroups.
Package snapshotclient implements the client for Snapshots.
Package snapshotclient implements the client for Snapshots.
mocksnapshotclient
Package mocksnapshotclient implements the mock client for Snapshots.
Package mocksnapshotclient implements the mock client for Snapshots.
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.
Package zoneclient implements the client for ARM.
Package zoneclient implements the client for ARM.
mockzoneclient
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