interface.go 1.5 KB

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