github.com/projectcalico/api@v0.0.0-20231218190037-9183ab93f33e/pkg/client/informers_generated/externalversions/internalinterfaces/factory_interfaces.go (about) 1 // Copyright (c) 2023 Tigera, Inc. All rights reserved. 2 3 // Code generated by informer-gen. DO NOT EDIT. 4 5 package internalinterfaces 6 7 import ( 8 time "time" 9 10 clientset "github.com/projectcalico/api/pkg/client/clientset_generated/clientset" 11 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 12 runtime "k8s.io/apimachinery/pkg/runtime" 13 cache "k8s.io/client-go/tools/cache" 14 ) 15 16 // NewInformerFunc takes clientset.Interface and time.Duration to return a SharedIndexInformer. 17 type NewInformerFunc func(clientset.Interface, time.Duration) cache.SharedIndexInformer 18 19 // SharedInformerFactory a small interface to allow for adding an informer without an import cycle 20 type SharedInformerFactory interface { 21 Start(stopCh <-chan struct{}) 22 InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer 23 } 24 25 // TweakListOptionsFunc is a function that transforms a v1.ListOptions. 26 type TweakListOptionsFunc func(*v1.ListOptions)