-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Expand file tree
/
Copy pathclient_adapters.go
More file actions
46 lines (35 loc) · 1.22 KB
/
client_adapters.go
File metadata and controls
46 lines (35 loc) · 1.22 KB
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
package origin
import authorizationlister "github.com/openshift/origin/pkg/authorization/generated/listers/authorization/internalversion"
// These adapters are temporary and will be removed when the authorization chains are refactored
// to use Listers.
type LastSyncResourceVersioner interface {
LastSyncResourceVersion() string
}
type policyLister struct {
authorizationlister.PolicyLister
versioner LastSyncResourceVersioner
}
func (l policyLister) LastSyncResourceVersion() string {
return l.versioner.LastSyncResourceVersion()
}
type clusterPolicyLister struct {
authorizationlister.ClusterPolicyLister
versioner LastSyncResourceVersioner
}
func (l clusterPolicyLister) LastSyncResourceVersion() string {
return l.versioner.LastSyncResourceVersion()
}
type policyBindingLister struct {
authorizationlister.PolicyBindingLister
versioner LastSyncResourceVersioner
}
func (l policyBindingLister) LastSyncResourceVersion() string {
return l.versioner.LastSyncResourceVersion()
}
type clusterPolicyBindingLister struct {
authorizationlister.ClusterPolicyBindingLister
versioner LastSyncResourceVersioner
}
func (l clusterPolicyBindingLister) LastSyncResourceVersion() string {
return l.versioner.LastSyncResourceVersion()
}