forked from getporter/cnab-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfoo.json
84 lines (84 loc) · 1.95 KB
/
foo.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
81
82
83
84
{
"name": "foo",
"version": "1.0",
"schemaVersion": "99.99",
"invocationImages": [
{
"imageType": "docker",
"image": "technosophos/helloworld:0.1.0"
}
],
"images": {
"image1":{
"description": "image1",
"image": "urn:image1uri",
"refs": [
{
"path": "image1path",
"field": "image.1.field"
}
]
},
"image2":{
"name": "image2",
"uri": "urn:image2uri",
"refs": [
{
"path": "image2path",
"field": "image.2.field"
}
]
}
},
"credentials": {
"foo": {
"path": "pfoo"
},
"bar": {
"env": "ebar"
},
"quux": {
"path": "pquux",
"env": "equux"
}
},
"custom": {
"com.example.duffle-bag": {
"icon": "https://example.com/icon.png",
"iconType": "PNG"
},
"com.example.backup-preferences": {
"enabled": true,
"frequency": "daily"
}
},
"definitions" : {
"complexThing" : {
"type" : "object",
"properties" : {
"host" : {
"default" : "localhost",
"type" : "string",
"minLength" : 3,
"maxLength" : 10
},
"port" : {
"type" : "integer",
"minimum": 8000
}
},
"required" : ["port"]
}
},
"parameters" : {
"serverConfig" : {
"definition" : "complexThing",
"destination" : {
"path": "/cnab/is/go"
}
}
},
"requiredExtensions": [
"com.example.duffle-bag"
]
}