summaryrefslogtreecommitdiff
path: root/oci/store.go
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2017-12-11 10:20:22 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-14 13:56:20 +0000
commit05f4dd9f41707959ce801f9851c79232a1b79dca (patch)
treeed4cfc80c90204f6166379f4f2c368ac57d480f1 /oci/store.go
parent900afc929f01ef2a38b69263e35c964284f1f9f4 (diff)
downloadpodman-05f4dd9f41707959ce801f9851c79232a1b79dca.tar.gz
podman-05f4dd9f41707959ce801f9851c79232a1b79dca.tar.bz2
podman-05f4dd9f41707959ce801f9851c79232a1b79dca.zip
Clear up fragments of the old api
As everything is being moved over to the new container api removing files that depended on the old api Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #116 Approved by: rhatdan
Diffstat (limited to 'oci/store.go')
-rw-r--r--oci/store.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/oci/store.go b/oci/store.go
deleted file mode 100644
index 1d27a0f9e..000000000
--- a/oci/store.go
+++ /dev/null
@@ -1,27 +0,0 @@
-package oci
-
-// StoreFilter defines a function to filter
-// container in the store.
-type StoreFilter func(*Container) bool
-
-// StoreReducer defines a function to
-// manipulate containers in the store
-type StoreReducer func(*Container)
-
-// ContainerStorer defines an interface that any container store must implement.
-type ContainerStorer interface {
- // Add appends a new container to the store.
- Add(string, *Container)
- // Get returns a container from the store by the identifier it was stored with.
- Get(string) *Container
- // Delete removes a container from the store by the identifier it was stored with.
- Delete(string)
- // List returns a list of containers from the store.
- List() []*Container
- // Size returns the number of containers in the store.
- Size() int
- // First returns the first container found in the store by a given filter.
- First(StoreFilter) *Container
- // ApplyAll calls the reducer function with every container in the store.
- ApplyAll(StoreReducer)
-}