interface.go 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 batch
  15. import (
  16. v1 "k8s.io/client-go/informers/batch/v1"
  17. v1beta1 "k8s.io/client-go/informers/batch/v1beta1"
  18. internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
  19. )
  20. // Interface provides access to each of this group's versions.
  21. type Interface interface {
  22. // V1 provides access to shared informers for resources in V1.
  23. V1() v1.Interface
  24. // V1beta1 provides access to shared informers for resources in V1beta1.
  25. V1beta1() v1beta1.Interface
  26. }
  27. type group struct {
  28. factory internalinterfaces.SharedInformerFactory
  29. namespace string
  30. tweakListOptions internalinterfaces.TweakListOptionsFunc
  31. }
  32. // New returns a new Interface.
  33. func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
  34. return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
  35. }
  36. // V1 returns a new v1.Interface.
  37. func (g *group) V1() v1.Interface {
  38. return v1.New(g.factory, g.namespace, g.tweakListOptions)
  39. }
  40. // V1beta1 returns a new v1beta1.Interface.
  41. func (g *group) V1beta1() v1beta1.Interface {
  42. return v1beta1.New(g.factory, g.namespace, g.tweakListOptions)
  43. }