Documentation ¶
Index ¶
- Variables
- func NewBadRequestError(msg string, a ...interface{}) error
- func NewConflictError(msg string, a ...interface{}) error
- func NewDuplicateUserError(msg string) error
- func NewMissingSecretError(msg string, a ...interface{}) error
- func NewNotFoundError(msg string, a ...interface{}) error
- func NewProviderError(msg string, a ...interface{}) error
- func NewUnauthorizedError(msg string) error
- type BadRequestError
- type ConflictError
- type DuplicateUserError
- type MissingSecretError
- type NotFoundError
- type ProviderError
- type UnauthorizedError
Constants ¶
This section is empty.
Variables ¶
var ( // authorization to perform a request ErrUnauthorized = NewUnauthorizedError("Unauthorized") // ErrNotFound is returned if an object is not found in // the database. ErrNotFound = NewNotFoundError("not found") // ErrDuplicateUser is returned when creating a user, if the // user already exists. ErrDuplicateEntity = NewDuplicateUserError("duplicate") // ErrBadRequest is returned is a malformed request is sent ErrBadRequest = NewBadRequestError("invalid request") // ErrTimeout is returned when a timeout occurs. ErrTimeout = fmt.Errorf("timed out") ErrUnprocessable = fmt.Errorf("cannot process request") ErrNoPoolsAvailable = fmt.Errorf("no pools available") )
Functions ¶
func NewBadRequestError ¶
NewBadRequestError returns a new BadRequestError
func NewConflictError ¶
NewConflictError returns a new ConflictError
func NewDuplicateUserError ¶
NewDuplicateUserError returns a new DuplicateUserError
func NewMissingSecretError ¶
NewMissingSecretError returns a new MissingSecretError
func NewNotFoundError ¶
NewNotFoundError returns a new NotFoundError
func NewProviderError ¶
NewProviderError returns a new ProviderError
func NewUnauthorizedError ¶
NewUnauthorizedError returns a new UnauthorizedError
Types ¶
type BadRequestError ¶
type BadRequestError struct {
// contains filtered or unexported fields
}
BadRequestError is returned when a malformed request is received
type ConflictError ¶
type ConflictError struct {
// contains filtered or unexported fields
}
ConflictError is returned when a conflicting request is made
type DuplicateUserError ¶
type DuplicateUserError struct {
// contains filtered or unexported fields
}
DuplicateUserError is returned when a duplicate user is requested
type MissingSecretError ¶
type MissingSecretError struct {
// contains filtered or unexported fields
}
MissingSecretError is returned the secret to validate a webhook is missing
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError is returned when a resource is not found
type ProviderError ¶
type ProviderError struct {
// contains filtered or unexported fields
}
UnauthorizedError is returned when a request is unauthorized
type UnauthorizedError ¶
type UnauthorizedError struct {
// contains filtered or unexported fields
}
UnauthorizedError is returned when a request is unauthorized