github.com/georgethebeatle/containerd@v0.2.5/supervisor/errors.go (about)

     1  package supervisor
     2  
     3  import "errors"
     4  
     5  var (
     6  	// ErrContainerNotFound is returned when the container ID passed
     7  	// for a given operation is invalid
     8  	ErrContainerNotFound = errors.New("containerd: container not found")
     9  	// ErrProcessNotFound is returned when the process ID passed for
    10  	// a given operation is invalid
    11  	ErrProcessNotFound = errors.New("containerd: process not found for container")
    12  	// ErrUnknownContainerStatus is returned when the container status
    13  	// cannot be determined
    14  	ErrUnknownContainerStatus = errors.New("containerd: unknown container status ")
    15  	// ErrUnknownTask is returned when an unknown Task type is
    16  	// scheduled (should never happen).
    17  	ErrUnknownTask = errors.New("containerd: unknown task type")
    18  
    19  	// Internal errors
    20  	errShutdown          = errors.New("containerd: supervisor is shutdown")
    21  	errRootNotAbs        = errors.New("containerd: rootfs path is not an absolute path")
    22  	errNoContainerForPid = errors.New("containerd: pid not registered for any container")
    23  	// internal error where the handler will defer to another for the final response
    24  	//
    25  	// TODO: we could probably do a typed error with another error channel for this to make it
    26  	// less like magic
    27  	errDeferredResponse = errors.New("containerd: deferred response")
    28  )