factory_interfaces.go 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. Copyright The Kubernetes Authors.
  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. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // Code generated by informer-gen. DO NOT EDIT.
  14. package internalinterfaces
  15. import (
  16. time "time"
  17. versioned "github.com/rook/rook/pkg/client/clientset/versioned"
  18. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  19. runtime "k8s.io/apimachinery/pkg/runtime"
  20. cache "k8s.io/client-go/tools/cache"
  21. )
  22. // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
  23. type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
  24. // SharedInformerFactory a small interface to allow for adding an informer without an import cycle
  25. type SharedInformerFactory interface {
  26. Start(stopCh <-chan struct{})
  27. InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer
  28. }
  29. // TweakListOptionsFunc is a function that transforms a v1.ListOptions.
  30. type TweakListOptionsFunc func(*v1.ListOptions)