interface.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 v1
  15. import (
  16. internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
  17. )
  18. // Interface provides access to all the informers in this group version.
  19. type Interface interface {
  20. // ClusterRoles returns a ClusterRoleInformer.
  21. ClusterRoles() ClusterRoleInformer
  22. // ClusterRoleBindings returns a ClusterRoleBindingInformer.
  23. ClusterRoleBindings() ClusterRoleBindingInformer
  24. // Roles returns a RoleInformer.
  25. Roles() RoleInformer
  26. // RoleBindings returns a RoleBindingInformer.
  27. RoleBindings() RoleBindingInformer
  28. }
  29. type version struct {
  30. factory internalinterfaces.SharedInformerFactory
  31. namespace string
  32. tweakListOptions internalinterfaces.TweakListOptionsFunc
  33. }
  34. // New returns a new Interface.
  35. func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
  36. return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
  37. }
  38. // ClusterRoles returns a ClusterRoleInformer.
  39. func (v *version) ClusterRoles() ClusterRoleInformer {
  40. return &clusterRoleInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
  41. }
  42. // ClusterRoleBindings returns a ClusterRoleBindingInformer.
  43. func (v *version) ClusterRoleBindings() ClusterRoleBindingInformer {
  44. return &clusterRoleBindingInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
  45. }
  46. // Roles returns a RoleInformer.
  47. func (v *version) Roles() RoleInformer {
  48. return &roleInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
  49. }
  50. // RoleBindings returns a RoleBindingInformer.
  51. func (v *version) RoleBindings() RoleBindingInformer {
  52. return &roleBindingInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
  53. }