2017-09-05 14:29:17 +00:00
|
|
|
package libpod
|
2017-08-11 16:42:25 +00:00
|
|
|
|
|
|
|
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 {
|
2017-09-05 14:29:17 +00:00
|
|
|
return errNotImplemented
|
2017-08-11 16:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Stop stops all containers within a pod that are not already stopped
|
|
|
|
func (p *Pod) Stop() error {
|
2017-09-05 14:29:17 +00:00
|
|
|
return errNotImplemented
|
2017-08-11 16:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Kill sends a signal to all running containers within a pod
|
|
|
|
func (p *Pod) Kill(signal uint) error {
|
2017-09-05 14:29:17 +00:00
|
|
|
return errNotImplemented
|
2017-08-11 16:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetContainers retrieves the containers in the pod
|
2017-09-05 14:29:17 +00:00
|
|
|
func (p *Pod) GetContainers() ([]*Container, error) {
|
|
|
|
return nil, errNotImplemented
|
2017-08-11 16:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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 {
|
2017-09-05 14:29:17 +00:00
|
|
|
return errNotImplemented
|
2017-08-11 16:42:25 +00:00
|
|
|
}
|