...
1
16
17
18
19 package v1beta1
20
21 import (
22 internalinterfaces "github.com/kubernetes-csi/external-snapshotter/client/v4/informers/externalversions/internalinterfaces"
23 )
24
25
26 type Interface interface {
27
28 VolumeSnapshots() VolumeSnapshotInformer
29
30 VolumeSnapshotClasses() VolumeSnapshotClassInformer
31
32 VolumeSnapshotContents() VolumeSnapshotContentInformer
33 }
34
35 type version 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 &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
44 }
45
46
47 func (v *version) VolumeSnapshots() VolumeSnapshotInformer {
48 return &volumeSnapshotInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
49 }
50
51
52 func (v *version) VolumeSnapshotClasses() VolumeSnapshotClassInformer {
53 return &volumeSnapshotClassInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
54 }
55
56
57 func (v *version) VolumeSnapshotContents() VolumeSnapshotContentInformer {
58 return &volumeSnapshotContentInformer{factory: v.factory, tweakListOptions: v.tweakListOptions}
59 }
60
View as plain text