Debian Codegraph @

kubernetes/typed/authorization/v1beta1/selfsubjectrulesreview.go

raw symbols SCIP
1 /*
2 Copyright The Kubernetes Authors.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 // Code generated by client-gen. DO NOT EDIT.
18
19 package v1beta1
20
21 import (
22 context "context"
23
24 authorizationv1beta1 "k8s.io/api/authorization/v1beta1"
25 v1 "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 // SelfSubjectRulesReviewsGetter has a method to return a SelfSubjectRulesReviewInterface.
31 // A group's client should implement this interface.
32 type SelfSubjectRulesReviewsGetter interface {
33 SelfSubjectRulesReviews() SelfSubjectRulesReviewInterface
34 }
35
36 // SelfSubjectRulesReviewInterface has methods to work with SelfSubjectRulesReview resources.
37 type SelfSubjectRulesReviewInterface interface {
38 Create(ctx context.Context, selfSubjectRulesReview *authorizationv1beta1.SelfSubjectRulesReview, opts v1.CreateOptions) (*authorizationv1beta1.SelfSubjectRulesReview, error)
39 SelfSubjectRulesReviewExpansion
40 }
41
42 // selfSubjectRulesReviews implements SelfSubjectRulesReviewInterface
43 type selfSubjectRulesReviews struct {
44 *gentype.Client[*authorizationv1beta1.SelfSubjectRulesReview]
45 }
46
47 // newSelfSubjectRulesReviews returns a SelfSubjectRulesReviews
48 func newSelfSubjectRulesReviews(c *AuthorizationV1beta1Client) *selfSubjectRulesReviews {
49 return &selfSubjectRulesReviews{
50 gentype.NewClient[*authorizationv1beta1.SelfSubjectRulesReview](
51 "selfsubjectrulesreviews",
52 c.RESTClient(),
53 scheme.ParameterCodec,
54 "",
55 func() *authorizationv1beta1.SelfSubjectRulesReview {
56 return &authorizationv1beta1.SelfSubjectRulesReview{}
57 },
58 gentype.PrefersProtobuf[*authorizationv1beta1.SelfSubjectRulesReview](),
59 ),
60 }
61 }