mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
autogenerated
This commit is contained in:
parent
7419e27e98
commit
2cbbaf4384
@ -25,6 +25,8 @@ import (
|
|||||||
|
|
||||||
type AuthorizationInterface interface {
|
type AuthorizationInterface interface {
|
||||||
GetRESTClient() *restclient.RESTClient
|
GetRESTClient() *restclient.RESTClient
|
||||||
|
LocalSubjectAccessReviewsGetter
|
||||||
|
SelfSubjectAccessReviewsGetter
|
||||||
SubjectAccessReviewsGetter
|
SubjectAccessReviewsGetter
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,6 +35,14 @@ type AuthorizationClient struct {
|
|||||||
*restclient.RESTClient
|
*restclient.RESTClient
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *AuthorizationClient) LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface {
|
||||||
|
return newLocalSubjectAccessReviews(c, namespace)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *AuthorizationClient) SelfSubjectAccessReviews() SelfSubjectAccessReviewInterface {
|
||||||
|
return newSelfSubjectAccessReviews(c)
|
||||||
|
}
|
||||||
|
|
||||||
func (c *AuthorizationClient) SubjectAccessReviews() SubjectAccessReviewInterface {
|
func (c *AuthorizationClient) SubjectAccessReviews() SubjectAccessReviewInterface {
|
||||||
return newSubjectAccessReviews(c)
|
return newSubjectAccessReviews(c)
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,14 @@ type FakeAuthorization struct {
|
|||||||
*core.Fake
|
*core.Fake
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *FakeAuthorization) LocalSubjectAccessReviews(namespace string) v1beta1.LocalSubjectAccessReviewInterface {
|
||||||
|
return &FakeLocalSubjectAccessReviews{c, namespace}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *FakeAuthorization) SelfSubjectAccessReviews() v1beta1.SelfSubjectAccessReviewInterface {
|
||||||
|
return &FakeSelfSubjectAccessReviews{c}
|
||||||
|
}
|
||||||
|
|
||||||
func (c *FakeAuthorization) SubjectAccessReviews() v1beta1.SubjectAccessReviewInterface {
|
func (c *FakeAuthorization) SubjectAccessReviews() v1beta1.SubjectAccessReviewInterface {
|
||||||
return &FakeSubjectAccessReviews{c}
|
return &FakeSubjectAccessReviews{c}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package fake
|
||||||
|
|
||||||
|
// FakeLocalSubjectAccessReviews implements LocalSubjectAccessReviewInterface
|
||||||
|
type FakeLocalSubjectAccessReviews struct {
|
||||||
|
Fake *FakeAuthorization
|
||||||
|
ns string
|
||||||
|
}
|
@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package fake
|
||||||
|
|
||||||
|
// FakeSelfSubjectAccessReviews implements SelfSubjectAccessReviewInterface
|
||||||
|
type FakeSelfSubjectAccessReviews struct {
|
||||||
|
Fake *FakeAuthorization
|
||||||
|
}
|
@ -15,3 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
package v1beta1
|
package v1beta1
|
||||||
|
|
||||||
|
type LocalSubjectAccessReviewExpansion interface{}
|
||||||
|
|
||||||
|
type SelfSubjectAccessReviewExpansion interface{}
|
||||||
|
@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1beta1
|
||||||
|
|
||||||
|
// LocalSubjectAccessReviewsGetter has a method to return a LocalSubjectAccessReviewInterface.
|
||||||
|
// A group's client should implement this interface.
|
||||||
|
type LocalSubjectAccessReviewsGetter interface {
|
||||||
|
LocalSubjectAccessReviews(namespace string) LocalSubjectAccessReviewInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
// LocalSubjectAccessReviewInterface has methods to work with LocalSubjectAccessReview resources.
|
||||||
|
type LocalSubjectAccessReviewInterface interface {
|
||||||
|
LocalSubjectAccessReviewExpansion
|
||||||
|
}
|
||||||
|
|
||||||
|
// localSubjectAccessReviews implements LocalSubjectAccessReviewInterface
|
||||||
|
type localSubjectAccessReviews struct {
|
||||||
|
client *AuthorizationClient
|
||||||
|
ns string
|
||||||
|
}
|
||||||
|
|
||||||
|
// newLocalSubjectAccessReviews returns a LocalSubjectAccessReviews
|
||||||
|
func newLocalSubjectAccessReviews(c *AuthorizationClient, namespace string) *localSubjectAccessReviews {
|
||||||
|
return &localSubjectAccessReviews{
|
||||||
|
client: c,
|
||||||
|
ns: namespace,
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package v1beta1
|
||||||
|
|
||||||
|
// SelfSubjectAccessReviewsGetter has a method to return a SelfSubjectAccessReviewInterface.
|
||||||
|
// A group's client should implement this interface.
|
||||||
|
type SelfSubjectAccessReviewsGetter interface {
|
||||||
|
SelfSubjectAccessReviews() SelfSubjectAccessReviewInterface
|
||||||
|
}
|
||||||
|
|
||||||
|
// SelfSubjectAccessReviewInterface has methods to work with SelfSubjectAccessReview resources.
|
||||||
|
type SelfSubjectAccessReviewInterface interface {
|
||||||
|
SelfSubjectAccessReviewExpansion
|
||||||
|
}
|
||||||
|
|
||||||
|
// selfSubjectAccessReviews implements SelfSubjectAccessReviewInterface
|
||||||
|
type selfSubjectAccessReviews struct {
|
||||||
|
client *AuthorizationClient
|
||||||
|
}
|
||||||
|
|
||||||
|
// newSelfSubjectAccessReviews returns a SelfSubjectAccessReviews
|
||||||
|
func newSelfSubjectAccessReviews(c *AuthorizationClient) *selfSubjectAccessReviews {
|
||||||
|
return &selfSubjectAccessReviews{
|
||||||
|
client: c,
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user