mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
15 lines
267 B
Go
15 lines
267 B
Go
package sync
|
|
|
|
import (
|
|
"yunion.io/x/onecloud/pkg/scheduler/cache"
|
|
)
|
|
|
|
func NewSyncManager(stopCh <-chan struct{}) *cache.GroupManager {
|
|
items := defaultSyncItems()
|
|
return cache.NewGroupManager(CacheKind, items, stopCh)
|
|
}
|
|
|
|
type syncItem struct {
|
|
cache.CachedItem
|
|
}
|