f2041b51f3
Add FFJSON encoding/decoding for our container structs
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #323
Approved by: mheon
2018-02-16 16:46:09 +00:00
3962d10bd4
Fix gofmt and lint
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #184
Approved by: baude
2018-02-12 14:28:07 +00:00
4f225b47c9
Refactor Pod to use a Config struct
...
This allows us to JSON it and stuff it in the DB - previously,
all pod fields were private, so JSON couldn't encode them. This
allows us to keep all pod fields private by having a substruct
with public fields.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #184
Approved by: baude
2018-02-12 14:28:07 +00:00
4ecebf20b4
Rework state tests to avoid boilerplate. Begin adding pod tests.
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
044139dca9
Remove read-only from DB, it's in the spec
...
Don't need to store it separately
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #268
Approved by: rhatdan
2018-02-09 15:01:34 +00:00
095aaaa639
Allow users to specify logpath
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #135
Approved by: mheon
2018-02-03 19:49:14 +00:00
49378c055a
Rename containerRuntimeInfo to containerState for clarity
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2018-01-18 11:49:14 -05:00
5696dfef6e
Do no lint test helpers
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00
67b6c132d8
Modify unit tests for state to run on all state implementations
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00