2017-05-12 06:48:24 +00:00
|
|
|
package cronsun
|
2017-01-16 06:30:55 +00:00
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
|
|
|
ErrNotFound = errors.New("Record not found.")
|
|
|
|
ErrValueMayChanged = errors.New("The value has been changed by others on this time.")
|
|
|
|
|
2017-01-18 08:58:47 +00:00
|
|
|
ErrEmptyJobName = errors.New("Name of job is empty.")
|
|
|
|
ErrEmptyJobCommand = errors.New("Command of job is empty.")
|
2018-07-18 06:57:28 +00:00
|
|
|
ErrIllegalJobId = errors.New("Invalid id that includes illegal characters such as '/' '\\'.")
|
|
|
|
ErrIllegalJobGroupName = errors.New("Invalid job group name that includes illegal characters such as '/' '\\'.")
|
2017-01-16 06:30:55 +00:00
|
|
|
|
|
|
|
ErrEmptyNodeGroupName = errors.New("Name of node group is empty.")
|
2017-01-18 08:58:47 +00:00
|
|
|
ErrIllegalNodeGroupId = errors.New("Invalid node group id that includes illegal characters such as '/'.")
|
2017-03-03 08:00:01 +00:00
|
|
|
|
2017-03-09 03:39:06 +00:00
|
|
|
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.")
|
2017-03-21 04:54:15 +00:00
|
|
|
ErrNilRule = errors.New("invalid job rule, empty timer.")
|
2017-01-16 06:30:55 +00:00
|
|
|
)
|