errors

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 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")
	ErrReleaseFailed             = Error("release failed")
	ErrTestTimeout               = Error("test timeout")
	ErrTestRunnerNotFound        = Error("test runner not found")
	ErrRequestTimeout            = Error("request timeout")
	ErrExecutionTimeout          = Error("execution timeout")
	ErrImageVersionNotFound      = Error("image version not found")
	ErrInternalCheckerError      = Error("internal checker error")
	ErrNoDesiredComponentVersion = Error("no desired component version")

	ErrTeamNamespaceStillCreating     = Error("still creating namespace")
	ErrTeamNamespaceStillExists       = Error("destroyed namespace still exists")
	ErrTeamNamespaceEnvObjsCreated    = Error("environment objects is creating")
	ErrTeamNamespaceComponentNotified = Error("new components is notifying changed")
	ErrTeamNamespacePromotionCreated  = Error("active promotion is creating")

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

	ErrPullRequestBundleNotFound = Error("pull request bundle name not found in configuration")

	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")
	ErrConfigurationRequiredField = Error("required filed cannot be empty")

	ErrEnsureConfigDestroyed = Error("config been being destroyed")

	ErrParsingRuntimeObject = Error("cannot parse runtime object")
)

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 IsEnsuringComponentDeployed

func IsEnsuringComponentDeployed(err error) bool

IsEnsuringComponentDeployed checks ensuring active deployed

func IsEnsuringComponentTested added in v1.7.0

func IsEnsuringComponentTested(err error) bool

IsEnsuringComponentTested checks ensuring component tested

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 IsEnsuringPreActiveEnvironmentCreated added in v1.1.2

func IsEnsuringPreActiveEnvironmentCreated(err error) bool

IsEnsuringPreActiveEnvironmentCreated checks ensuring pre-active created

func IsEnsuringStableComponentsDestroyed added in v1.8.7

func IsEnsuringStableComponentsDestroyed(err error) bool

IsEnsuringStableComponentsDestroyed checks ensuring all stable components 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 IsErrPullRequestBundleNotFound added in v1.10.4

func IsErrPullRequestBundleNotFound(err error) bool

IsErrPullRequestBundleNotFound checks pull request bundle not found error

func IsErrReleaseFailed added in v1.5.8

func IsErrReleaseFailed(err error) bool

IsErrReleaseFailed checks release failed

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

IsImageNotFound checks image not found error

func IsInternalCheckerError added in v1.8.8

func IsInternalCheckerError(err error) bool

IsInternalCheckerError checks internal checker error

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 IsNewNamespaceComponentNotified added in v1.1.3

func IsNewNamespaceComponentNotified(err error) bool

IsNewNamespaceComponentNotified checks ensuring components notified

func IsNewNamespaceEnvObjsCreated added in v1.1.3

func IsNewNamespaceEnvObjsCreated(err error) bool

IsNewNamespaceEnvObjsCreated checks ensuring environment objects created

func IsNewNamespacePromotionCreated added in v1.1.3

func IsNewNamespacePromotionCreated(err error) bool

IsNewNamespacePromotionCreated checks ensuring active promotion created

func IsRollingBackActivePromotion

func IsRollingBackActivePromotion(err error) bool

IsRollingBackActivePromotion checks active promotion is rolling back

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