factory_interfaces.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2021 the Kilo authors
  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. // Code generated by informer-gen. DO NOT EDIT.
  15. package internalinterfaces
  16. import (
  17. time "time"
  18. versioned "github.com/kilo-io/kilo/pkg/k8s/clientset/versioned"
  19. v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
  20. runtime "k8s.io/apimachinery/pkg/runtime"
  21. cache "k8s.io/client-go/tools/cache"
  22. )
  23. // NewInformerFunc takes versioned.Interface and time.Duration to return a SharedIndexInformer.
  24. type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer
  25. // SharedInformerFactory a small interface to allow for adding an informer without an import cycle
  26. type SharedInformerFactory interface {
  27. Start(stopCh <-chan struct{})
  28. InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer
  29. }
  30. // TweakListOptionsFunc is a function that transforms a v1.ListOptions.
  31. type TweakListOptionsFunc func(*v1.ListOptions)