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

@ -853,6 +853,21 @@ func (s *SQLState) RemovePod(pod *Pod) error {
return ErrNotImplemented
}
// UpdatePod updates a pod from the database
func (s *SQLState) UpdatePod(pod *Pod) error {
return ErrNotImplemented
}
// AddContainerToPod adds a container to the given pod
func (s *SQLState) AddContainerToPod(pod *Pod, ctr *Container) error {
return ErrNotImplemented
}
// RemoveContainerFromPods removes a container from the given pod
func (s *SQLState) RemoveContainerFromPod(pod *Pod, ctr *Container) error {
return ErrNotImplemented
}
// AllPods retrieves all pods presently in the state
func (s *SQLState) AllPods() ([]*Pod, error) {
return nil, ErrNotImplemented