constants

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Cluster Errors
	ClusterCreateDBFailed      string = "1001"
	ClusterCreateACDFailed     string = "1002"
	ClusterDBRollbackFailed    string = "1003"
	ClusterUpdateDBFailed      string = "1004"
	ClusterUpdateACDFailed     string = "1005"
	ClusterCreateBadRequestACD string = "1006"
	ClusterUpdateBadRequestACD string = "1007"
	//Environment Errors
	EnvironmentCreateDBFailed          string = "2001"
	EnvironmentUpdateDBFailed          string = "2002"
	EnvironmentUpdateEnvOverrideFailed string = "2003"
	//Global Config Errors
	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"
	UserCreateDBFailed                   string = "6001"
	UserCreatePolicyFailed               string = "6002"
	UserUpdateDBFailed                   string = "6003"
	UserUpdatePolicyFailed               string = "6004"
	UserNoTokenProvided                  string = "6005"
	UserNotFoundForToken                 string = "6006"
	UserCreateFetchRoleFailed            string = "6007"
	UserUpdateFetchRoleFailed            string = "6008"

	AppDetailResourceTreeNotFound string = "7000"

	CasbinPolicyNotCreated string = "8000"
)

Variables

View Source
var AppAlreadyExists = &ErrorCode{"4001", "application %s already exists"}

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