github.com/cilium/cilium@v1.16.2/pkg/k8s/client/informers/externalversions/internalinterfaces/factory_interfaces.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  // Code generated by informer-gen. DO NOT EDIT.
     5  
     6  package internalinterfaces
     7  
     8  import (
     9  	time "time"
    10  
    11  	versioned "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned"
    12  	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    13  	runtime "k8s.io/apimachinery/pkg/runtime"
    14  	cache "k8s.io/client-go/tools/cache"
    15  )
    16  
    17  // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
    18  type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
    19  
    20  // SharedInformerFactory a small interface to allow for adding an informer without an import cycle
    21  type SharedInformerFactory interface {
    22  	Start(stopCh <-chan struct{})
    23  	InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer
    24  }
    25  
    26  // TweakListOptionsFunc is a function that transforms a v1.ListOptions.
    27  type TweakListOptionsFunc func(*v1.ListOptions)