From 6b7b4b03a888b2d87dd58d1e8048d2a5c7e6a36b Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Sun, 28 Jan 2018 05:31:01 -0500 Subject: Add pod removal code Signed-off-by: Matthew Heon Closes: #268 Approved by: rhatdan --- libpod/state.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libpod/state.go') diff --git a/libpod/state.go b/libpod/state.go index 3e5da9306..36b5a757b 100644 --- a/libpod/state.go +++ b/libpod/state.go @@ -53,6 +53,11 @@ type State interface { // Removes pod from state // Only empty pods can be removed from the state RemovePod(pod *Pod) error + // Remove all containers from a pod + // Used to simulataneously remove containers that might otherwise have + // dependency issues + // Will fail if a dependency outside the pod is encountered + RemovePodContainers(pod *Pod) error // AddContainerToPod adds a container to an existing pod // The container given will be added to the state and the pod AddContainerToPod(pod *Pod, ctr *Container) error -- cgit v1.2.3-54-g00ecf