errors

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const (

	// Error codes
	ResourceNotFound     = "ResourceNotFound"
	OperationNotAllowed  = "OperationNotAllowed"
	ZoneAllocationFailed = "ZonalAllocationFailed"

	// Error search terms
	SKUFamilyQuotaExceededTerm    = "Family Cores quota"
	SubscriptionQuotaExceededTerm = "Submit a request for Quota increase"
	RegionalQuotaExceededTerm     = "exceeding approved Total Regional Cores quota"
)

Variables

This section is empty.

Functions

func IsNotFoundErr

func IsNotFoundErr(err error) bool

IsNotFoundErr is used to determine if we are failing to find a resource within azure.

func IsResponseError added in v0.1.1

func IsResponseError(err error) *azcore.ResponseError

IsResponseError checks if the error is of type *azcore.ResponseError and returns the response error or nil if it's not.

func RegionalQuotaHasBeenReached

func RegionalQuotaHasBeenReached(err error) bool

RegionalQuotaHasBeenReached communicates if we have reached the quota limit for a given region under a specific subscription

func SKUFamilyQuotaHasBeenReached added in v0.1.4

func SKUFamilyQuotaHasBeenReached(err error) bool

SKUFamilyQuotaHasBeenReached tells us if we have exceeded our Quota.

func SubscriptionQuotaHasBeenReached

func SubscriptionQuotaHasBeenReached(err error) bool

SubscriptionQuotaHasBeenReached tells us if we have exceeded our Quota.

func ZonalAllocationFailureOccurred added in v0.1.2

func ZonalAllocationFailureOccurred(err error) bool

ZonalAllocationFailureOccurred communicates if we have failed to allocate a resource in a zone, and should try another zone. To learn more about zonal allocation failures, visit: http://aka.ms/allocation-guidance

Types

This section is empty.

Jump to

Keyboard shortcuts

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