| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
package v1 |
| 20 |
|
| 21 |
import ( |
| 22 |
context "context" |
| 23 |
|
| 24 |
authorizationv1 "k8s.io/api/authorization/v1" |
| 25 |
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 26 |
gentype "k8s.io/client-go/gentype" |
| 27 |
scheme "k8s.io/client-go/kubernetes/scheme" |
| 28 |
) |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
type SelfSubjectAccessReviewsGetter interface { |
| 33 |
SelfSubjectAccessReviews() SelfSubjectAccessReviewInterface |
| 34 |
} |
| 35 |
|
| 36 |
|
| 37 |
type SelfSubjectAccessReviewInterface interface { |
| 38 |
Create(ctx context.Context, selfSubjectAccessReview *authorizationv1.SelfSubjectAccessReview, opts metav1.CreateOptions) (*authorizationv1.SelfSubjectAccessReview, error) |
| 39 |
SelfSubjectAccessReviewExpansion |
| 40 |
} |
| 41 |
|
| 42 |
|
| 43 |
type selfSubjectAccessReviews struct { |
| 44 |
*gentype.Client[*authorizationv1.SelfSubjectAccessReview] |
| 45 |
} |
| 46 |
|
| 47 |
|
| 48 |
func newSelfSubjectAccessReviews(c *AuthorizationV1Client) *selfSubjectAccessReviews { |
| 49 |
return &selfSubjectAccessReviews{ |
| 50 |
gentype.NewClient[*authorizationv1.SelfSubjectAccessReview]( |
| 51 |
"selfsubjectaccessreviews", |
| 52 |
c.RESTClient(), |
| 53 |
scheme.ParameterCodec, |
| 54 |
"", |
| 55 |
func() *authorizationv1.SelfSubjectAccessReview { return &authorizationv1.SelfSubjectAccessReview{} }, |
| 56 |
gentype.PrefersProtobuf[*authorizationv1.SelfSubjectAccessReview](), |
| 57 |
), |
| 58 |
} |
| 59 |
} |