-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.json
69 lines (69 loc) · 2.49 KB
/
config.json
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
{
"serverless-cloud-function-application": {
"application":{
"Chinese":{
"name": "helloworld",
"description": "helloworld 空白模板函数",
"attention": "无",
"readme": {
"file": "",
"content": ""
},
"license": {
"file": "",
"content": "公开"
},
"author": {
"name": "腾讯云无服务器云函数团队"
}
},
"English":{
"name": "helloworld",
"description": "This is helloworld function",
"attention": "No",
"readme": {
"file": "", // readme file
"content": "" //content of readme
},
"license": {
"file": "", // license file
"content": "Open" //content of license
},
"author": {
"name": "Tencent Cloud Serverless Team" // author
}
},
"input_parameters":{
},
"output_parameters":{
},
"download_address":"https://github.com/tencentyun/scf-demo-repo/tree/master/Nodejs8.9-helloworld", //demo的git下载链接
"tags":[
"Nodejs8.9", "helloworld" // 标签统一为英文,可编写多个,建议使用runtime、触发器、场景等关键字,用户可以通过该关键字搜索。前台需要展示,请认真填写,不支持中文
],
"version": "1.0.5" //版本号,通过版本号标识 demo 升级情况,未修改版本号会导致 demo 不更新至页面
},
"functions": {
"name": "helloworld", // 函数名称,只支持英文
"description": "helloworld 空白模板函数",
"handler":"index.main_handler",
"memorySize": 128, // 运行配置内存
"timeout": 3, // 运行超时时间
"runtime": "Nodejs8.9", //运行环境,用户可以通过该关键字搜索["Python2.7", "Python3.6", "Nodejs6.10", "Java8", "LuaCDN", "NodejsCDN", "Php5", "Php7", "Nodejs8.9", "Go1"]
"Environment":{
}, // 可选,用于定义环境变量
"Events":{
}, // 可选,用于定义触发此函数的事件源
"VpcConfig":{
}, // 可选, 用于配置云函数访问 VPC 私有网络。
"codeObject": {
"codeFile": [
"index.js"
],
"CodeUri":[ // 代码下载地址,和download_address保持一致
"https://github.com/tencentyun/scf-demo-repo/tree/master/Nodejs8.9-helloworld"
]
}
}
}
}