forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
podsecuritypolicyselfsubjectreview.go
46 lines (39 loc) · 1.92 KB
/
podsecuritypolicyselfsubjectreview.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
// Code generated by client-gen. DO NOT EDIT.
package internalversion
import (
security "github.com/openshift/origin/pkg/security/apis/security"
rest "k8s.io/client-go/rest"
)
// PodSecurityPolicySelfSubjectReviewsGetter has a method to return a PodSecurityPolicySelfSubjectReviewInterface.
// A group's client should implement this interface.
type PodSecurityPolicySelfSubjectReviewsGetter interface {
PodSecurityPolicySelfSubjectReviews(namespace string) PodSecurityPolicySelfSubjectReviewInterface
}
// PodSecurityPolicySelfSubjectReviewInterface has methods to work with PodSecurityPolicySelfSubjectReview resources.
type PodSecurityPolicySelfSubjectReviewInterface interface {
Create(*security.PodSecurityPolicySelfSubjectReview) (*security.PodSecurityPolicySelfSubjectReview, error)
PodSecurityPolicySelfSubjectReviewExpansion
}
// podSecurityPolicySelfSubjectReviews implements PodSecurityPolicySelfSubjectReviewInterface
type podSecurityPolicySelfSubjectReviews struct {
client rest.Interface
ns string
}
// newPodSecurityPolicySelfSubjectReviews returns a PodSecurityPolicySelfSubjectReviews
func newPodSecurityPolicySelfSubjectReviews(c *SecurityClient, namespace string) *podSecurityPolicySelfSubjectReviews {
return &podSecurityPolicySelfSubjectReviews{
client: c.RESTClient(),
ns: namespace,
}
}
// Create takes the representation of a podSecurityPolicySelfSubjectReview and creates it. Returns the server's representation of the podSecurityPolicySelfSubjectReview, and an error, if there is any.
func (c *podSecurityPolicySelfSubjectReviews) Create(podSecurityPolicySelfSubjectReview *security.PodSecurityPolicySelfSubjectReview) (result *security.PodSecurityPolicySelfSubjectReview, err error) {
result = &security.PodSecurityPolicySelfSubjectReview{}
err = c.client.Post().
Namespace(c.ns).
Resource("podsecuritypolicyselfsubjectreviews").
Body(podSecurityPolicySelfSubjectReview).
Do().
Into(result)
return
}