interface.go 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 autoscaling
  15. import (
  16. v1 "k8s.io/client-go/informers/autoscaling/v1"
  17. v2 "k8s.io/client-go/informers/autoscaling/v2"
  18. v2beta1 "k8s.io/client-go/informers/autoscaling/v2beta1"
  19. v2beta2 "k8s.io/client-go/informers/autoscaling/v2beta2"
  20. internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
  21. )
  22. // Interface provides access to each of this group's versions.
  23. type Interface interface {
  24. // V1 provides access to shared informers for resources in V1.
  25. V1() v1.Interface
  26. // V2 provides access to shared informers for resources in V2.
  27. V2() v2.Interface
  28. // V2beta1 provides access to shared informers for resources in V2beta1.
  29. V2beta1() v2beta1.Interface
  30. // V2beta2 provides access to shared informers for resources in V2beta2.
  31. V2beta2() v2beta2.Interface
  32. }
  33. type group struct {
  34. factory internalinterfaces.SharedInformerFactory
  35. namespace string
  36. tweakListOptions internalinterfaces.TweakListOptionsFunc
  37. }
  38. // New returns a new Interface.
  39. func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
  40. return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
  41. }
  42. // V1 returns a new v1.Interface.
  43. func (g *group) V1() v1.Interface {
  44. return v1.New(g.factory, g.namespace, g.tweakListOptions)
  45. }
  46. // V2 returns a new v2.Interface.
  47. func (g *group) V2() v2.Interface {
  48. return v2.New(g.factory, g.namespace, g.tweakListOptions)
  49. }
  50. // V2beta1 returns a new v2beta1.Interface.
  51. func (g *group) V2beta1() v2beta1.Interface {
  52. return v2beta1.New(g.factory, g.namespace, g.tweakListOptions)
  53. }
  54. // V2beta2 returns a new v2beta2.Interface.
  55. func (g *group) V2beta2() v2beta2.Interface {
  56. return v2beta2.New(g.factory, g.namespace, g.tweakListOptions)
  57. }