code.go 926 Bytes
Newer Older
“李磊”'s avatar
“李磊” committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package l

// 模块
const (
	Scanner            ErrCode = "10" // 扫描模块
	NetTopology        ErrCode = "11" // 网络雷达
	AssetCenter        ErrCode = "12" // 资产中心
	AlarmResponse      ErrCode = "13" // 告警响应
	SecurityCompliance ErrCode = "14" // 安全合规
	IaCSecurity        ErrCode = "15" // IaC安全

)

const (
	Timeout              ErrCode = "001" // 各种超时场景
	ImageFormat          ErrCode = "002"
	InitRule             ErrCode = "003" // 可用于镜像基线初始化规则
	ImageLayer           ErrCode = "004"
	JsonUnmarshal        ErrCode = "005"
	File                 ErrCode = "006" // 文件及目录操作错误
	FeatureRpm           ErrCode = "007"
	JsonMarshal          ErrCode = "008"
	BinaryFile           ErrCode = "009"
	BackendModNotRunning ErrCode = "010"
	Grpc                 ErrCode = "011"
	RunTime              ErrCode = "012"
)