This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.yaml
249 lines (249 loc) · 5.93 KB
/
publish.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
Type: Component
Name: yaml
Version: 0.0.1
Category: 云应用
HomePage: 'https://github.com/xinwuyun/cfc'
Description: 百度云函数组件
Properties:
code:
Description: 代码信息
Required: true
Example: ''
Default: ''
Type:
- Struct: {}
functionName:
Description: 函数名
Required: true
Example: cfc-function-test
Default: ''
Type:
- String
descritpion:
Description: 函数描述
Required: true
Example: Service testing function
Default: ''
Type:
- String
runtime:
Required: true
Description: 运行语言
Type:
- Enum:
- nodejs8.4
- nodejs8.5
- nodejs10
- nodejs12
- python2
- python3
- java8
- java8_stream
- golang
- php7
- lua5.3
- dotnetcore2.2
- powershell6.2
handler:
Description: 运行语言
Required: true
Example: ''
Default: index.handler
Type:
- String
timeout:
Description: 超时时间1-300
Required: true
Example: ''
Default: 30
Type:
- Number
endpoint:
Description:
zh: 服务域名
en: endpoint
Required: true
Example: ''
Default: cfc.bj.baidubce.com
Type:
- Enum:
- cfc.su.baidubce.com
- cfc.su.baidubce.com
- cfc.su.baidubce.com
protocol:
Description: 协议类型
Required: true
Example: ''
Default: http
Type:
- Enum:
- http
- http
memorySize:
Description: '内存(MB,128的倍数)'
Required: true
Example: ''
Default: 128
Type:
- Number
environment:
Description: 环境变量
Required: true
Example: ''
Default: ''
Type:
- List<Struct>:
Key:
Description: 环境变量Key
Required: true
Example: ''
Default: ''
Type:
- String
Value:
Description: 环境变量Value
Required: true
Example: ''
Default: ''
Type:
- String
logType:
Required: false
Description: '日志类型bos(对象存储)/ none'
Type:
- String
logBosDir:
Required: false
Description: 日志存储的Bucket路径
Type:
- String
vpcConfig:
Required: false
Description: 函数绑定的Vpc配置
- Struct:
vpcId:
Required: true
Description: 要绑定的VpcID
Type:
- String
subnetIds:
Required: true
Description: 绑定的子网列表
Type:
- List<String>
securityGroupIds:
Required: true
Description: 绑定的安全组列表
Type:
- List<String>
deadLetterTopic:
Required: true
Description: 函数死信队列配置
Type:
- String
Required: true
Description: 函数死信队列配置
Type:
- String
trigger:
Required: true
Description: 触发器配置
Type:
- List<Struct>[BOS触发器]:
source:
Required: true
Description: 触发器类型
Type:
- Enum:
- bos
bucket:
Required: true
Description: Bucket名称
Type:
- String
data:
Required: true
Descrtption: bos触发器参数
Type:
- List<Struct>
Resource:
Required: true
Description: 订阅的资源
Type:
- String
Name:
Required: true
Description: 触发器名称
Type:
- String
Status:
Required: true
Description: 状态
Type:
- Enum:
- enabled
- disabled
EventType:
Required: true
Description: BOS事件类型
Tyep:
- Enum:
- PutObject
- PostObject
- AppendObject
- CopyObject
- CompleteMultipartObject
- List<Struct>[dueros触发器]:
source:
Required: true
Description: 触发器类型
Type:
- Enum:
- dueros
- List<struct>[CDN触发器]:
source:
Required: true
Description: 触发器类型
Type:
- Enum:
- cdn
data:
Required: true
Description: 触发器参数
Type:
- List<Struct>:
EventType:
Required: true
Description: CDN事件类型
Type:
- Enum:
- CachedObjectsBlocked
- CachedObjectsPushed
- CachedObjectsRefreshed
- CdnDomainCreated
- CdnDomainDeleted
- LogFileCreated
- CdnDomainStarted
- CdnDomainStopped
- List<Struct>[http触发器]:
source:
Required: true
Description: 触发器类型
Type:
- Enum:
- cfc-http-trigger/v1/CFCAPI
data:
Required: true
Description: 触发器参数配置
Type:
- List<Struct>:
Key:
Required: false
Description: 配置参数Key
Type:
- String
Value:
Required: false
Description: 配置参数Value
Type:
- String