Matthew Heon
ff77941a31
Fix in-memory state tests
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00
Matthew Heon
aa20a25ca0
Address review comments
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00
Matthew Heon
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
Matthew Heon
65d643caeb
Change handling for pods in libpod state
...
Add new functions to update pods and add/remove containers from them
Use these new functions in place of manually modifying pods
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00
Matthew Heon
13f004aec5
Add ability to retrieve a pod's container from the state
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #229
Approved by: rhatdan
2018-01-17 15:26:43 +00:00
Matthew Heon
20df2196f2
Add ability for states to track container dependencies
...
Also prevent containers with dependencies from being removed from
in memory states. SQLite already enforced this via FOREIGN KEY
constraints.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #220
Approved by: rhatdan
2018-01-16 14:58:06 +00:00
Matthew Heon
b71cde19c8
Add ability to refresh state in DB
...
Also, ensure we always recreate runtime spec so our net namespace
paths will be correct
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-07 13:15:34 -05:00
Matthew Heon
763e372649
Wire SQL backed state into rest of libpod
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-18 12:58:48 -05:00
Matthew Heon
c6fe4430b7
Compile-tested implementation of SQL-backed state
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-18 12:54:05 -05:00
Daniel J Walsh
92818fdfb7
Fix gofmt errors
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-11-02 15:30:39 -04:00
Matthew Heon
c13f61798a
Prune Server package. Convert to new github location.
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:22:04 -04:00
Matthew Heon
a031b83a09
Initial checkin from CRI-O repo
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 11:24:59 -04:00