Change handling for pods in libpod state

Add new functions to update pods and add/remove containers from them
Use these new functions in place of manually modifying pods

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #229
Approved by: rhatdan
This commit is contained in:
Matthew Heon
2017-12-13 23:12:32 -05:00
committed by Atomic Bot
parent 13f004aec5
commit 65d643caeb
6 changed files with 141 additions and 46 deletions

View File

@ -114,7 +114,6 @@ func (ns LinuxNS) String() string {
type Container struct {
config *ContainerConfig
pod *Pod
runningSpec *spec.Spec
state *containerRuntimeInfo