serverless-aliyun-function-compute
Version:
Provider plugin for the Serverless Framework v1.x which adds support for Aliyun Function Compute
25 lines (20 loc) • 547 B
JavaScript
;
module.exports = {
async getFunctionsAndService() {
this.fcService = undefined;
this.fcFunctions = [];
await this.getService();
await this.getFunctions();
},
async getService() {
const serviceName = this.provider.getServiceName();
this.fcService = await this.provider.getService(serviceName);
},
async getFunctions() {
if (!this.fcService) {
return;
}
const serviceName = this.fcService.serviceName;
this.fcFunctions = await this.provider.getFunctions(serviceName);
}
};