mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
29 lines
453 B
Go
29 lines
453 B
Go
package candidate
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/pkg/scheduler/cache"
|
|
)
|
|
|
|
type groupCacher interface {
|
|
Get(string) (cache.Cache, error)
|
|
}
|
|
|
|
type DBGroupCacher interface {
|
|
groupCacher
|
|
}
|
|
|
|
type SyncGroupCacher interface {
|
|
groupCacher
|
|
}
|
|
|
|
type descer interface {
|
|
UUID() string
|
|
}
|
|
|
|
type BuildActor interface {
|
|
Clone() BuildActor
|
|
Type() string
|
|
AllIDs() ([]string, error)
|
|
Do(ids []string, db DBGroupCacher, sync SyncGroupCacher) ([]interface{}, error)
|
|
}
|