mirror of https://github.com/shunfei/cronsun
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
962 B
21 lines
962 B
8 years ago
|
package cronsun
|
||
8 years ago
|
|
||
|
import "errors"
|
||
|
|
||
|
var (
|
||
|
ErrNotFound = errors.New("Record not found.")
|
||
|
ErrValueMayChanged = errors.New("The value has been changed by others on this time.")
|
||
|
|
||
8 years ago
|
ErrEmptyJobName = errors.New("Name of job is empty.")
|
||
|
ErrEmptyJobCommand = errors.New("Command of job is empty.")
|
||
|
ErrIllegalJobId = errors.New("Invalid id that includes illegal characters such as '/'.")
|
||
|
ErrIllegalJobGroupName = errors.New("Invalid job group name that includes illegal characters such as '/'.")
|
||
8 years ago
|
|
||
|
ErrEmptyNodeGroupName = errors.New("Name of node group is empty.")
|
||
8 years ago
|
ErrIllegalNodeGroupId = errors.New("Invalid node group id that includes illegal characters such as '/'.")
|
||
8 years ago
|
|
||
8 years ago
|
ErrSecurityInvalidCmd = errors.New("Security error: the suffix of script file is not on the whitelist.")
|
||
|
ErrSecurityInvalidUser = errors.New("Security error: the user is not on the whitelist.")
|
||
8 years ago
|
ErrNilRule = errors.New("invalid job rule, empty timer.")
|
||
8 years ago
|
)
|