diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-11-07 13:46:30 -0500 |
---|---|---|
committer | Matthew Heon <matthew.heon@gmail.com> | 2017-11-18 12:54:05 -0500 |
commit | c6fe4430b76ceeecd6b0b609cca8e705921db0c4 (patch) | |
tree | 2b2b85f120001df77ee5133dc8c4ae3655519324 /libpod/state.go | |
parent | 3b72af614777b966671ad0eb0c5dbde0eeedcfa2 (diff) | |
download | podman-c6fe4430b76ceeecd6b0b609cca8e705921db0c4.tar.gz podman-c6fe4430b76ceeecd6b0b609cca8e705921db0c4.tar.bz2 podman-c6fe4430b76ceeecd6b0b609cca8e705921db0c4.zip |
Compile-tested implementation of SQL-backed state
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/state.go')
-rw-r--r-- | libpod/state.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/state.go b/libpod/state.go index 1c21911bb..41f44ac8e 100644 --- a/libpod/state.go +++ b/libpod/state.go @@ -2,6 +2,10 @@ package libpod // State is a storage backend for libpod's current state type State interface { + // Close performs any pre-exit cleanup (e.g. closing database + // connections) that may be required + Close() error + // Accepts full ID of container Container(id string) (*Container, error) // Accepts full or partial IDs (as long as they are unique) and names |