errors

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const (

	// Error codes
	ResourceNotFound         = "ResourceNotFound"
	OperationNotAllowed      = "OperationNotAllowed"
	ZoneAllocationFailed     = "ZonalAllocationFailed"
	NicReservedForAnotherVM  = "NicReservedForAnotherVm"
	SKUNotAvailableErrorCode = "SkuNotAvailable"

	// Error search terms
	LowPriorityQuotaExceededTerm  = "LowPriorityCores"
	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 IsNicReservedForAnotherVM added in v0.1.5

func IsNicReservedForAnotherVM(err error) bool

IsNicReservedForAnotherVM occurs when a NIC is associated with another VM during deletion. See https://aka.ms/deletenic

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 IsSKUNotAvailable added in v0.1.5

func IsSKUNotAvailable(err error) bool

IsSKUNotAvailable https://aka.ms/azureskunotavailable: either not available for a location or zone, or out of capacity for Spot.

func LowPriorityQuotaHasBeenReached added in v0.1.6

func LowPriorityQuotaHasBeenReached(err error) bool

LowPriorityQuotaHasBeenReached communicates if we have reached the quota limit for low priority VMs under a specific subscription Low priority VMs are generally Spot VMs, but can also be low priority VMs created via the Azure CLI or Azure Portal

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