k8s.io/client-go@v0.31.1/kubernetes/typed/authentication/v1/selfsubjectreview.go (about) 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 v1 20 21 import ( 22 "context" 23 24 v1 "k8s.io/api/authentication/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 // SelfSubjectReviewsGetter has a method to return a SelfSubjectReviewInterface. 31 // A group's client should implement this interface. 32 type SelfSubjectReviewsGetter interface { 33 SelfSubjectReviews() SelfSubjectReviewInterface 34 } 35 36 // SelfSubjectReviewInterface has methods to work with SelfSubjectReview resources. 37 type SelfSubjectReviewInterface interface { 38 Create(ctx context.Context, selfSubjectReview *v1.SelfSubjectReview, opts metav1.CreateOptions) (*v1.SelfSubjectReview, error) 39 SelfSubjectReviewExpansion 40 } 41 42 // selfSubjectReviews implements SelfSubjectReviewInterface 43 type selfSubjectReviews struct { 44 *gentype.Client[*v1.SelfSubjectReview] 45 } 46 47 // newSelfSubjectReviews returns a SelfSubjectReviews 48 func newSelfSubjectReviews(c *AuthenticationV1Client) *selfSubjectReviews { 49 return &selfSubjectReviews{ 50 gentype.NewClient[*v1.SelfSubjectReview]( 51 "selfsubjectreviews", 52 c.RESTClient(), 53 scheme.ParameterCodec, 54 "", 55 func() *v1.SelfSubjectReview { return &v1.SelfSubjectReview{} }), 56 } 57 }