github.com/AliyunContainerService/cli@v0.0.0-20181009023821-814ced4b30d0/kubernetes/client/informers/internalinterfaces/factory_interfaces.go (about) 1 package internalinterfaces 2 3 import ( 4 "time" 5 6 "github.com/docker/cli/kubernetes/client/clientset" 7 "k8s.io/apimachinery/pkg/runtime" 8 "k8s.io/client-go/tools/cache" 9 ) 10 11 // NewInformerFunc defines a Informer constructor (from a clientset and a duration) 12 type NewInformerFunc func(clientset.Interface, time.Duration) cache.SharedIndexInformer 13 14 // SharedInformerFactory a small interface to allow for adding an informer without an import cycle 15 type SharedInformerFactory interface { 16 Start(stopCh <-chan struct{}) 17 InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer 18 }