-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch `digest` to `contentDigest` in the json tags This PR swaps `contentDigest` in place of `digest` in the json/mapstructure tags for the BaseImage type. Adds a test for marashalling as well. Fixes #59 * Updated code review comments
- Loading branch information
1 parent
b00ad0a
commit 098f359
Showing
3 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"name": "foo", | ||
"version": "1.0", | ||
"schemaVersion": "99.99", | ||
"images": { | ||
"my-microservice": { | ||
"contentDigest": "sha256:beefcacef6c04336a17761db2004813982abe0e87ab727a376c291e09391ea61", | ||
"description": "my microservice", | ||
"image": "technosophos/microservice:1.2.3" | ||
} | ||
}, | ||
"invocationImages": [ | ||
{ | ||
"contentDigest": "sha256:decafbad71b4175951f29eb96035604c8cc372c99affa2e6d05cde6e8e20cc9a", | ||
"image": "technosophos/helloworld:0.1.0", | ||
"imageType": "docker" | ||
} | ||
], | ||
"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" | ||
} | ||
} | ||
} | ||
} |