1/* 2Copyright The Kubernetes Authors. 3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 6You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10Unless required by applicable law or agreed to in writing, software 11distributed under the License is distributed on an "AS IS" BASIS, 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13See the License for the specific language governing permissions and 14limitations under the License. 15*/ 16 17// Code generated by client-gen. DO NOT EDIT. 18 19package fake 20 21import ( 22 "context" 23 24 v1 "k8s.io/api/authorization/v1" 25 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" 26 schema "k8s.io/apimachinery/pkg/runtime/schema" 27 testing "k8s.io/client-go/testing" 28) 29 30// FakeLocalSubjectAccessReviews implements LocalSubjectAccessReviewInterface 31type FakeLocalSubjectAccessReviews struct { 32 Fake *FakeAuthorizationV1 33 ns string 34} 35 36var localsubjectaccessreviewsResource = schema.GroupVersionResource{Group: "authorization.k8s.io", Version: "v1", Resource: "localsubjectaccessreviews"} 37 38var localsubjectaccessreviewsKind = schema.GroupVersionKind{Group: "authorization.k8s.io", Version: "v1", Kind: "LocalSubjectAccessReview"} 39 40// Create takes the representation of a localSubjectAccessReview and creates it. Returns the server's representation of the localSubjectAccessReview, and an error, if there is any. 41func (c *FakeLocalSubjectAccessReviews) Create(ctx context.Context, localSubjectAccessReview *v1.LocalSubjectAccessReview, opts metav1.CreateOptions) (result *v1.LocalSubjectAccessReview, err error) { 42 obj, err := c.Fake. 43 Invokes(testing.NewCreateAction(localsubjectaccessreviewsResource, c.ns, localSubjectAccessReview), &v1.LocalSubjectAccessReview{}) 44 45 if obj == nil { 46 return nil, err 47 } 48 return obj.(*v1.LocalSubjectAccessReview), err 49} 50