From c6fe4430b76ceeecd6b0b609cca8e705921db0c4 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Tue, 7 Nov 2017 13:46:30 -0500 Subject: Compile-tested implementation of SQL-backed state Signed-off-by: Matthew Heon --- libpod/state.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpod/state.go') 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 -- cgit v1.2.3-54-g00ecf