Made cache.Controller to be interface.

This commit is contained in:
Klaus Ma
2017-01-12 21:45:53 +08:00
parent 31483bf546
commit 25fe1e0d82
36 changed files with 115 additions and 110 deletions

View File

@@ -146,10 +146,10 @@ const createProvisionedPVInterval = 10 * time.Second
// cache.Controllers that watch PersistentVolume and PersistentVolumeClaim
// changes.
type PersistentVolumeController struct {
volumeController *cache.Controller
volumeController cache.Controller
volumeInformer cache.Indexer
volumeSource cache.ListerWatcher
claimController *cache.Controller
claimController cache.Controller
claimInformer cache.Store
claimSource cache.ListerWatcher
classReflector *cache.Reflector