-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.yaml
238 lines (238 loc) · 5.91 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
Type: Component
Name: cfc
Version: 0.0.3
Provider:
- 百度智能云
Category: 基础云产品
HomePage: 'https://github.com/xinwuyun/cfc'
Description: 百度云函数组件
Commands:
Build & Deploy:
deploy: Deploy local resources online
remove: The ability to delete resources
Properties:
code:
codeUri:
Description: 代码路径
Required: true
Type:
- String
publish:
Description: publish
Required: true
Type:
- boolean
dryRun:
Description: dryrun
Requierd: true
Type:
- boolean
functionName:
Description: 函数名
Required: true
Default: ''
Type:
- String
descritpion:
Description: 函数描述
Required: true
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
Default: index.handler
Type:
- String
timeout:
Description: 超时时间1-300
Required: true
Default: 30
Type:
- Number
endpoint:
Description:
zh: 服务域名
en: endpoint
Required: true
Default: cfc.bj.baidubce.com
Type:
- Enum:
- cfc.su.baidubce.com
- cfc.su.baidubce.com
- cfc.su.baidubce.com
protocol:
Description: 协议类型
Required: true
Default: http
Type:
- Enum:
- http
- http
memorySize:
Description: '内存(MB,128的倍数)'
Required: true
Default: 128
Type:
- Number
environment:
title: 环境变量
description: 配置函数运行环境中的环境变量。
x-component: KeyValue
logType:
Required: false
Description: '日志类型bos(对象存储)/ none'
Type:
- String
logBosDir:
Required: false
Description: 日志存储的Bucket路径
Type:
- String
vpcConfig:
Required: false
Description: 函数绑定的Vpc配置
properties:
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
# trigger:
# title: 触发器配置
# type: array
# uniqueItems: true
# items:
# oneOf:
# - 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