errors

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInternalError             = Error("internal error")
	ErrNotImplemented            = Error("not implemented")
	ErrDeployTimeout             = Error("deploy timeout")
	ErrTestTimeout               = Error("test timeout")
	ErrTestRunnerNotFound        = Error("test runner not found")
	ErrRequestTimeout            = Error("request timeout")
	ErrExecutionTimeout          = Error("execution timeout")
	ErrImageVersionNotFound      = Error("image version not found")
	ErrNoDesiredComponentVersion = Error("no desired component version")

	ErrTeamNotFound               = Error("team not found")
	ErrTeamNamespaceStillCreating = Error("still creating namespace")
	ErrTeamNamespaceStillExists   = Error("destroyed namespace still exists")

	ErrActivePromotionTimeout         = Error("active promotion timeout")
	ErrActiveDemotionTimeout          = Error("demoted active environment timeout")
	ErrRollbackActivePromotionTimeout = Error("rollback active promotion timeout")
	ErrEnsureNamespaceDestroyed       = Error("namespace has not been destroyed")
	ErrEnsureActiveDemoted            = Error("active environment has been being demoted")
	ErrEnsureActivePromoted           = Error("active environment has been being promoted")
	ErrEnsureComponentDeployed        = Error("components has been being deployed")
	ErrEnsureComponentTested          = Error("components has been being tested")
	ErrDeletingReleases               = Error("deleting releases")
	ErrForceDeletingComponents        = Error("force deleting components")
	ErrRollingBackActivePromotion     = Error("rolling back active promotion process")

	ErrUnauthorized      = Error("unauthorized")
	ErrAuthTokenNotFound = Error("auth token not found")
	ErrInvalidJSONData   = Error("invalid json data")
	ErrCannotMarshalJSON = Error("cannot marshal to json")
	ErrCannotMarshalYAML = Error("cannot marshal to yaml")

	ErrTestConfigurationNotFound = Error("test configuration not found")

	ErrEnsureConfigDestroyed = Error("config been being destroyed")
)

Variables

View Source
var (
	Is    = errors.Is
	New   = errors.New
	Cause = pkgerrors.Cause
	Wrap  = pkgerrors.Wrap
	Wrapf = pkgerrors.Wrapf
)

Functions

func IsDeletingReleases

func IsDeletingReleases(err error) bool

IsDeletingReleases checks releases have been deleting

func IsEnsuringActiveDemoted

func IsEnsuringActiveDemoted(err error) bool

ErrEnsureActiveDemoted checks ensuring active demoted

func IsEnsuringActivePromoted

func IsEnsuringActivePromoted(err error) bool

IsEnsuringActivePromoted checks ensuring active promoted

func IsEnsuringActiveTested

func IsEnsuringActiveTested(err error) bool

IsEnsuringActivePromoted checks ensuring active tested

func IsEnsuringComponentDeployed

func IsEnsuringComponentDeployed(err error) bool

IsEnsuringComponentDeployed checks ensuring active deployed

func IsEnsuringConfigDestroyed added in v1.1.0

func IsEnsuringConfigDestroyed(err error) bool

IsEnsuringConfigDestroyed checks ensuring config destroyed

func IsEnsuringNamespaceDestroyed

func IsEnsuringNamespaceDestroyed(err error) bool

IsEnsuringNamespaceDestroyed checks ensuring namespace destroyed

func IsErrActiveDemotionTimeout

func IsErrActiveDemotionTimeout(err error) bool

IsErrActiveDemotionTimeout checks active demotion has been timeout

func IsErrActivePromotionTimeout

func IsErrActivePromotionTimeout(err error) bool

IsErrActivePromotionTimeout checks active promotion has been timeout

func IsErrRequestTimeout

func IsErrRequestTimeout(err error) bool

IsErrRequestTimeout checks request timeout

func IsErrRollbackActivePromotionTimeout

func IsErrRollbackActivePromotionTimeout(err error) bool

IsErrRollbackActivePromotionTimeout checks active promotion rollback has been timeout

func IsImageNotFound

func IsImageNotFound(err error) bool

func IsNamespaceStillCreating

func IsNamespaceStillCreating(err error) bool

IsNamespaceStillCreating checks namespace is still creating

func IsNamespaceStillExists

func IsNamespaceStillExists(err error) bool

IsNamespaceStillExists checks namespace still exists

func IsRollingBackActivePromotion

func IsRollingBackActivePromotion(err error) bool

IsRollingBackActivePromotion checks active promotion is rolling back

func IsTeamNotFound

func IsTeamNotFound(err error) bool

IsTeamNotFound checks team is exist

Types

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Error overrides error

Jump to

Keyboard shortcuts

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