mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
scheduler: dynamicschedtags support
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user