...
1
16
17
18
19 package v1alpha1
20
21 import (
22 internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
23 )
24
25
26 type Interface interface {
27
28 ClusterRoles() ClusterRoleInformer
29
30 ClusterRoleBindings() ClusterRoleBindingInformer
31
32 Roles() RoleInformer
33
34 RoleBindings() RoleBindingInformer
35 }
36
37 type version struct {
38 factory internalinterfaces.SharedInformerFactory
39 namespace string
40 tweakListOptions internalinterfaces.TweakListOptionsFunc
41 }
42
43
44 func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
45 return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
46 }
47
48
49 func (v *version) ClusterRoles() ClusterRoleInformer {
50 return &clusterRoleInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
51 }
52
53
54 func (v *version) ClusterRoleBindings() ClusterRoleBindingInformer {
55 return &clusterRoleBindingInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
56 }
57
58
59 func (v *version) Roles() RoleInformer {
60 return &roleInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
61 }
62
63
64 func (v *version) RoleBindings() RoleBindingInformer {
65 return &roleBindingInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
66 }
67
View as plain text