errors

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidFormatErrMsg = "格式定义错误"

	TimeoutErrMsg = "等待超时错误"

	SetNamespaceErrMsg = "无法获取用户容器环境"

	CreateDefaultRegistryErrMsg = "无法创建默认的镜像仓库"

	SetRegistrySecretErrMsg = "无法获取镜像仓库权限"

	SetCephSecretErrMsg = "无法获取Ceph存储权限"
)

Common

View Source
const (
	DuplicateProductErrMsg = "产品已存在"

	DuplicateEnvErrMsg = "环境已存在"

	ProductNotFoundErrMsg = "产品不存在"

	EnvNotFoundErrMsg = "环境不存在"

	EnvCantUpdatedMsg = "环境正处于不能更新的状态"

	ProductAccessDeniedErrMsg = "无权访问产品"

	NothingUpdateErrMsg = "产品无需更新"

	NothingEnvUpdateErrMsg = "环境无需更新"

	ListProductErrMsg = "列出产品信息失败"

	GetProductRevErrMsg = "获取产品版本失败"

	GetEnvRevErrMsg = "获取环境版本失败"

	UpdateProductStatusErrMsg = "保存产品状态信息失败"

	UpdateEnvStatusErrMsg = "保存环境状态信息失败"

	PatchProductErrMsg = "产品适配集成测试覆盖率失败"

	UpdateProductErrorsErrMsg = "保存产品错误信息失败"

	UpdateEnvErrorsErrMsg = "保存环境错误信息失败"
)

Product

View Source
const (
	FindProductTmplErrMsg = "获取产品失败"

	FindProductServiceErrMsg = "不包含任何服务"
)

Product Template

View Source
const (
	DeleteNamespaceErrMsg = "删除命名空间失败"

	DeleteServiceContainerErrMsg = "删除容器资源失败"

	UpsertServiceErrMsg = "新增或更新服务失败"

	DeleteServiceErrMsg = "删除服务容器失败"

	ServiceRunUnstableErrMsg = "部分服务运行不稳定"

	RestartServiceErrMsg = "重启服务失败"
)

Service & Containers

View Source
const (
	FindPipelineErrMsg = "获取工作流失败"

	FindPipelineTaskErrMsg = "获取工作流任务失败"

	UpdatePipelineTaskErrMsg = "更新工作流任务失败"

	RestartPassedTaskErrMsg = "不能重试已经通过任务"

	PipelineDisabledErrMsg = "工作流未开启"

	PipelineSubTaskNotFoundErrMsg = "未配置工作流子任务"

	DeletePipelineTaskErrMsg = "删除工作流关联任务失败"

	ListKeystoreErrMsg = "列出工作流敏感信息配置失败"

	DeleteKeystoreErrMsg = "删除工作流关联敏感信息失败"

	InterfaceToTaskErrMsg = "获取工作流子任务基本信息失败"

	TaskStillQueuedErrMsg = "工作流调度中,请稍后再试"
)

Pipelines & Pipeline Task

View Source
const (
	DuplicateClusterNameFound = "已经有相同名称的集群存在"
	StartPodTimeout           = "这些服务中可能存在未正常运行的实例"
)
View Source
const (
	DeleteVirtualServiceErrMsg = "删除 VirtualService 失败"
)

Variables

View Source
var (

	// ErrInvalidParam ...
	ErrInvalidParam = NewHTTPError(400, "Bad Request")
	// ErrUnauthorized ...
	ErrUnauthorized = NewHTTPError(401, "Unauthorized")
	// ErrForbidden ...
	ErrForbidden = NewHTTPError(403, "Forbidden")
	// ErrNotFound ...
	ErrNotFound = NewHTTPError(404, "Request Not Found")
	// ErrInternalError ...
	ErrInternalError = NewHTTPError(500, "Internal Error")

	// ErrCreateUser ...
	ErrCreateUser = NewHTTPError(6000, "创建用户信息失败")
	// ErrUpdateUser ...
	ErrUpdateUser = NewHTTPError(6001, "更新用户信息失败")
	// ErrListUsers ...
	ErrListUsers = NewHTTPError(6002, "列出用户信息失败")
	// ErrFindUser ...
	ErrFindUser = NewHTTPError(6002, "获取用户信息失败")
	// ErrCallBackUser ...
	ErrCallBackUser = NewHTTPError(6003, "dex回调用户失败")

	// ErrCreateTeam ...
	ErrCreateTeam = NewHTTPError(6021, "创建团队信息失败")
	// ErrGetTeam ...
	ErrGetTeam = NewHTTPError(6022, "根据ID获取团队信息失败")
	// ErrListTeams ...
	ErrListTeams = NewHTTPError(6023, "列出团队信息失败")
	// ErrUpdateTeam ...
	ErrUpdateTeam = NewHTTPError(6024, "更新团队信息失败")
	// ErrDeleteTeam ...
	ErrDeleteTeam = NewHTTPError(6025, "删除团队信息失败")
	// ErrFindUserTeams ...
	ErrFindUserTeams = NewHTTPError(6026, "获取用户团队信息失败")
	// ErrCreateProductTeam
	ErrCreateProductTeam = NewHTTPError(6027, "创建项目团队信息失败")
	// ErrDeleteProductTeam
	ErrDeleteProductTeam = NewHTTPError(6028, "删除项目团队信息失败")

	// ErrCreateTemplate ...
	ErrCreateTemplate = NewHTTPError(6040, "创建模板失败")
	// ErrUpdateTemplate ...
	ErrUpdateTemplate = NewHTTPError(6041, "更新模板失败")
	// ErrListTemplate ...
	ErrListTemplate = NewHTTPError(6042, "列出模板失败")
	// ErrGetTemplate ...
	ErrGetTemplate = NewHTTPError(6043, "获取模板失败")
	// ErrDeleteTemplate ...
	ErrDeleteTemplate = NewHTTPError(6044, "删除模板失败")
	// ErrValidateTemplate ...
	ErrValidateTemplate = NewHTTPError(6045, "验证模板失败")
	// ErrCountTemplate ...
	ErrCountTemplate = NewHTTPError(6046, "模板计数失败")
	// ErrGetRenderSetKeys ...
	ErrGetRenderSetKeys = NewHTTPError(6047, "获取渲染配置键失败")
	// ErrCreateRenderSet ...
	ErrCreateRenderSet = NewHTTPError(6048, "创建渲染配置集失败")
	// ErrListRenderSets ...
	ErrListRenderSets = NewHTTPError(6049, "列出渲染配置集失败")
	// ErrDeleteRenderSet ...
	ErrDeleteRenderSet = NewHTTPError(6050, "删除渲染配置集失败")
	// ErrSetDefaultRenderSet ...
	ErrSetDefaultRenderSet = NewHTTPError(6051, "设置默认渲染配置集失败")
	// ErrGetRenderSet ...
	ErrGetRenderSet = NewHTTPError(6052, "获取渲染配置集失败")
	// ErrUpdateRenderSet ...
	ErrUpdateRenderSet = NewHTTPError(6053, "更新渲染配置集失败")
	// ErrPreloadServiceTemplate
	ErrPreloadServiceTemplate = NewHTTPError(6054, "从代码库获取服务列表失败")
	// ErrLoadServiceTemplate
	ErrLoadServiceTemplate = NewHTTPError(6055, "从代码库导入服务失败")
	// ErrUpdateServiceGroupTemplate
	ErrUpdateServiceGroupTemplate = NewHTTPError(6056, "更新服务组失败")
	// ErrValidateServiceUpdate
	ErrValidateServiceUpdate = NewHTTPError(6057, "更新服务配置失败")
	// ErrChartDryRun
	ErrHelmDryRunFailed            = NewHTTPError(6058, "helm chart --dry-run 失败,服务保存不成功")
	ErrListServiceTemplateVersions = NewHTTPError(6059, "列出服务模版版本失败")
	// FIXME: run out of error code
	ErrDiffServiceTemplateVersions    = NewHTTPError(6040, "Diff服务模版版本失败")
	ErrRollbackServiceTemplateVersion = NewHTTPError(6041, "回滚服务模版版本失败")

	// ErrCreateProduct ...
	ErrCreateProduct = NewHTTPError(6060, "创建项目失败")
	// ErrListProducts ...
	ErrListProducts = NewHTTPError(6061, "列出项目失败")
	// ErrUpdateProduct ...
	ErrUpdateProduct = NewHTTPError(6062, "更新项目失败")
	// ErrDeleteProduct ...
	ErrDeleteProduct = NewHTTPError(6063, "删除项目失败")
	// ErrDeleteProducts ...
	ErrDeleteProductTempl = NewHTTPError(6079, "项目删除检查失败,因为存在正在使用的环境!")
	// ErrGetProduct ...
	ErrGetProduct = NewHTTPError(6073, "获取项目失败")
	// ErrListActiveProducts ...
	ErrListActiveProducts = NewHTTPError(6064, "列出创建,更新,删除中项目失败")
	// ErrListGroups ...
	ErrListGroups = NewHTTPError(6065, "列出服务组失败")
	// ErrListProductsRevision ...
	ErrListProductsRevision = NewHTTPError(6066, "列出产品版本失败")
	// ErrGetProductRevision ...
	ErrGetProductRevision = NewHTTPError(6067, "获取产品版本失败")
	// ErrFindProduct ...
	ErrFindProduct = NewHTTPError(6068, "获取环境失败")
	// ErrGetProductAuth ...
	ErrGetProductAuth = NewHTTPError(6069, "获取产品权限失败")
	// ErrUpdateProductAuth ...
	ErrUpdateProductAuth = NewHTTPError(6070, "更新产品权限失败")
	// ErrPatchProduct ...
	ErrPatchProduct = NewHTTPError(6071, "产品支持集成测试覆盖率失败")
	// ErrStopPatchProduct ...
	ErrStopPatchProduct = NewHTTPError(6072, "产品收集集成测试覆盖率失败")
	// ErrCreateEnv ...
	ErrCreateEnv = NewHTTPError(6074, "创建环境失败")
	// ErrListEnvs ...
	ErrListEnvs = NewHTTPError(6075, "列出环境失败")
	// ErrUpdateEnv ...
	ErrUpdateEnv    = NewHTTPError(6076, "更新环境失败")
	ErrUpdateEnvCfg = NewHTTPError(6076, "更新环境资源配置失败")
	// ErrDeleteEnv ...
	ErrDeleteEnv = NewHTTPError(6077, "删除环境失败")
	// ErrGetEnv ...
	ErrGetEnv = NewHTTPError(6078, "获取环境失败")
	// ErrFindProductTmpl ...
	ErrFindProductTmpl = NewHTTPError(6079, "项目已删除,环境正在回收中")
	// TODO: max error code reached, sharing error code with create product
	ErrForkProduct = NewHTTPError(6060, "Fork开源项目失败")
	// TODO: max error code reached, sharing error code with delete product
	ErrUnForkProduct = NewHTTPError(6063, "删除Fork环境失败")
	// TODO: max error code reached, sharing error code with get env
	ErrGetEnvConfigs = NewHTTPError(6078, "获取环境配置失败")
	// TODO: max error code reached, sharing error code with update env
	ErrUpdateEnvConfigs = NewHTTPError(6076, "更新环境配置失败")
	// TODO: max error code reached, sharing error code with update env
	ErrEnvSleep                  = NewHTTPError(6076, "环境睡眠失败")
	ErrCreateProjectGroup        = NewHTTPError(6077, "创建项目分组失败")
	ErrUpdateProjectGroup        = NewHTTPError(6077, "更新项目分组失败")
	ErrDeleteProjectGroup        = NewHTTPError(6077, "删除项目分组失败")
	ErrListEnvServiceVersions    = NewHTTPError(6079, "列出环境服务版本失败")
	ErrDiffEnvServiceVersions    = NewHTTPError(6079, "Diff环境服务版本失败")
	ErrRollbackEnvServiceVersion = NewHTTPError(6079, "回滚环境服务版本失败")

	// ErrRestartService ...
	ErrRestartService = NewHTTPError(6080, "重启服务失败")
	// ErrScaleService ...
	ErrScaleService = NewHTTPError(6081, "伸缩服务失败")
	// ErrUpdateConainterImage ...
	ErrUpdateConainterImage = NewHTTPError(6082, "更新服务镜像失败")
	// ErrGetService ...
	ErrGetService = NewHTTPError(6083, "获取服务失败")
	// ErrGetServiceContainer ...
	ErrGetServiceContainer = NewHTTPError(6084, "获取服务容器失败")
	// ErrListServicePod ...
	ErrListServicePod = NewHTTPError(6085, "列出服务Pod失败")
	// ErrDeletePod ...
	ErrDeletePod = NewHTTPError(6086, "删除服务Pod失败")
	// ErrGetConfigMap ...
	ErrGetConfigMap = NewHTTPError(6087, "获取服务配置失败")
	// ErrListConfigMaps ...
	ErrListConfigMaps = NewHTTPError(6088, "列出服务配置失败")
	// ErrUpdateConfigMap ...
	ErrUpdateConfigMap = NewHTTPError(6089, "更新服务配置失败")
	// ErrCreateConfigMap ...
	ErrCreateConfigMap = NewHTTPError(6090, "创建服务配置失败")
	// ErrRollBackConfigMap ...
	ErrRollBackConfigMap = NewHTTPError(6091, "回滚服务配置失败")
	// ErrUpdateService ...
	ErrUpdateService = NewHTTPError(6092, "更新服务失败")
	// ErrListPodEvents ...
	ErrListPodEvents = NewHTTPError(6093, "列出服务事件失败")
	//ErrListResources ...
	ErrListResources = NewHTTPError(6094, "列出对象资源失败")
	//ErrUpdateResource ...
	ErrUpdateResource = NewHTTPError(6095, "更新对象资源失败")
	//ErrDeleteResource ...
	ErrDeleteResource = NewHTTPError(6096, "删除对象资源失败")
	//ErrGetPodFile
	ErrGetPodFile = NewHTTPError(6097, "下载Pod文件失败")
	//ErrGetResourceDeploy
	ErrGetResourceDeployInfo = NewHTTPError(6098, "获取资源部署状态失败")
	// ErrLoginPm ...
	ErrLoginPm = NewHTTPError(6099, "登录主机失败")

	ErrDeleteSvcHasSvcsInSubEnv = NewHTTPError(6094, "删除服务失败,待删除服务存在于子环境中")
	ErrPreviewYaml              = NewHTTPError(6150, "预览Yaml失败")
	ErrAnalysisEnvResource      = NewHTTPError(6151, "AI环境巡检失败")
	ErrListPod                  = NewHTTPError(6152, "列出Pod失败")
	ErrGetPodDetail             = NewHTTPError(6153, "获取Pod详情失败")

	// ErrGetItReport ...
	ErrGetItReport = NewHTTPError(6100, "获取测试报告失败")
	// ErrUpsertItReport ...
	ErrUpsertItReport = NewHTTPError(6101, "更新测试报告失败")

	// ErrGetInstall ...
	ErrGetInstall = NewHTTPError(6120, "获取安装脚本失败")
	// ErrCreateInstall ...
	ErrCreateInstall = NewHTTPError(6121, "创建安装脚本失败")
	// ErrUpdateInstall ...
	ErrUpdateInstall = NewHTTPError(6122, "更新安装脚本失败")
	// ErrListInstalls ...
	ErrListInstalls = NewHTTPError(6123, "列出安装脚本失败")
	// ErrDeleteInstall ...
	ErrDeleteInstall = NewHTTPError(6124, "删除安装脚本失败")

	// ErrCreatePipeline ...
	ErrCreatePipeline = NewHTTPError(6140, "创建工作流失败")
	// ErrUpdatePipeline ...
	ErrUpdatePipeline = NewHTTPError(6141, "更新工作流失败")
	// ErrListPipeline ...
	ErrListPipeline = NewHTTPError(6142, "列出工作流失败")
	// ErrGetPipeline ...
	ErrGetPipeline = NewHTTPError(6143, "获取工作流失败")
	// ErrDeletePipeline ...
	ErrDeletePipeline = NewHTTPError(6144, "删除工作流失败")
	// ErrExistsPipeline ...
	ErrExistsPipeline = NewHTTPError(6145, "工作流已经存在")
	// ErrCleanWorkspace ...
	ErrCleanWorkspace = NewHTTPError(6146, "清理工作目录失败")
	// ErrListWorkspace ...
	ErrListWorkspace = NewHTTPError(6147, "列出工作目录失败")
	// ErrGetWorkspaceFile ...
	ErrGetWorkspaceFile = NewHTTPError(6147, "获取工作目录文件失败")
	// ErrRenamePipeline ...
	ErrRenamePipeline = NewHTTPError(6148, "更新工作流名称失败")
	// ErrListFavorite
	ErrListFavorite = NewHTTPError(6149, "列出收藏失败")
	// ErrFilePath
	ErrFilePath = NewHTTPError(6150, "获取文件目录失败")
	// ErrFileContent
	ErrFileContent = NewHTTPError(6151, "获取文件内容失败")
	// ErrListRepoDir
	ErrListRepoDir = NewHTTPError(6152, "列出repo目录失败")

	// ErrCreateTask ...
	ErrCreateTask = NewHTTPError(6160, "创建工作流任务失败")
	// ErrGetTask ...
	ErrGetTask = NewHTTPError(6161, "获取工作流任务失败")
	// ErrListTasks ...
	ErrListTasks = NewHTTPError(6162, "列出工作流任务失败")
	// ErrCancelTask ...
	ErrCancelTask = NewHTTPError(6163, "取消工作流任务失败")
	// ErrRestartTask ...
	ErrRestartTask = NewHTTPError(6164, "重试工作流任务失败")
	// ErrListPipelinesTaskStatus ...
	ErrListPipelinesTaskStatus = NewHTTPError(6165, "列出工作流任务状态失败")
	// ErrCreateGithubTask ...
	ErrCreateGithubTask = NewHTTPError(6166, "创建Git工作流任务失败")
	// ErrCountTasks ...
	ErrCountTasks = NewHTTPError(6167, "工作流计数失败")

	ErrCreateTaskFailed = NewHTTPError(6168, "创建工作流任务失败")

	// ErrApproveTask ...
	ErrApproveTask = NewHTTPError(6169, "批准工作流任务失败")

	// ErrSetBreakpoint
	ErrSetBreakpoint = NewHTTPError(6170, "修改断点状态失败")

	// ErrStopDebugShell
	ErrStopDebugShell = NewHTTPError(6171, "结束调试步骤失败")

	// ErrGetDebugShell
	ErrGetDebugShell = NewHTTPError(6172, "获取调试 Shell 失败")

	// ErrUpsertKeyStore ...
	ErrUpsertKeyStore = NewHTTPError(6180, "更新敏感信息失败")
	// ErrListKeyStores ...
	ErrListKeyStores = NewHTTPError(6181, "列出敏感信息失败")

	// ErrGetCounter ...
	ErrGetCounter = NewHTTPError(6190, "获取计数器失败")
	// ErrCreateCounter ...
	ErrCreateCounter = NewHTTPError(6191, "创建计数器失败")
	// ErrUpdateCounter ...
	ErrUpdateCounter = NewHTTPError(6192, "更新计数器失败")
	// ErrDeleteCounter ...
	ErrDeleteCounter = NewHTTPError(6193, "删除计数器失败")

	// ErrGithubListRepos ...
	ErrGithubListRepos = NewHTTPError(6200, "列出Git仓库失败")
	// ErrGithubListBranches ...
	ErrGithubListBranches = NewHTTPError(6201, "列出Git仓库分支失败")
	// ErrGithubListPullRequests ...
	ErrGithubListPullRequests = NewHTTPError(6202, "列出Git仓库PR失败")
	// ErrGithubGetPullRequest ...
	ErrGithubGetPullRequest = NewHTTPError(6203, "获取仓库PR失败")
	// ErrGithubListCommits ...
	ErrGithubListCommits = NewHTTPError(6204, "列出仓库Commit失败")
	// ErrGithubCreateHook ...
	ErrGithubCreateHook = NewHTTPError(6205, "创建仓库WebHook失败")
	// ErrGithubQueryPullRequestsWithCommits ...
	ErrGithubQueryPullRequestsWithCommits = NewHTTPError(6206, "根据起始结束Commit列出Git仓库PR失败")
	// ErrGithubWebHook ...
	ErrGithubWebHook = NewHTTPError(6207, "trigger pipeline error")
	// ErrGithubListTags ...
	ErrGithubListTags = NewHTTPError(6208, "列出 Git Tags 失败")
	// ErrGithubListReleases ...
	ErrGithubListReleases = NewHTTPError(6209, "列出 Git Releases 失败")
	// ErrGithubUpdateStatus ...
	ErrGithubUpdateStatus = NewHTTPError(6210, "更新 Git Status 失败")
	// ErrGithubListInfos ...
	ErrGithubListInfos = NewHTTPError(6211, "列出 Git 信息失败")

	// ErrCreateNotify ...
	ErrCreateNotify = NewHTTPError(6220, "创建消息失败")
	// ErrUpdateNotify ...
	ErrUpdateNotify = NewHTTPError(6229, "更新消息失败")
	// ErrDeleteNotifies ...
	ErrDeleteNotifies = NewHTTPError(6227, "删除消息失败")
	// ErrReadNotify ...
	ErrReadNotify = NewHTTPError(6226, "设置已读消息失败")
	// ErrPullNotifyAnnouncement ...
	ErrPullNotifyAnnouncement = NewHTTPError(6221, "获取公告失败")
	// ErrPullAllAnnouncement ...
	ErrPullAllAnnouncement = NewHTTPError(6222, "获取公告失败")
	// ErrPullNotify ..
	ErrPullNotify = NewHTTPError(6223, "获取消息失败")

	// ErrSubscribeNotify ...
	ErrSubscribeNotify = NewHTTPError(6224, "订阅消息失败")
	// ErrUnsubscribeNotify ...
	ErrUnsubscribeNotify = NewHTTPError(6225, "取消订阅消息失败")
	// ErrListSubscriptions ...
	ErrListSubscriptions = NewHTTPError(6228, "列订阅消息失败")
	// ErrUpdateSubscribe ...
	ErrUpdateSubscribe = NewHTTPError(6230, "更新订阅失败")

	// ErrQueryContainerLogs ...
	ErrQueryContainerLogs = NewHTTPError(6260, "查询容器日志失败")
	// ErrBuildJobContainerLogs ...
	ErrBuildJobContainerLogs = NewHTTPError(6261, "查询编译容器日志失败")
	// ErrTestJobContainerLogs ...
	ErrTestJobContainerLogs = NewHTTPError(6262, "查询测试容器日志失败")

	// ErrListImages ...
	ErrListImages   = NewHTTPError(6280, "列出镜像失败")
	ErrFindRegistry = NewHTTPError(6281, "找不到指定的镜像仓库")

	// ErrGetTeamInsights ...
	ErrGetTeamInsights = NewHTTPError(6300, "获取团队统计信息失败")
	// ErrGetProductInsights ...
	ErrGetProductInsights = NewHTTPError(6301, "获取产品统计信息失败")
	// ErrGetPipelineInsights ...
	ErrGetPipelineInsights = NewHTTPError(6302, "获取工作流统计信息失败")
	// ErrCreateInsightsConfig ...
	ErrCreateInsightsConfig = NewHTTPError(6303, "创建仪表盘配置失败")
	// ErrListInsightsConfig ...
	ErrListInsightsConfig = NewHTTPError(6304, "列出仪表盘配置失败")
	// ErrUpdateInsightsConfig ...
	ErrUpdateInsightsConfig = NewHTTPError(6305, "更新仪表盘配置失败")
	// ErrDeleteInsightsConfig ...
	ErrDeleteInsightsConfig = NewHTTPError(6306, "删除仪表盘配置失败")
	// ErrGetProjectInsights ...
	ErrGetProjectInsights = NewHTTPError(6307, "获取项目进度信息失败")
	// ErrGetQualityInsights ...
	ErrGetQualityInsights = NewHTTPError(6308, "获取质量现状信息失败")

	// ErrCreateNamspace ...
	ErrCreateNamspace = NewHTTPError(6400, "创建用户namespace失败")
	// ErrCreateSecret ...
	ErrCreateSecret = NewHTTPError(6401, "创建secret失败")
	// ErrUpdateSecret ...
	ErrUpdateSecret     = NewHTTPError(6402, "更新secret失败")
	ErrListK8sResources = NewHTTPError(6403, "列出资源失败")
	ErrGetK8sResource   = NewHTTPError(6404, "查看资源详情失败")

	// ErrGitlabListProjects ...
	ErrGitlabListProjects = NewHTTPError(6500, "列出Gitlab仓库失败")
	// ErrGitlabListGroupProjects ...
	ErrGitlabListGroupProjects = NewHTTPError(6504, "列出Gitlab仓库失败2")
	// ErrGitlabGetProject ...
	ErrGitlabGetProject = NewHTTPError(6501, "查询Gitlab仓库失败")
	// ErrGitlabListBranches ...
	ErrGitlabListBranches = NewHTTPError(6502, "列出Gitlab仓库分支失败")
	// ErrGitlabListMergsRequests ...
	ErrGitlabListMergsRequests = NewHTTPError(6503, "列出Gitlab仓库MR失败")

	// ErrCreateBuildModule ...
	ErrCreateBuildModule = NewHTTPError(6520, "新建编译模块失败")
	// ErrUpdateBuildModule ...
	ErrUpdateBuildModule = NewHTTPError(6521, "更新编译模块失败")
	// ErrListBuildModule ...
	ErrListBuildModule = NewHTTPError(6522, "列出编译模块失败")
	// ErrGetBuildModule ...
	ErrGetBuildModule = NewHTTPError(6523, "查询编译模块失败")
	// ErrDeleteBuildModule ...
	ErrDeleteBuildModule = NewHTTPError(6524, "删除构建模块失败")
	// ErrUpdateBuildParam ...
	ErrUpdateBuildParam = NewHTTPError(6525, "更新参数化配置失败")
	// ErrUpdateBuildServiceTmpls ...
	ErrUpdateBuildServiceTmpls = NewHTTPError(6526, "更新关联服务模板失败")
	// ErrConvertSubTasks ...
	ErrConvertSubTasks = NewHTTPError(6527, "转换工作流任务失败")
	// ErrConvertBuildModule ...
	ErrConvertBuildModule = NewHTTPError(6528, "转换编译模块失败")
	// ErrCreateTestModule ...
	ErrCreateTestModule = NewHTTPError(6529, "新建测试模块失败")
	// ErrUpdateTestModule ...
	ErrUpdateTestModule = NewHTTPError(6530, "更新测试模块失败")
	// ErrListTestModule ...
	ErrListTestModule = NewHTTPError(6531, "列出测试模块失败")
	// ErrGetTestModule ...
	ErrGetTestModule = NewHTTPError(6532, "获取测试模块失败")
	// ErrDeleteTestModule ...
	ErrDeleteTestModule = NewHTTPError(6533, "删除测试模块失败")
	// ErrGetTestReport ...
	ErrGetTestReport = NewHTTPError(6534, "获取html测试报告失败")
	// ErrCreateScanningModule ...
	ErrCreateScanningModule = NewHTTPError(6535, "新建扫描模块失败")
	// ErrCreateScanningModule ...
	ErrUpdateScanningModule = NewHTTPError(6536, "更新扫描模块失败")

	// ErrUpsertWorkflow ...
	ErrUpsertWorkflow = NewHTTPError(6540, "新建或更新wokflow失败")
	// ErrListWorkflow ...
	ErrListWorkflow = NewHTTPError(6541, "列出workflow失败")
	// ErrFindWorkflow ...
	ErrFindWorkflow = NewHTTPError(6542, "查询workflow失败")
	// ErrDeleteWorkflow ...
	ErrDeleteWorkflow = NewHTTPError(6543, "删除workflow失败")
	// ErrFilterWorkflowVars ...
	ErrFilterWorkflowVars = NewHTTPError(6544, "过滤workflow服务变量失败")
	// ErrFindWorkflow ...
	ErrPresetWorkflow = NewHTTPError(6545, "预配置workflow失败")

	//-----------------------------------------------------------------------------------------------
	// Directory APIs Range: 6550 - 6560
	//-----------------------------------------------------------------------------------------------
	//ErrListCodehosts = NewHTTPError(6560, "列出Codehost失败")
	ErrCodehostListNamespaces = NewHTTPError(6550, "请确认是否为有效代码源,列出Namespace失败")
	ErrCodehostListProjects   = NewHTTPError(6551, "请确认是否为有效代码源,列出仓库失败")
	ErrCodehostListBranches   = NewHTTPError(6552, "请确认是否为有效代码源,列出分支失败")
	ErrCodehostListPrs        = NewHTTPError(6553, "请确认是否为有效代码源,列出pr失败")
	ErrCodehostListTags       = NewHTTPError(6554, "请确认是否为有效代码源,列出tag失败")
	ErrCodehostListCommits    = NewHTTPError(6555, "请确认是否为有效代码源,列出commit失败")

	ErrCreateDeliveryVersion = NewHTTPError(6560, "新建交付中心版本失败")
	ErrFindDeliveryVersion   = NewHTTPError(6561, "获取交付中心版本列表失败")
	ErrDeleteDeliveryVersion = NewHTTPError(6562, "删除交付中心版本失败")
	ErrGetDeliveryVersion    = NewHTTPError(6563, "查询交付中心版本失败")
	ErrFindDeliveryProducts  = NewHTTPError(6564, "查询交付中心产品列表失败")
	ErrUpdateDeliveryVersion = NewHTTPError(6565, "更新交付中心版本失败")

	//-----------------------------------------------------------------------------------------------
	// delivery_build APIs Range: 6570 - 6579
	//-----------------------------------------------------------------------------------------------
	ErrCreateDeliveryBuild = NewHTTPError(6570, "新建交付中心buildInfo失败")
	ErrFindDeliveryBuild   = NewHTTPError(6571, "获取交付中心buildnfo列表失败")
	ErrDeleteDeliveryBuild = NewHTTPError(6572, "删除交付中心buildnfo失败")
	ErrGetDeliveryBuild    = NewHTTPError(6573, "查询交付中心buildnfo失败")

	//-----------------------------------------------------------------------------------------------
	// delivery_deploy APIs Range: 6580 - 6589
	//-----------------------------------------------------------------------------------------------
	ErrCreateDeliveryDeploy = NewHTTPError(6580, "新建交付中心deploynfo失败")
	ErrFindDeliveryDeploy   = NewHTTPError(6581, "获取交付中心deploynfo失败")
	ErrDeleteDeliveryDeploy = NewHTTPError(6582, "删除交付中心deploynfo失败")
	ErrGetDeliveryDeploy    = NewHTTPError(6583, "查询交付中心deploynfo失败")

	//-----------------------------------------------------------------------------------------------
	// delivery_distribute APIs Range: 6590 - 6599
	//-----------------------------------------------------------------------------------------------
	ErrCreateDeliveryDistribute = NewHTTPError(6590, "新建交付中心distributeInfo失败")
	ErrFindDeliveryDistribute   = NewHTTPError(6591, "获取交付中心distributeInfo列表失败")
	ErrDeleteDeliveryDistribute = NewHTTPError(6592, "删除交付中心distributeInfo失败")
	ErrGetDeliveryDistribute    = NewHTTPError(6593, "查询交付中心distributeInfo失败")

	//-----------------------------------------------------------------------------------------------
	// delivery_test APIs Range: 6600 - 6609
	//-----------------------------------------------------------------------------------------------
	ErrCreateDeliveryTest = NewHTTPError(6600, "新建交付中心testInfo失败")
	ErrFindDeliveryTest   = NewHTTPError(6601, "获取交付中心testInfo列表失败")
	ErrDeleteDeliveryTest = NewHTTPError(6602, "删除交付中心testInfo失败")
	ErrGetDeliveryTest    = NewHTTPError(6603, "查询交付中心testInfo失败")

	//-----------------------------------------------------------------------------------------------
	// delivery_security APIs Range: 6620 - 6629
	//-----------------------------------------------------------------------------------------------
	ErrCreateDeliverySecurity    = NewHTTPError(6610, "新建交付中心安全扫描信息失败")
	ErrFindDeliverySecurity      = NewHTTPError(6611, "获取交付中心安全扫描列表失败")
	ErrDeleteDeliverySecurity    = NewHTTPError(6612, "删除交付中心安全扫描失败")
	ErrGetDeliverySecurity       = NewHTTPError(6613, "查询交付中心安全扫描失败")
	ErrFindDeliverySecurityStats = NewHTTPError(6614, "获取安全扫描统计结果失败")

	//-----------------------------------------------------------------------------------------------
	// S3Storage Manage APIs Range: 6630 - 6639
	//-----------------------------------------------------------------------------------------------
	ErrValidateS3Storage    = NewHTTPError(6630, "无法连接指定的对象存储块")
	ErrFindDefaultS3Storage = NewHTTPError(6631, "没有配置默认的对象存储")
	ErrS3Storage            = NewHTTPError(6632, "对象存储参数错误")
	ErrFindS3               = NewHTTPError(6633, "未找到s3的配置")
	ErrFindS3Storage        = NewHTTPError(6634, "未找到指定对象存储")

	// K8SCluster Manage APIs Range: 6640 - 6650
	//-----------------------------------------------------------------------------------------------
	ErrListK8SCluster        = NewHTTPError(6640, "列出集群列表失败")
	ErrCreateCluster         = NewHTTPError(6641, "创建集群失败")
	ErrUpdateCluster         = NewHTTPError(6642, "更新集群失败")
	ErrClusterNotFound       = NewHTTPError(6643, "未找到指定集群")
	ErrDeleteCluster         = NewHTTPError(6644, "删除集群失败")
	ErrDeleteClusterStrategy = NewHTTPError(6645, "删除集群调度策略失败")

	//-----------------------------------------------------------------------------------------------
	// operation APIs Range: 6650 - 6659
	//-----------------------------------------------------------------------------------------------
	ErrCreateOperationLog    = NewHTTPError(6651, "添加操作日志失败")
	ErrFindOperationLog      = NewHTTPError(6652, "获取操作日志列表失败")
	ErrFindOperationLogCount = NewHTTPError(6653, "获取操作日志总数失败")
	ErrUpdateOperationLog    = NewHTTPError(6654, "更新操作日志失败")

	//-----------------------------------------------------------------------------------------------
	// operation APIs Range: 6660 - 6669
	//-----------------------------------------------------------------------------------------------
	ErrCreateArtifact       = NewHTTPError(6661, "添加交付信息失败")
	ErrFindArtifact         = NewHTTPError(6662, "获取交付物信息失败")
	ErrFindArtifacts        = NewHTTPError(6663, "获取交付物列表失败")
	ErrCreateActivity       = NewHTTPError(6664, "添加交付事件失败")
	ErrFindActivities       = NewHTTPError(6665, "获取交付事件列表失败")
	ErrCreateArtifactFailed = NewHTTPError(6666, "该交付物已经存在")

	//-----------------------------------------------------------------------------------------------
	// basicImage APIs Range: 6670 - 6679
	//-----------------------------------------------------------------------------------------------
	ErrGetBasicImage        = NewHTTPError(6671, "获取基础镜像失败")
	ErrCreateBasicImage     = NewHTTPError(6672, "创建基础镜像失败")
	ErrUpdateBasicImage     = NewHTTPError(6673, "更新基础镜像失败")
	ErrListBasicImages      = NewHTTPError(6674, "列出基础镜像失败")
	ErrDeleteBasicImage     = NewHTTPError(6675, "删除基础镜像失败")
	ErrDeleteUsedBasicImage = NewHTTPError(6676, "删除基础镜像失败,此基础镜像已经被引用,请确认")

	//-----------------------------------------------------------------------------------------------
	// privateKey APIs Range: 6680 - 6689
	//-----------------------------------------------------------------------------------------------
	ErrGetPrivateKey        = NewHTTPError(6681, "获取私钥失败")
	ErrCreatePrivateKey     = NewHTTPError(6682, "创建私钥失败")
	ErrUpdatePrivateKey     = NewHTTPError(6683, "更新私钥失败")
	ErrListPrivateKeys      = NewHTTPError(6684, "列出私钥失败")
	ErrDeletePrivateKey     = NewHTTPError(6685, "删除私钥失败")
	ErrDeleteUsedPrivateKey = NewHTTPError(6686, "删除私钥失败,此私钥已经被引用,请确认")
	ErrBulkCreatePrivateKey = NewHTTPError(6687, "批量创建私钥失败")

	//-----------------------------------------------------------------------------------------------
	// signature APIs Range: 6690 - 6699
	//-----------------------------------------------------------------------------------------------
	ErrCreateSignature = NewHTTPError(6691, "添加或更新License失败")
	ErrDeleteSignature = NewHTTPError(6692, "删除License失败")
	ErrListSignatures  = NewHTTPError(6693, "列出License失败")

	//-----------------------------------------------------------------------------------------------
	// sonar APIs Range: 6700 - 6800
	//-----------------------------------------------------------------------------------------------
	ErrRepositoryList             = NewHTTPError(6701, "列出repo失败")
	ErrRepoQualityGateFind        = NewHTTPError(6702, "查询RepoQualityGate失败")
	ErrCollectCodeCoverage        = NewHTTPError(6703, "搜集代码覆盖率数据失败")
	ErrListCodeCoverageDetails    = NewHTTPError(6704, "列出代码覆盖率详情失败")
	ErrGetDeliveryMeasureInfo     = NewHTTPError(6705, "获取交付度量失败")
	ErrAnalyzeSonar               = NewHTTPError(6706, "Sonar分析失败")
	ErrCollectSonar               = NewHTTPError(6707, "收集Sonar数据失败")
	ErrListIssueMeasures          = NewHTTPError(6708, "列出IssueMeasure失败")
	ErrListSecurityMeasureDetails = NewHTTPError(6709, "列出SecurityMeasureDetail失败")
	ErrListSecurityMeasureCount   = NewHTTPError(6710, "列出SecurityMeasureCount失败")
	ErrListMeasuresByTeam         = NewHTTPError(6711, "列出团队Measures失败")
	ErrListMeasuresByOrg          = NewHTTPError(6712, "列出组织Measures失败")
	ErrListMeasuresByRepo         = NewHTTPError(6713, "列出repo Measures失败")
	ErrListMeasuresByProduct      = NewHTTPError(6714, "列出项目Measures失败")
	ErrGetProductMeasureByOrg     = NewHTTPError(6715, "获取组织ProductMeasure失败")
	ErrGetMeasureHistoryByRepo    = NewHTTPError(6716, "获取团队MeasureHistory失败")
	ErrMeasureTranslation         = NewHTTPError(6717, "获取MeasureTranslation失败")
	ErrListMeasureData            = NewHTTPError(6718, "列出MeasureData失败")
	ErrGetIndexInMeasure          = NewHTTPError(6719, "获取measure index失败")
	ErrUpdateIndexInMeasure       = NewHTTPError(6720, "更新measure index失败")
	ErrUpdateQualityGates         = NewHTTPError(6721, "更新QualityGates失败")
	ErrQueryCIScript              = NewHTTPError(6722, "查询CI脚本失败")
	ErrGetTeamQualityGates        = NewHTTPError(6723, "获取团队QualityGates失败")
	ErrGetProductQualityGates     = NewHTTPError(6724, "获取项目QualityGates失败")
	ErrUpdateProductQualityGates  = NewHTTPError(6725, "更新项目QualityGates失败")
	ErrGetPublicScripts           = NewHTTPError(6726, "获取公开脚本失败")
	ErrGetRepositories            = NewHTTPError(6727, "获取仓库失败失败")
	ErrExtendRepos                = NewHTTPError(6728, "扩展仓库数据数据失败")
	ErrGetRepositoryNotInCi       = NewHTTPError(6729, "获取非CI仓库失败")
	ErrGetRepoNamespace           = NewHTTPError(6730, "获取RepoNamespace失败")
	ErrModifyRepo                 = NewHTTPError(6731, "更新仓库失败")
	ErrListProductRepos           = NewHTTPError(6732, "列出项目仓库失败")
	ErrListTeamRepos              = NewHTTPError(6733, "列出团队仓库失败")
	ErrModifyRepoInTeam           = NewHTTPError(6734, "更新团队仓库失败")
	ErrRemoveTeamRepos            = NewHTTPError(6735, "移除团队仓库失败")
	ErrSyncCodehost               = NewHTTPError(6736, "同步codehost失败")
	ErrRemoveRepos                = NewHTTPError(6737, "移除仓库失败")
	ErrGetBuildDetails            = NewHTTPError(6738, "获取构建详情失败")
	ErrGetMeasureInfo             = NewHTTPError(6739, "获取度量信息失败")
	ErrPullTestsMeasure           = NewHTTPError(6740, "拉取持续交付数据失败")
	ErrPullDeliveryMeasure        = NewHTTPError(6741, "拉取持续部署数据失败")
	ErrPullRepos                  = NewHTTPError(6742, "同步代码库失败")

	//-----------------------------------------------------------------------------------------------
	// proxy APIs Range: 6800 - 6809
	//-----------------------------------------------------------------------------------------------
	ErrGetProxy         = NewHTTPError(6801, "获取代理失败")
	ErrCreateProxy      = NewHTTPError(6802, "创建代理失败")
	ErrUpdateProxy      = NewHTTPError(6803, "更新代理失败")
	ErrListProxies      = NewHTTPError(6804, "列出代理失败")
	ErrDeleteProxy      = NewHTTPError(6805, "删除代理失败")
	ErrTestConnection   = NewHTTPError(6806, "代理连接测试失败")
	ErrForwardOperation = NewHTTPError(6807, "上报数据转发失败")

	//-----------------------------------------------------------------------------------------------
	// Cronjob Error Range: 6810 - 6819
	//-----------------------------------------------------------------------------------------------
	ErrUpsertCronjob = NewHTTPError(6810, "更新定时器失败")
	ErrGetCronjob    = NewHTTPError(6811, "获取定时器失败")

	//-----------------------------------------------------------------------------------------------
	// dindClean Error Range: 6820 - 6829
	//-----------------------------------------------------------------------------------------------
	ErrDindClean       = NewHTTPError(6820, "系统正在清理中,请等待...")
	ErrCreateDindClean = NewHTTPError(6821, "创建镜像缓存清理失败")
	ErrUpdateDindClean = NewHTTPError(6822, "更新镜像缓存清理失败")
	ErrCleanDindClean  = NewHTTPError(6823, "清理镜像缓存失败")

	//-----------------------------------------------------------------------------------------------
	// jenkins integraton Error Range: 6830 - 6839
	//-----------------------------------------------------------------------------------------------
	ErrCreateJenkinsIntegration = NewHTTPError(6831, "创建jenkins集成失败")
	ErrListJenkinsIntegration   = NewHTTPError(6832, "获取jenkins集成列表失败")
	ErrUpdateJenkinsIntegration = NewHTTPError(6833, "更新jenkins集成失败")
	ErrDeleteJenkinsIntegration = NewHTTPError(6834, "删除jenkins集成失败")
	ErrTestJenkinsConnection    = NewHTTPError(6835, "用户名或者密码不正确")
	ErrListJobNames             = NewHTTPError(6836, "获取job名称列表失败")
	ErrListJobBuildArgs         = NewHTTPError(6837, "获取job构建参数列表失败")

	//-----------------------------------------------------------------------------------------------
	// external link Error Range: 6840 - 6849
	//-----------------------------------------------------------------------------------------------
	ErrCreateExternalLink = NewHTTPError(6841, "创建链接失败")
	ErrUpdateExternalLink = NewHTTPError(6842, "更新链接失败")
	ErrDeleteExternalLink = NewHTTPError(6843, "删除链接失败")
	ErrListExternalLink   = NewHTTPError(6844, "获取链接列表失败")

	//-----------------------------------------------------------------------------------------------
	// helm releated Error Range: 6850 - 6869
	//-----------------------------------------------------------------------------------------------
	ErrListHelmReleases = NewHTTPError(6850, "获取release失败")
	ErrGetHelmCharts    = NewHTTPError(6851, "获取chart信息失败")
	ErrEditHelmCharts   = NewHTTPError(6852, "更新chart信息失败")

	//-----------------------------------------------------------------------------------------------
	// plugins releated Error Range: 6870 - 6879
	//-----------------------------------------------------------------------------------------------
	ErrListPluginRepo   = NewHTTPError(6870, "获取plugin仓库失败")
	ErrUpsertPluginRepo = NewHTTPError(6871, "更新plugin仓库失败")
	ErrDeletePluginRepo = NewHTTPError(6872, "删除plugin仓库失败")

	//-----------------------------------------------------------------------------------------------
	// webhook releated Error Range: 6880 - 6889
	//-----------------------------------------------------------------------------------------------
	ErrGetWebhook    = NewHTTPError(6880, "获取webhook详情失败")
	ErrListWebhook   = NewHTTPError(6881, "列出webhook失败")
	ErrCreateWebhook = NewHTTPError(6882, "创建webhook失败")
	ErrUpdateWebhook = NewHTTPError(6883, "更新webhook失败")
	ErrDeleteWebhook = NewHTTPError(6884, "删除webhook失败")

	//-----------------------------------------------------------------------------------------------
	// workflow view releated Error Range: 6890 - 6899
	//-----------------------------------------------------------------------------------------------
	ErrGetView    = NewHTTPError(6890, "获取视图详情失败")
	ErrListView   = NewHTTPError(6891, "列出视图失败")
	ErrCreateView = NewHTTPError(6892, "创建视图失败")
	ErrUpdateView = NewHTTPError(6893, "更新视图失败")
	ErrDeleteView = NewHTTPError(6894, "删除视图失败")

	//-----------------------------------------------------------------------------------------------
	// VariableSet releated errors: 6900-6909
	//-----------------------------------------------------------------------------------------------
	ErrListVariableSets  = NewHTTPError(6900, "列出变量集失败")
	ErrGetVariableSet    = NewHTTPError(6901, "获取变量集详情失败")
	ErrEditVariableSet   = NewHTTPError(6902, "编辑变量集失败")
	ErrDeleteVariableSet = NewHTTPError(6903, "删除变量集失败")
	ErrCreateVariableSet = NewHTTPError(6904, "创建变量集失败")

	//-----------------------------------------------------------------------------------------------
	// workflow template releated errors: 6910-6919
	//-----------------------------------------------------------------------------------------------
	ErrCreateWorkflowTemplate = NewHTTPError(6910, "创建工作流模板失败")
	ErrUpdateWorkflowTemplate = NewHTTPError(6911, "更新工作流模板失败")
	ErrListWorkflowTemplate   = NewHTTPError(6912, "列出工作流模板失败")
	ErrGetWorkflowTemplate    = NewHTTPError(6913, "获取工作流模板失败")
	ErrDeleteWorkflowTemplate = NewHTTPError(6914, "删除工作流模板失败")
	ErrLintWorkflowTemplate   = NewHTTPError(6915, "检查工作流模板失败")

	//-----------------------------------------------------------------------------------------------
	// configuration management releated errors: 6920-6929
	//-----------------------------------------------------------------------------------------------
	ErrCreateConfigurationManagement   = NewHTTPError(6920, "创建配置管理失败")
	ErrUpdateConfigurationManagement   = NewHTTPError(6921, "更新配置管理失败")
	ErrListConfigurationManagement     = NewHTTPError(6922, "列出配置管理失败")
	ErrGetConfigurationManagement      = NewHTTPError(6923, "获取配置管理失败")
	ErrDeleteConfigurationManagement   = NewHTTPError(6924, "删除配置管理失败")
	ErrValidateConfigurationManagement = NewHTTPError(6925, "校验配置管理失败")

	//-----------------------------------------------------------------------------------------------
	// external approval releated errors: 6930-6939
	//-----------------------------------------------------------------------------------------------
	ErrCreateIMApp   = NewHTTPError(6930, "创建 IM 应用失败")
	ErrUpdateIMApp   = NewHTTPError(6931, "更新 IM 应用失败")
	ErrListIMApp     = NewHTTPError(6932, "列出 IM 应用失败")
	ErrGetIMApp      = NewHTTPError(6933, "获取 IM 应用失败")
	ErrDeleteIMApp   = NewHTTPError(6934, "删除 IM 应用失败")
	ErrValidateIMApp = NewHTTPError(6935, "校验 IM 应用失败")

	//-----------------------------------------------------------------------------------------------
	// check workflow task lark or dingtalk approval available releated errors: 6940-6949
	//-----------------------------------------------------------------------------------------------
	ErrCheckApprovalInitiator = NewHTTPError(6940, "获取 IM 审批发起人账号信息失败")

	//-----------------------------------------------------------------------------------------------
	// project management releated errors: 6950-6959
	//-----------------------------------------------------------------------------------------------
	ErrCreateProjectManagement   = NewHTTPError(6950, "创建项目管理集成失败")
	ErrUpdateProjectManagement   = NewHTTPError(6951, "更新项目管理集成失败")
	ErrListProjectManagement     = NewHTTPError(6952, "列出项目管理集成失败")
	ErrGetProjectManagement      = NewHTTPError(6953, "获取项目管理集成失败")
	ErrDeleteProjectManagement   = NewHTTPError(6954, "删除项目管理集成失败")
	ErrValidateProjectManagement = NewHTTPError(6955, "校验项目管理集成失败")

	//-----------------------------------------------------------------------------------------------
	// jira hook releated Error Range: 6960 - 6969
	//-----------------------------------------------------------------------------------------------
	ErrGetJiraHook    = NewHTTPError(6960, "获取 jira hook 详情失败")
	ErrListJiraHook   = NewHTTPError(6961, "列出 jira hook 失败")
	ErrCreateJiraHook = NewHTTPError(6962, "创建 jira hook 失败")
	ErrUpdateJiraHook = NewHTTPError(6963, "更新 jira hook 失败")
	ErrDeleteJiraHook = NewHTTPError(6964, "删除 jira hook 失败")

	//-----------------------------------------------------------------------------------------------
	// general hook releated Error Range: 6970 - 6979
	//-----------------------------------------------------------------------------------------------
	ErrGetGeneralHook    = NewHTTPError(6970, "获取 general hook 详情失败")
	ErrListGeneralHook   = NewHTTPError(6971, "列出 general hook 失败")
	ErrCreateGeneralHook = NewHTTPError(6972, "创建 general hook 失败")
	ErrUpdateGeneralHook = NewHTTPError(6973, "更新 general hook 失败")
	ErrDeleteGeneralHook = NewHTTPError(6974, "删除 general hook 失败")

	//-----------------------------------------------------------------------------------------------
	// meego hook releated Error Range: 6980 - 6989
	//-----------------------------------------------------------------------------------------------
	ErrGetMeegoHook    = NewHTTPError(6980, "获取飞书 hook 详情失败")
	ErrListMeegoHook   = NewHTTPError(6981, "列出飞书 hook 失败")
	ErrCreateMeegoHook = NewHTTPError(6982, "创建飞书 hook 失败")
	ErrUpdateMeegoHook = NewHTTPError(6983, "更新飞书 hook 失败")
	ErrDeleteMeegoHook = NewHTTPError(6984, "删除飞书 hook 失败")

	//-----------------------------------------------------------------------------------------------
	// apollo releated Error Range: 6990 - 6999
	//-----------------------------------------------------------------------------------------------
	ErrGetApolloInfo = NewHTTPError(6990, "获取 apollo 信息失败")

	//-----------------------------------------------------------------------------------------------
	// statistics dashboard Error Range: 7000 - 7009
	//-----------------------------------------------------------------------------------------------
	ErrCreateStatisticsDashboardConfig = NewHTTPError(7000, "创建统计看板配置失败")
	ErrListStatisticsDashboardConfig   = NewHTTPError(7001, "列出统计看板配置失败")
	ErrUpdateStatisticsDashboardConfig = NewHTTPError(7002, "更新统计看板配置失败")
	ErrDeleteStatisticsDashboardConfig = NewHTTPError(7003, "删除统计看板配置失败")
	ErrGetStatisticsDashboard          = NewHTTPError(7004, "获取统计看板失败")

	//-----------------------------------------------------------------------------------------------
	// llm integraton Error Range: 7010 - 7019
	//-----------------------------------------------------------------------------------------------
	ErrCreateLLMIntegration = NewHTTPError(7010, "创建llm集成失败")
	ErrListLLMIntegration   = NewHTTPError(7011, "获取llm集成列表失败")
	ErrUpdateLLMIntegration = NewHTTPError(7012, "更新llm集成失败")
	ErrDeleteLLMIntegration = NewHTTPError(7013, "删除llm集成失败")
	ErrGetLLMIntegration    = NewHTTPError(7014, "获取llm集成详情失败")

	//-----------------------------------------------------------------------------------------------
	// observability integration Error Range: 7020 - 7029
	//-----------------------------------------------------------------------------------------------
	ErrCreateObservabilityIntegration = NewHTTPError(7020, "创建 观测工具 集成失败")
	ErrListObservabilityIntegration   = NewHTTPError(7021, "获取 观测工具 集成列表失败")
	ErrUpdateObservabilityIntegration = NewHTTPError(7022, "更新 观测工具 集成失败")
	ErrDeleteObservabilityIntegration = NewHTTPError(7023, "删除 观测工具 集成失败")
	ErrGetObservabilityIntegration    = NewHTTPError(7024, "获取 观测工具 集成详情失败")

	//-----------------------------------------------------------------------------------------------
	// zadig vm Error Range: 7030 - 7039
	//-----------------------------------------------------------------------------------------------
	ErrCreateZadigVM       = NewHTTPError(7030, "创建 zadig vm 失败")
	ErrListZadigVM         = NewHTTPError(7031, "获取 zadig vm 列表失败")
	ErrUpdateZadigVM       = NewHTTPError(7032, "更新 zadig vm 失败")
	ErrDeleteZadigVM       = NewHTTPError(7033, "删除 zadig vm 失败")
	ErrOfflineZadigVM      = NewHTTPError(7034, "下线 zadig vm 失败")
	ErrUpgradeZadigVMAgent = NewHTTPError(7035, "升级 zadig agent 失败")
	ErrRecoveryZadigVM     = NewHTTPError(7036, "恢复 zadig vm 失败")
	// Business Directory Error Range: 7040 - 7049
	//-----------------------------------------------------------------------------------------------
	ErrGetBizDirProject        = NewHTTPError(7040, "获取业务目录项目失败")
	ErrGetBizDirProjectService = NewHTTPError(7041, "获取业务目录服务失败")
	ErrGetBizDirServiceDetail  = NewHTTPError(7042, "获取业务目录服务详情失败")
	ErrSearchBizDirByProject   = NewHTTPError(7043, "根据项目搜索业务目录失败")
	ErrSearchBizDirByService   = NewHTTPError(7044, "根据服务搜索业务目录失败")
)

Functions

func ErrorMessage

func ErrorMessage(err error) (code int, message map[string]interface{})

ErrorMessage returns the code and message for Gins JSON helpers

func NewWithDesc

func NewWithDesc(e error, desc string) error

NewWithDesc ...

func NewWithExtras

func NewWithExtras(e error, desc string, extra map[string]interface{}) error

NewWithExtras ...

Types

type ErrInvalidTaskType

type ErrInvalidTaskType struct {
	// contains filtered or unexported fields
}

ErrInvalidTaskType ...

func NewErrInvalidTaskType

func NewErrInvalidTaskType(message string) *ErrInvalidTaskType

NewErrInvalidTaskType ...

func (*ErrInvalidTaskType) Error

func (e *ErrInvalidTaskType) Error() string

type HTTPError

type HTTPError struct {
	// contains filtered or unexported fields
}

HTTPError ...

func NewHTTPError

func NewHTTPError(code int, errStr string, args ...string) *HTTPError

NewHTTPError ...

func (*HTTPError) AddDesc

func (e *HTTPError) AddDesc(desc string) *HTTPError

AddDesc ...

func (*HTTPError) AddErr

func (e *HTTPError) AddErr(err error) *HTTPError

AddErr ...

func (*HTTPError) Code

func (e *HTTPError) Code() int

Code ...

func (*HTTPError) Desc

func (e *HTTPError) Desc() string

Desc ...

func (*HTTPError) Error

func (e *HTTPError) Error() string

Error ...

func (*HTTPError) Extra

func (e *HTTPError) Extra() map[string]interface{}

Extra ...

func (*HTTPError) Message added in v1.4.0

func (e *HTTPError) Message() string

type IHTTPError

type IHTTPError interface {
	Code() int
	Error() string
	Message() string
	Desc() string
	Extra() map[string]interface{}
}

IHTTPError ...

Jump to

Keyboard shortcuts

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