errors

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const InstanceNotUp = "instance is not up yet"
View Source
const LastDeployInProgress = "last deploy in progress"
View Source
const TimeIntervalNotReached = "time interval not reached"

Variables

This section is empty.

Functions

func CodeForError

func CodeForError(err error) int32

CodeForError returns the HTTP status for a particular error.

func HandleError

func HandleError(err error, message string)

func IsConflict

func IsConflict(err error) bool

func IsNotFound

func IsNotFound(err error) bool

func NewInstanceNotUpError

func NewInstanceNotUpError(requeueAfter time.Duration) error

func NewLastDeployInProgressError

func NewLastDeployInProgressError(requeueAfter time.Duration) error

func NewTimeIntervalNotReachedError

func NewTimeIntervalNotReachedError(requeueAfter time.Duration) error

Types

type HttpError

type HttpError struct {
	// contains filtered or unexported fields
}

func NewConflict

func NewConflict(msg string, err error) *HttpError

func NewNotFound

func NewNotFound(msg string) *HttpError

func (HttpError) Error

func (e HttpError) Error() string

type RequeueError

type RequeueError interface {
	RequeueAfter() time.Duration
}

Jump to

Keyboard shortcuts

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