-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathconst.yaml
139 lines (120 loc) · 4.38 KB
/
const.yaml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
respCodeMap:
OK : 200
EUser : 400.10 ## Common user operation error.
EUserPassword : 400.12 # Invalid username or password
EUserCaptcha : 400.13 # Wrong captcha
EUserAuth : 401.14 # Not signed in or x-auth-token is not sent.
EUserPrivilege : 401.15 # No privilege to execute current operation.
EUserDisabled : 401.16 # User is disabled.
EUserLocked : 401.17 # User is locked.
EBiz : 403.20 ## Common business error.
EBizCondition : 403.21 # Condition is not satisfied.
EBizNotOwner : 403.22 # Try to access data belongs to others.
EBizBadData : 403.23 # Bad data found.
EBizBadDataStatus : 403.24 # Bad status found.
EBizRequestConflict : 409.25 # Request conflict.
EClient : 400.40 ## Common client error.
EClientNotFound : 404.41 # No such data.
EClientDuplicated : 409.42 # Duplicated request.
EClientBadRequest : 400.43 # Bad request.
EClientUnsupported : 400.44 # Unsupported operation.
EClientIP : 400.45 # Bad client IP.
EClientRateLimit : 429.46 # Reach rate limit
ESys : 500.50 ## Common system error.
ESysWebServer : 500.51 # Web server error.
ESysDB : 500.52 # DB error.
ESysCache : 500.53 # Cache error.
ESysLimitReached : 503.10 # Limit reached error.
ESysAsyncTaskFailed : 503.20 # Async task failed error.
ESysAsyncTaskTimeout: 503.21 # Async task timeout error.
ESysNetwork : 503.22 # Network error.
EOuterSystem : 500.60 ## Common outer system error.
EOuterSystemNotFound: 500.61 # No such data in outer system.
ENotImplemented : 500.98 # Not implemented
EAssert : 500.99 # For Assert
EAPIAuth : 401.99 # API 认证失败
EScriptPublishFailed : 400.90 # 脚本发布失败
EStartupScriptDeployFailed: 400.91 # 启动脚本部署失败
EBlueprintDeployFailed : 400.92 # 蓝图部署失败
EFuncFailed : 599.10 # 函数执行失败
EFuncTimeout : 599.20 # 函数执行超时
EGuanceEventFailed : 599.50 # 观测云事件执行超时
EFuncResultParsingFailed : 599.98 # 函数返回值无法解析
EWorkerNoResponse : 599.99 # 工作单元无响应
# File icon for extension
fileIcon:
apk : android
pdf : file-pdf-o
7z : file-zip-o
zip : file-zip-o
rar : file-zip-o
txt : file-text-o
doc : file-word-o
docx: file-word-o
xls : file-excel-o
xlsx: file-excel-o
ppt : file-powerpoint-o
pptx: file-powerpoint-o
jpg : file-image-o
jpeg: file-image-o
bmp : file-image-o
png : file-image-o
gif : file-image-o
avi : file-video-o
mp4 : file-video-o
mov : file-video-o
wav : ile-audio-o
json: file-code-o
xml : file-code-o
csv : file-code-o
# System Settings and defaults
systemSettings:
# DataFlux Func ID
DATAFLUX_FUNC_ID: null
# 是否启用自定义网站标题
CUSTOM_SITE_TITLE_ENABLED: false
# 自定义网站标题文案
CUSTOM_SITE_TITLE_TEXT: null
# 是否启用自定义网站 favicon
CUSTOM_FAVICON_ENABLED: false
# 自定义网站 favicon 数据(Base64)
CUSTOM_FAVICON_IMAGE_SRC: null
# 是否启用自定义网站 Logo
CUSTOM_LOGO_ENABLED: false
# 自定义网站 Logo 数据(Base64)
CUSTOM_LOGO_IMAGE_SRC: null
# 是否启用提示栏
NOTICE_BAR_ENABLED: false
# 提示栏文案
NOTICE_BAR_TEXT: null
# 提示栏颜色
NOTICE_BAR_COLOR: '#FF6600'
# 是否启用导航栏文档链接
NAVI_DOC_LINK_ENABLED: true
# 导航文档地址
NAVI_DOC_LINK_URL: 'https://func.guance.com/#/doc-index'
# 是否启用本地函数任务记录
LOCAL_FUNC_TASK_RECORD_ENABLED: true
# 是否启用观测云数据上传
GUANCE_DATA_UPLOAD_ENABLED: false
# 观测云数据上传地址
GUANCE_DATA_UPLOAD_URL: null
# 观测云数据上传附带的 tags.site_name
GUANCE_DATA_SITE_NAME: null
# 是否启用官方脚本市场
OFFICIAL_SCRIPT_MARKET_ENABLED: true
# 脚本集隐藏
SCRIPT_SET_HIDDEN_OFFICIAL_SCRIPT_MARKET: true
SCRIPT_SET_HIDDEN_BUILTIN : true
SCRIPT_SET_HIDDEN_BLUEPRINT : true
# Common Cipher Fields
cipherFields:
- guanceAPIKey
- password
- secretKey
- accessKeySecret
# Temporary Flags
tempFlags:
- restartAllServers
- restartAllWorkersAndBeat
- pauseCronJobs