github.phpd.cn/cilium/cilium@v1.6.12/pkg/k8s/client/informers/externalversions/internalinterfaces/factory_interfaces.go (about) 1 // Copyright 2017-2019 Authors of Cilium 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by informer-gen. DO NOT EDIT. 16 17 package internalinterfaces 18 19 import ( 20 time "time" 21 22 versioned "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned" 23 v1 "k8s.io/apimachinery/pkg/apis/meta/v1" 24 runtime "k8s.io/apimachinery/pkg/runtime" 25 cache "k8s.io/client-go/tools/cache" 26 ) 27 28 // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer. 29 type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer 30 31 // SharedInformerFactory a small interface to allow for adding an informer without an import cycle 32 type SharedInformerFactory interface { 33 Start(stopCh <-chan struct{}) 34 InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer 35 } 36 37 // TweakListOptionsFunc is a function that transforms a v1.ListOptions. 38 type TweakListOptionsFunc func(*v1.ListOptions)