forked from laetho/metagraf
-
Notifications
You must be signed in to change notification settings - Fork 3
/
example.json
80 lines (80 loc) · 1.81 KB
/
example.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
70
71
72
73
74
75
76
77
78
79
80
{
"kind": "MetaGraf",
"version": "v1alpha1",
"metadata": {
"name": "ExampleService",
"version": "0.1.0",
"description": "Example service that returns hello, world.",
"labels": {
},
"annotations": {
"example.com/component_type": "frontend",
"example.com/exposable": "true",
"example.com/appcode": "123"
}
},
"spec": {
"resources": [
{
"name": "ExampleServiceDataStore",
"type": "service",
"version": "0.1.1",
"match": ">=",
"required": "true"
},
{
"name": "ConfigManagement",
"type": "service",
"version": "1.0.1",
"match": ">=",
"required": "true"
}
],
"environment": {
"local": [
{
"name": "ConfigManagementURL",
"required": "true",
"type": "string",
"description": "URL til ConfigManagement tjeneste"
},
{
"name": "EnvironmentName",
"required": "true",
"type": "string",
"description": "Name of environment"
}
],
"external": {
"consumes": [
{
"name": "ExampleServiceDataStoreURL",
"required": "true",
"description": "URL to Session service"
}
],
"introduces": []
}
},
"config": [
{
"filename": "examplie.config",
"options": [
{
"name": "LogRequestsAndResponses",
"required": "false",
"description": "For troubleshooting..",
"type": "boolean",
"default": "false"
},
{
"name": "SocketTimeout",
"required": "false",
"default": 30,
"description": "Timeout in seconds"
}
]
}
]
}
}