Move everything in libpod into a single package for simplicity

Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
Matthew Heon 2017-09-05 10:29:17 -04:00
parent 251f16af80
commit bb77300641
4 changed files with 28 additions and 32 deletions

36
libpod/pod.go Normal file
View file

@ -0,0 +1,36 @@
package libpod
import (
"github.com/kubernetes-incubator/cri-o/libpod/ctr"
)
// Pod represents a group of containers that may share namespaces
type Pod struct {
// TODO populate
}
// Start starts all containers within a pod that are not already running
func (p *Pod) Start() error {
return errNotImplemented
}
// Stop stops all containers within a pod that are not already stopped
func (p *Pod) Stop() error {
return errNotImplemented
}
// Kill sends a signal to all running containers within a pod
func (p *Pod) Kill(signal uint) error {
return errNotImplemented
}
// GetContainers retrieves the containers in the pod
func (p *Pod) GetContainers() ([]*Container, error) {
return nil, errNotImplemented
}
// Status gets the status of all containers in the pod
// TODO This should return a summary of the states of all containers in the pod
func (p *Pod) Status() error {
return errNotImplemented
}