Documentation ¶
Index ¶
- func IsAccessDenied(err error) bool
- func IsAlreadyExists(err error) bool
- func IsConflict(err error) bool
- func IsNotFound(err error) bool
- func IsSDKError(err error) (ok bool)
- func NewConflict(msg string) error
- func NewNotFound(msg string) error
- func ReasonForError(err error) int
- type Route53Error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAccessDenied ¶
IsAccessDenied returns true if the error is AccessDenied.
func IsAlreadyExists ¶ added in v0.3.1
func IsConflict ¶
IsConflict returns true if the error was created by NewConflict.
func IsNotFound ¶
IsNotFound returns true if the error was created by NewNotFound.
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 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.
Types ¶
type Route53Error ¶
type Route53Error struct { Code int // contains filtered or unexported fields }
Route53Error is an error exposed to users of this library.
func (*Route53Error) Error ¶
func (e *Route53Error) Error() string
Error implements the Error interface.
type Service ¶
type Service struct { Route53Client route53iface.Route53API Route53ResolverClient route53resolveriface.Route53ResolverAPI ManagementRoute53Client route53iface.Route53API // contains filtered or unexported fields }
Service holds a collection of interfaces.
func NewService ¶
func NewService(clusterScope scope.Route53Scope, managementScope scope.ManagementRoute53Scope) *Service
NewService returns a new service given the route53 api client.