Jpom/docs/fun-releases/template.yml

56 lines
1.5 KiB
YAML
Raw Normal View History

2019-09-21 22:51:31 +08:00
# https://github.com/alibaba/funcraft/blob/master/docs/specs/2018-04-03-zh-cn.md
2019-08-21 21:52:14 +08:00
ROSTemplateFormatVersion: '2015-09-01'
Transform: 'Aliyun::Serverless-2018-04-03'
Resources:
jpom:
Type: 'Aliyun::Serverless::Service'
Properties:
2019-08-21 22:32:21 +08:00
Description: 'jpom'
2019-08-21 21:52:14 +08:00
jpom-releases:
Type: 'Aliyun::Serverless::Function'
Properties:
2019-09-22 23:15:54 +08:00
Handler: index.ossDownload
2019-08-21 21:52:14 +08:00
Runtime: python3
2019-08-21 22:32:21 +08:00
CodeUri: './'
2019-09-22 23:15:54 +08:00
Description: 'Jpom gitee安装url处理'
MemorySize: 320
Timeout: 5
InitializationTimeout: 5
Events:
install-api:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods: ['GET']
jpom-releases2:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.githubOssDownload
Runtime: python3
CodeUri: './'
Description: 'Jpom github安装url处理'
MemorySize: 320
Timeout: 5
InitializationTimeout: 5
Events:
install-api:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods: ['GET']
jpom-getVerson:
Type: 'Aliyun::Serverless::Function'
Properties:
Handler: index.showVersion
Runtime: python3
CodeUri: './'
Description: 'Jpom 查询最新版本号'
2019-09-21 22:51:31 +08:00
MemorySize: 320
Timeout: 5
InitializationTimeout: 5
2019-08-21 22:32:21 +08:00
Events:
install-api:
Type: HTTP
Properties:
AuthType: ANONYMOUS
Methods: ['GET']