errors

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 3 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")

	// ErrComponentMissingArgs indicates that some component arguments are missing
	ErrComponentMissingArgs = Error("cannot new component: component name and current version should not be empty")

	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")
	ErrLoadConfiguration              = Error("cannot load configuration")
	ErrLoadingConfiguration           = Error("configuration has been being loaded")
	ErrDeletingReleases               = Error("deleting releases")
	ErrForceDeletingComponents        = Error("force deleting components")
	ErrRollingBackActivePromotion     = Error("rolling back active promotion process")

	ErrGitCloneTimeout = Error("git clone timeout")
	ErrGitPullTimeout  = Error("git pull timeout")
	ErrGitPushTimeout  = Error("git push timeout")

	ErrGitDirectoryNotFound = Error("git directory not found")
	ErrGitCloning           = Error("still cloning the repository")
	ErrGitPulling           = Error("still pulling the repository")

	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")
	ErrCannotUnmarshalJSON = Error("cannot unmarshal from json")

	ErrTestConfigurationNotFound = Error("test configuration not found")
)

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 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 IsErrGitCloning

func IsErrGitCloning(err error) bool

IsErrGitCloning checks git still cloning

func IsErrGitPulling

func IsErrGitPulling(err error) bool

IsErrGitCloning checks git still pulling

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 IsGitNoErrAlreadyUpToDate

func IsGitNoErrAlreadyUpToDate(err error) bool

IsGitNoErrAlreadyUpToDate checks git is update date

func IsImageNotFound

func IsImageNotFound(err error) bool

func IsLoadingConfiguration

func IsLoadingConfiguration(err error) bool

IsLoadingConfiguration checks configuration still loading

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