forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
fake_authorization_client.go
78 lines (60 loc) · 2.62 KB
/
fake_authorization_client.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
package fake
import (
internalversion "github.com/openshift/origin/pkg/authorization/generated/internalclientset/typed/authorization/internalversion"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
)
type FakeAuthorization struct {
*testing.Fake
}
func (c *FakeAuthorization) ClusterPolicies() internalversion.ClusterPolicyInterface {
return &FakeClusterPolicies{c}
}
func (c *FakeAuthorization) ClusterPolicyBindings() internalversion.ClusterPolicyBindingInterface {
return &FakeClusterPolicyBindings{c}
}
func (c *FakeAuthorization) ClusterRoles() internalversion.ClusterRoleInterface {
return &FakeClusterRoles{c}
}
func (c *FakeAuthorization) ClusterRoleBindings() internalversion.ClusterRoleBindingInterface {
return &FakeClusterRoleBindings{c}
}
func (c *FakeAuthorization) LocalResourceAccessReviews(namespace string) internalversion.LocalResourceAccessReviewInterface {
return &FakeLocalResourceAccessReviews{c, namespace}
}
func (c *FakeAuthorization) LocalSubjectAccessReviews(namespace string) internalversion.LocalSubjectAccessReviewInterface {
return &FakeLocalSubjectAccessReviews{c, namespace}
}
func (c *FakeAuthorization) Policies(namespace string) internalversion.PolicyInterface {
return &FakePolicies{c, namespace}
}
func (c *FakeAuthorization) PolicyBindings(namespace string) internalversion.PolicyBindingInterface {
return &FakePolicyBindings{c, namespace}
}
func (c *FakeAuthorization) ResourceAccessReviews() internalversion.ResourceAccessReviewInterface {
return &FakeResourceAccessReviews{c}
}
func (c *FakeAuthorization) Roles(namespace string) internalversion.RoleInterface {
return &FakeRoles{c, namespace}
}
func (c *FakeAuthorization) RoleBindings(namespace string) internalversion.RoleBindingInterface {
return &FakeRoleBindings{c, namespace}
}
func (c *FakeAuthorization) RoleBindingRestrictions(namespace string) internalversion.RoleBindingRestrictionInterface {
return &FakeRoleBindingRestrictions{c, namespace}
}
func (c *FakeAuthorization) SelfSubjectRulesReviews(namespace string) internalversion.SelfSubjectRulesReviewInterface {
return &FakeSelfSubjectRulesReviews{c, namespace}
}
func (c *FakeAuthorization) SubjectAccessReviews() internalversion.SubjectAccessReviewInterface {
return &FakeSubjectAccessReviews{c}
}
func (c *FakeAuthorization) SubjectRulesReviews(namespace string) internalversion.SubjectRulesReviewInterface {
return &FakeSubjectRulesReviews{c, namespace}
}
// RESTClient returns a RESTClient that is used to communicate
// with API server by this client implementation.
func (c *FakeAuthorization) RESTClient() rest.Interface {
var ret *rest.RESTClient
return ret
}