-
Notifications
You must be signed in to change notification settings - Fork 87
/
interfaces.go
55 lines (43 loc) · 1.58 KB
/
interfaces.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package configobservation
import (
corelistersv1 "k8s.io/client-go/listers/core/v1"
"k8s.io/client-go/tools/cache"
configlistersv1 "github.com/openshift/client-go/config/listers/config/v1"
libgoetcd "github.com/openshift/library-go/pkg/operator/configobserver/etcd"
"github.com/openshift/library-go/pkg/operator/resourcesynccontroller"
)
var _ libgoetcd.ConfigMapLister = Listers{}
var _ libgoetcd.EndpointsLister = Listers{}
type Listers struct {
ResourceSync resourcesynccontroller.ResourceSyncer
APIServerLister_ configlistersv1.APIServerLister
ImageConfigLister configlistersv1.ImageLister
ProjectConfigLister configlistersv1.ProjectLister
ProxyLister_ configlistersv1.ProxyLister
IngressConfigLister configlistersv1.IngressLister
EndpointsLister_ corelistersv1.EndpointsLister
PreRunCachesSynced []cache.InformerSynced
SecretLister_ corelistersv1.SecretLister
ConfigmapLister_ corelistersv1.ConfigMapLister
}
func (l Listers) ResourceSyncer() resourcesynccontroller.ResourceSyncer {
return l.ResourceSync
}
func (l Listers) SecretLister() corelistersv1.SecretLister {
return l.SecretLister_
}
func (l Listers) PreRunHasSynced() []cache.InformerSynced {
return l.PreRunCachesSynced
}
func (l Listers) APIServerLister() configlistersv1.APIServerLister {
return l.APIServerLister_
}
func (l Listers) ProxyLister() configlistersv1.ProxyLister {
return l.ProxyLister_
}
func (l Listers) ConfigMapLister() corelistersv1.ConfigMapLister {
return l.ConfigmapLister_
}
func (l Listers) EndpointsLister() corelistersv1.EndpointsLister {
return l.EndpointsLister_
}