scheduler: dynamicschedtags support

This commit is contained in:
Zexi Li
2018-10-18 18:01:31 +08:00
parent 352e4816a6
commit 4d6fbcdf0c
15 changed files with 361 additions and 146 deletions
+4 -2
View File
@@ -15,6 +15,7 @@ import (
type SDynamicschedtagManager struct {
db.SStandaloneResourceBaseManager
SInfrastructureManager
}
var DynamicschedtagManager *SDynamicschedtagManager
@@ -29,9 +30,10 @@ func init() {
//
type SDynamicschedtag struct {
db.SStandaloneResourceBase
SInfrastructure
Condition string `width:"256" charset:"ascii" nullable:"false" list:"user" create:"required"`
SchedtagId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required"`
Condition string `width:"256" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"`
SchedtagId string `width:"36" charset:"ascii" nullable:"false" list:"user" create:"required" update:"admin"`
Enabled bool `nullable:"false" default:"true" create:"optional" list:"user" update:"user"`
}