Help us shape the future of Go! Take the 2026 Go Developer Survey

constants

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterCreateDBFailed      string = "1001"
	ClusterCreateACDFailed     string = "1002"
	ClusterDBRollbackFailed    string = "1003"
	ClusterUpdateDBFailed      string = "1004"
	ClusterUpdateACDFailed     string = "1005"
	ClusterCreateBadRequestACD string = "1006"
	ClusterUpdateBadRequestACD string = "1007"
)
View Source
const (
	EnvironmentCreateDBFailed          string = "2001"
	EnvironmentUpdateDBFailed          string = "2002"
	EnvironmentUpdateEnvOverrideFailed string = "2003"
)
View Source
const (
	DockerRegCreateFailedInDb   string = "3001"
	DockerRegCreateFailedInGocd string = "3002"
	DockerRegUpdateFailedInDb   string = "3003"
	DockerRegUpdateFailedInGocd string = "3004"

	GitProviderCreateFailedAlreadyExists string = "3005"
	GitProviderCreateFailedInDb          string = "3006"
	GitProviderUpdateProviderNotExists   string = "3007"
	GitProviderUpdateFailedInDb          string = "3008"
	DockerRegDeleteFailedInDb            string = "3009"
	DockerRegDeleteFailedInGocd          string = "3010"
	GitProviderUpdateFailedInSync        string = "3011"
	GitProviderUpdateRequestIsInvalid    string = "3012"

	GitOpsConfigValidationConflict string = "3900"
)
View Source
const (
	ChartCreatedAlreadyExists string = "5001"
	ChartNameAlreadyReserved  string = "5002"

	// Pipeline Config GitOps Config Errors
	// Sequence 5100-5199
	GitOpsNotConfigured                 string = "5100"
	GitOpsOrganisationMismatch          string = "5101"
	GitOpsURLAlreadyInUse               string = "5102"
	InvalidDeploymentAppTypeForPipeline string = "5103"
)
View Source
const (
	UserCreateDBFailed        string = "6001"
	UserCreatePolicyFailed    string = "6002"
	UserUpdateDBFailed        string = "6003"
	UserUpdatePolicyFailed    string = "6004"
	UserNoTokenProvided       string = "6005"
	UserNotFoundForToken      string = "6006"
	UserCreateFetchRoleFailed string = "6007"
	UserUpdateFetchRoleFailed string = "6008"
)
View Source
const (
	AppDetailResourceTreeNotFound string = "7000"
	HelmReleaseNotFound           string = "7001"

	CasbinPolicyNotCreated string = "8000"

	GitHostCreateFailedAlreadyExists string = "9001"
	GitHostCreateFailedInDb          string = "9002"
)
View Source
const (
	VulnerabilityFound                   string = "10001"
	ApprovalNodeFail                     string = "10002"
	FilteringConditionFail               string = "10003"
	DeploymentWindowFail                 string = "10004"
	PreCDDoesNotExists                   string = "10005"
	PostCDDoesNotExists                  string = "10006"
	ArtifactNotAvailable                 string = "10007"
	DeploymentWindowByPassed             string = "10008"
	MandatoryPluginNotAdded              string = "10009"
	MandatoryTagNotAdded                 string = "10010"
	SecurityScanFail                     string = "10011"
	ApprovalConfigDependentActionFailure string = "10012"
)
View Source
const (
	InvalidPathParameter  string = "11001"
	InvalidRequestBody    string = "11002"
	InvalidQueryParameter string = "11003"
	ValidationFailed      string = "11004"
	MissingRequiredField  string = "11005"
	ResourceNotFound      string = "11006"
	DuplicateResource     string = "11007"
)
View Source
const (
	NotProcessed string = "11001"
	NotExecuted  string = "11002"
)
View Source
const (
	ErrorDeletingPipelineForDeletedArgoAppMsg = "error in deleting devtron pipeline for deleted argocd app"
	ArgoAppDeletedErrMsg                      = "argocd app deleted"
	UnableToFetchResourceTreeErrMsg           = "unable to fetch resource tree"
	UnableToFetchResourceTreeForAcdErrMsg     = "app detail fetched, failed to get resource tree from acd"
	CannotGetAppWithRefreshErrMsg             = "cannot get application with refresh"
	NoDataFoundErrMsg                         = "no data found"
)
View Source
const (
	HttpClientSideTimeout = 499
)
View Source
const (
	HttpStatusUnprocessableEntity = "422"
)

Variables

View Source
var AppAlreadyExists = &ErrorCode{"4001", "application %s already exists"}
View Source
var AppDoesNotExist = &ErrorCode{"4004", "application %s does not exist"}

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode struct {
	Code string
	// contains filtered or unexported fields
}

func (ErrorCode) UserMessage

func (code ErrorCode) UserMessage(params ...interface{}) string

Jump to

Keyboard shortcuts

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