forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fake_security_client.go
34 lines (27 loc) · 1.16 KB
/
fake_security_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
package fake
import (
internalversion "github.com/openshift/origin/pkg/security/generated/internalclientset/typed/security/internalversion"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
)
type FakeSecurity struct {
*testing.Fake
}
func (c *FakeSecurity) PodSecurityPolicyReviews(namespace string) internalversion.PodSecurityPolicyReviewInterface {
return &FakePodSecurityPolicyReviews{c, namespace}
}
func (c *FakeSecurity) PodSecurityPolicySelfSubjectReviews(namespace string) internalversion.PodSecurityPolicySelfSubjectReviewInterface {
return &FakePodSecurityPolicySelfSubjectReviews{c, namespace}
}
func (c *FakeSecurity) PodSecurityPolicySubjectReviews(namespace string) internalversion.PodSecurityPolicySubjectReviewInterface {
return &FakePodSecurityPolicySubjectReviews{c, namespace}
}
func (c *FakeSecurity) SecurityContextConstraints() internalversion.SecurityContextConstraintsInterface {
return &FakeSecurityContextConstraints{c}
}
// RESTClient returns a RESTClient that is used to communicate
// with API server by this client implementation.
func (c *FakeSecurity) RESTClient() rest.Interface {
var ret *rest.RESTClient
return ret
}