github.com/tigera/api@v0.0.0-20240320170621-278e89a8c5fb/pkg/client/informers_generated/externalversions/internalinterfaces/factory_interfaces.go (about)

     1  // Copyright (c) 2024 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/tigera/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)