...
1
16
17
18
19 package batch
20
21 import (
22 v1 "k8s.io/client-go/informers/batch/v1"
23 v1beta1 "k8s.io/client-go/informers/batch/v1beta1"
24 internalinterfaces "k8s.io/client-go/informers/internalinterfaces"
25 )
26
27
28 type Interface interface {
29
30 V1() v1.Interface
31
32 V1beta1() v1beta1.Interface
33 }
34
35 type group struct {
36 factory internalinterfaces.SharedInformerFactory
37 namespace string
38 tweakListOptions internalinterfaces.TweakListOptionsFunc
39 }
40
41
42 func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
43 return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
44 }
45
46
47 func (g *group) V1() v1.Interface {
48 return v1.New(g.factory, g.namespace, g.tweakListOptions)
49 }
50
51
52 func (g *group) V1beta1() v1beta1.Interface {
53 return v1beta1.New(g.factory, g.namespace, g.tweakListOptions)
54 }
55
View as plain text