-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptions.mjs
42 lines (42 loc) · 963 Bytes
/
options.mjs
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
export class Options {
/** port default is 3000
* @type {string}
*/
port
/** clone url if you host function on github, bitbucket or gitlab
* @type {string}
*/
gitCloneUrl
/** git username
* @type {string}
*/
gitUsername
/** git token if repository is private
* @type {string}
*/
gitToken
/** name if package in npm if mode is npm
* @type {string}
*/
npmTar
/** url to retrieve tar from your server
* @type {string}
*/
urlTar
/** mode of puling functions
* @type {'git' | 'url' | 'npm'}
*/
mode
/** if functions folder is local supply this, if exist faas engine will not use a git clone url
* @type {{
functionsDirPath: string,
assets: string,
bfastJsonPath: string
}}
*/
functionsConfig
/** script to run instead of spin functioins server
* @type {string}
*/
startScript
}