Documentation ¶
Index ¶
- Constants
- func Code(err error) (string, bool)
- func IsBucketAlreadyOwnedByYou(err error) bool
- func IsConflict(err error) bool
- func IsFailedDependency(err error) bool
- func IsIgnorableSecurityGroupError(err error) error
- func IsInvalidNotFoundError(err error) bool
- func IsNotFound(err error) bool
- func IsRepositoryExists(err error) bool
- func IsResourceExists(err error) bool
- func IsSDKError(err error) (ok bool)
- func Message(err error) string
- func NewConflict(msg string) error
- func NewFailedDependency(msg string) error
- func NewNotFound(msg string) error
- func ReasonForError(err error) int
- type EC2Error
Constants ¶
const ( AssociationIDNotFound = "InvalidAssociationID.NotFound" AuthFailure = "AuthFailure" BucketAlreadyOwnedByYou = "BucketAlreadyOwnedByYou" EIPNotFound = "InvalidElasticIpID.NotFound" GatewayNotFound = "InvalidGatewayID.NotFound" GroupNotFound = "InvalidGroup.NotFound" InternetGatewayNotFound = "InvalidInternetGatewayID.NotFound" EgressOnlyInternetGatewayNotFound = "InvalidEgressOnlyInternetGatewayID.NotFound" InUseIPAddress = "InvalidIPAddress.InUse" InvalidAccessKeyID = "InvalidAccessKeyId" InvalidClientTokenID = "InvalidClientTokenId" InvalidInstanceID = "InvalidInstanceID.NotFound" InvalidSubnet = "InvalidSubnet" LaunchTemplateNameNotFound = "InvalidLaunchTemplateName.NotFoundException" LoadBalancerNotFound = "LoadBalancerNotFound" NATGatewayNotFound = "InvalidNatGatewayID.NotFound" //nolint:gosec NoCredentialProviders = "NoCredentialProviders" NoSuchKey = "NoSuchKey" PermissionNotFound = "InvalidPermission.NotFound" ResourceExists = "ResourceExistsException" ResourceNotFound = "InvalidResourceID.NotFound" RouteTableNotFound = "InvalidRouteTableID.NotFound" SubnetNotFound = "InvalidSubnetID.NotFound" UnrecognizedClientException = "UnrecognizedClientException" VPCNotFound = "InvalidVpcID.NotFound" VPCMissingParameter = "MissingParameter" ErrCodeRepositoryAlreadyExistsException = "RepositoryAlreadyExistsException" )
Error singletons for AWS errors.
Variables ¶
This section is empty.
Functions ¶
func IsConflict ¶
IsConflict returns true if the error was created by NewConflict.
func IsFailedDependency ¶
IsFailedDependency checks if the error is pf http.StatusFailedDependency.
func IsIgnorableSecurityGroupError ¶
IsIgnorableSecurityGroupError checks for errors in SG that can be ignored and then return nil.
func IsInvalidNotFoundError ¶
IsInvalidNotFoundError tests for common aws not found errors.
func IsNotFound ¶
IsNotFound returns true if the error was created by NewNotFound.
func IsRepositoryExists ¶
IsRepositoryExists checks if there is already a repository with the same name.
func IsResourceExists ¶
IsResourceExists checks the state of the resource.
func IsSDKError ¶
IsSDKError returns true if the error is of type awserr.Error.
func NewConflict ¶
NewConflict returns an error which indicates that the request cannot be processed due to a conflict.
func NewFailedDependency ¶
NewFailedDependency returns an error which indicates that a dependency failure status.
func NewNotFound ¶
NewNotFound returns an error which indicates that the resource of the kind and the name was not found.
func ReasonForError ¶
ReasonForError returns the HTTP status for a particular error.