...
1
16
17
18
19 package v1
20
21 import (
22 internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
23 )
24
25
26 type Interface interface {
27
28 ControllerRevisions() ControllerRevisionInformer
29
30 DaemonSets() DaemonSetInformer
31
32 Deployments() DeploymentInformer
33
34 ReplicaSets() ReplicaSetInformer
35
36 StatefulSets() StatefulSetInformer
37 }
38
39 type version struct {
40 factory internalinterfaces.SharedInformerFactory
41 namespace string
42 tweakListOptions internalinterfaces.TweakListOptionsFunc
43 }
44
45
46 func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
47 return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
48 }
49
50
51 func (v *version) ControllerRevisions() ControllerRevisionInformer {
52 return &controllerRevisionInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
53 }
54
55
56 func (v *version) DaemonSets() DaemonSetInformer {
57 return &daemonSetInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
58 }
59
60
61 func (v *version) Deployments() DeploymentInformer {
62 return &deploymentInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
63 }
64
65
66 func (v *version) ReplicaSets() ReplicaSetInformer {
67 return &replicaSetInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
68 }
69
70
71 func (v *version) StatefulSets() StatefulSetInformer {
72 return &statefulSetInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
73 }
74
View as plain text