forked from GoogleCloudPlatform/functions-framework-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.env-cmdrc.js
60 lines (60 loc) · 1.67 KB
/
.env-cmdrc.js
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
module.exports = {
knative: {
FUNC_CONTEXT: JSON.stringify({
name: 'test-knative',
version: '1.0.0',
runtime: 'Knative',
outputs: {
fs: {
componentName: 'local',
componentType: 'bindings.localstorage',
operation: 'list',
metadata: {
fileName: '.',
},
},
},
states: {
// there is a policy, if you don't specify the state component, we will use the first one
// or you need specify the state name, then the context will use the one you specify
// hint : specify the name is the record key, not the component name
redis: {
componentName: 'myredis',
componentType: 'state.redis',
},
mysql: {
componentName: 'mymysql',
componentType: 'state.mysql',
},
},
}),
},
async: {
FUNC_CONTEXT: JSON.stringify({
name: 'test-async',
version: '1.0.0',
runtime: 'Async',
port: '8080',
inputs: {
cron: {
uri: 'cron_input',
componentName: 'binding-cron',
componentType: 'bindings.cron',
},
},
states: {
// there is a policy, if you don't specify the state component, we will use the first one
// or you need specify the state name, then the context will use the one you specify
// hint : specify the name is the record key, not the component name
redis: {
componentName: 'myredis',
componentType: 'state.redis',
},
mysql: {
componentName: 'mymysql',
componentType: 'state.mysql',
},
},
}),
},
};