2016-06-07 14:28:28 -07:00
|
|
|
package agent
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// ErrClosed is returned when an operation fails because the resource is closed.
|
|
|
|
ErrClosed = errors.New("agent: closed")
|
|
|
|
|
|
|
|
errNodeNotRegistered = fmt.Errorf("node not registered")
|
|
|
|
|
|
|
|
errAgentStarted = errors.New("agent: already started")
|
2016-08-09 11:49:39 -07:00
|
|
|
errAgentNotStarted = errors.New("agent: not started")
|
2016-06-07 14:28:28 -07:00
|
|
|
|
|
|
|
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")
|
|
|
|
)
|