1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/vendor/github.com/docker/swarmkit/agent/errors.go

23 lines
673 B
Go
Raw Normal View History

package agent
import (
"errors"
)
var (
// ErrClosed is returned when an operation fails because the resource is closed.
ErrClosed = errors.New("agent: closed")
errNodeNotRegistered = errors.New("node not registered")
errAgentStarted = errors.New("agent: already started")
errAgentNotStarted = errors.New("agent: not started")
errTaskNoContoller = errors.New("agent: no task controller")
errTaskNotAssigned = errors.New("agent: task not assigned")
errTaskStatusUpdateNoChange = errors.New("agent: no change in task status")
errTaskUnknown = errors.New("agent: task unknown")
errTaskInvalid = errors.New("task: invalid")
)