diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-12-07 13:15:34 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2017-12-07 13:15:34 -0500 |
commit | b71cde19c8b511c054ee42084113ce97ed6d5b62 (patch) | |
tree | c69fc6b6a6ad1d931c059ad2325ca7778b8ba4e8 /libpod/state.go | |
parent | b66287689a0c8c9f2f8c01cdca065fb1f6e8d872 (diff) | |
download | podman-b71cde19c8b511c054ee42084113ce97ed6d5b62.tar.gz podman-b71cde19c8b511c054ee42084113ce97ed6d5b62.tar.bz2 podman-b71cde19c8b511c054ee42084113ce97ed6d5b62.zip |
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>
Diffstat (limited to 'libpod/state.go')
-rw-r--r-- | libpod/state.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/state.go b/libpod/state.go index 4093f14f1..4a79b8d2d 100644 --- a/libpod/state.go +++ b/libpod/state.go @@ -6,6 +6,9 @@ type State interface { // connections) that may be required Close() error + // Refresh clears container and pod states after a reboot + Refresh() error + // Accepts full ID of container Container(id string) (*Container, error) // Accepts full or partial IDs (as long as they are unique) and names |