forked from openshift/origin
/
fake_authorization_client.go
64 lines (49 loc) · 2.14 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
// Code generated by client-gen. DO NOT EDIT.
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) 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) 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
}