scheduler: optimize forecast filter info

This commit is contained in:
Zexi
2019-07-13 19:30:59 +08:00
parent 7b1a4f2c94
commit 9bc81fe94c
8 changed files with 183 additions and 59 deletions

View File

@@ -94,3 +94,32 @@ func (ure *UnexceptedResourceError) Error() string {
func (ure *UnexceptedResourceError) GetReason() string {
return ure.Error()
}
type FailReason struct {
Reason string
Type string
}
func (r FailReason) GetReason() string {
return r.Reason
}
func (r FailReason) GetType() string {
return r.Type
}
const (
NetworkPrivate = "network_private"
NetworkPublic = "network_public"
NetworkTypeMatch = "network_type"
NetworkMatch = "network_match"
NetworkWire = "network_wire"
NetworkOwner = "network_owner"
NetworkDomain = "network_domain"
NetworkRange = "network_range"
NetworkFreeCount = "network_free_count"
StorageEnable = "storage_status"
StorageMatch = "storage_match"
StorageType = "storage_type"
)