errors.go 1.1 KB

12345678910111213141516171819202122232425
  1. package supervisor
  2. import "errors"
  3. var (
  4. // External errors
  5. ErrTaskChanNil = errors.New("containerd: task channel is nil")
  6. ErrBundleNotFound = errors.New("containerd: bundle not found")
  7. ErrContainerNotFound = errors.New("containerd: container not found")
  8. ErrContainerExists = errors.New("containerd: container already exists")
  9. ErrProcessNotFound = errors.New("containerd: process not found for container")
  10. ErrUnknownContainerStatus = errors.New("containerd: unknown container status ")
  11. ErrUnknownTask = errors.New("containerd: unknown task type")
  12. // Internal errors
  13. errShutdown = errors.New("containerd: supervisor is shutdown")
  14. errRootNotAbs = errors.New("containerd: rootfs path is not an absolute path")
  15. errNoContainerForPid = errors.New("containerd: pid not registered for any container")
  16. // internal error where the handler will defer to another for the final response
  17. //
  18. // TODO: we could probably do a typed error with another error channel for this to make it
  19. // less like magic
  20. errDeferredResponse = errors.New("containerd: deferred response")
  21. )