github.com/docker/compose-on-kubernetes@v0.5.0/api/client/informers/internalinterfaces/factory_interfaces.go (about)

     1  package internalinterfaces
     2  
     3  import (
     4  	"time"
     5  
     6  	"github.com/docker/compose-on-kubernetes/api/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  }