From 7511061861861b17894ac49289e8df209b7ba465 Mon Sep 17 00:00:00 2001 From: Miguel Bernabeu Date: Wed, 3 Oct 2018 21:39:26 +0200 Subject: [PATCH] Fix golint errors when generating informer code Kubernetes-commit: acf78cd6133de6faea9221d8c53b02ca6009b0bb --- informers/internalinterfaces/factory_interfaces.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/informers/internalinterfaces/factory_interfaces.go b/informers/internalinterfaces/factory_interfaces.go index 5e05516b..b00ed70c 100644 --- a/informers/internalinterfaces/factory_interfaces.go +++ b/informers/internalinterfaces/factory_interfaces.go @@ -27,6 +27,7 @@ import ( cache "k8s.io/client-go/tools/cache" ) +// NewInformerFunc takes kubernetes.Interface and time.Duration to return a SharedIndexInformer. type NewInformerFunc func(kubernetes.Interface, time.Duration) cache.SharedIndexInformer // SharedInformerFactory a small interface to allow for adding an informer without an import cycle @@ -35,4 +36,5 @@ type SharedInformerFactory interface { InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer } +// TweakListOptionsFunc is a function that transforms a v1.ListOptions. type TweakListOptionsFunc func(*v1.ListOptions)