errors

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessDeniedCode          = "AccessDenied"
	AccessDeniedExceptionCode = "AccessDeniedException"
)

Variables

This section is empty.

Functions

func IsAccessDenied

func IsAccessDenied(err error) bool

IsAccessDenied returns true if the error is an AWS error (even if it's wrapped) and is known to mean "access denied" (as opposed to a more serious or unexpected error)

func IsInstanceTerminated

func IsInstanceTerminated(err error) bool

func IsLaunchTemplateNotFound

func IsLaunchTemplateNotFound(err error) bool

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if the err is an AWS error (even if it's wrapped) and is a known to mean "not found" (as opposed to a more serious or unexpected error)

func IsRecentlyDeleted

func IsRecentlyDeleted(err error) bool

IsRecentlyDeleted returns true if the error is an AWS error (even if it's wrapped) and is known to mean "recently deleted"

func IsUnfulfillableCapacity

func IsUnfulfillableCapacity(err *ec2.CreateFleetError) bool

IsUnfulfillableCapacity returns true if the Fleet err means capacity is temporarily unavailable for launching. This could be due to account limits, insufficient ec2 capacity, etc.

Types

type InstanceTerminatedError

type InstanceTerminatedError struct {
	Err error
}

func (InstanceTerminatedError) Error

func (e InstanceTerminatedError) Error() string

Jump to

Keyboard shortcuts

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