mirror of
https://github.com/containers/podman.git
synced 2025-06-17 06:57:43 +08:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user