2015-12-17 16:07:04 -08:00
|
|
|
package supervisor
|
2015-11-05 15:29:53 -08:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
|
|
|
// External errors
|
2016-02-11 17:26:24 -08:00
|
|
|
ErrTaskChanNil = errors.New("containerd: task channel is nil")
|
2015-11-12 13:40:23 -08:00
|
|
|
ErrBundleNotFound = errors.New("containerd: bundle not found")
|
|
|
|
ErrContainerNotFound = errors.New("containerd: container not found")
|
|
|
|
ErrContainerExists = errors.New("containerd: container already exists")
|
|
|
|
ErrProcessNotFound = errors.New("containerd: processs not found for container")
|
|
|
|
ErrUnknownContainerStatus = errors.New("containerd: unknown container status ")
|
2016-02-11 17:26:24 -08:00
|
|
|
ErrUnknownTask = errors.New("containerd: unknown task type")
|
2015-11-05 15:29:53 -08:00
|
|
|
|
|
|
|
// Internal errors
|
2015-12-01 12:00:11 -08:00
|
|
|
errShutdown = errors.New("containerd: supervisor is shutdown")
|
|
|
|
errRootNotAbs = errors.New("containerd: rootfs path is not an absolute path")
|
|
|
|
errNoContainerForPid = errors.New("containerd: pid not registered for any container")
|
2015-12-01 10:55:13 -08:00
|
|
|
// internal error where the handler will defer to another for the final response
|
|
|
|
//
|
|
|
|
// TODO: we could probably do a typed error with another error channel for this to make it
|
|
|
|
// less like magic
|
|
|
|
errDeferedResponse = errors.New("containerd: defered response")
|
2015-11-05 15:29:53 -08:00
|
|
|
)
|