Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 790374d

Browse files
committed
create the methods in the generated expansion files
1 parent ed8adf6 commit 790374d

15 files changed

Lines changed: 192 additions & 6 deletions

File tree

pkg/client/clientset_generated/internalclientset/typed/authorization/internalversion/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ go_library(
1616
"selfsubjectaccessreview.go",
1717
"selfsubjectaccessreview_expansion.go",
1818
"selfsubjectrulesreview.go",
19+
"selfsubjectrulesreview_expansion.go",
1920
"subjectaccessreview.go",
2021
"subjectaccessreview_expansion.go",
2122
],

pkg/client/clientset_generated/internalclientset/typed/authorization/internalversion/fake/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ go_library(
1616
"fake_selfsubjectaccessreview.go",
1717
"fake_selfsubjectaccessreview_expansion.go",
1818
"fake_selfsubjectrulesreview.go",
19+
"fake_selfsubjectrulesreview_expansion.go",
1920
"fake_subjectaccessreview.go",
2021
"fake_subjectaccessreview_expansion.go",
2122
],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2017 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+
package fake
18+
19+
import (
20+
core "k8s.io/client-go/testing"
21+
authorizationapi "k8s.io/kubernetes/pkg/apis/authorization"
22+
)
23+
24+
func (c *FakeSelfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) {
25+
obj, err := c.Fake.Invokes(core.NewRootCreateAction(authorizationapi.SchemeGroupVersion.WithResource("selfsubjectrulesreviews"), srr), &authorizationapi.SelfSubjectRulesReview{})
26+
return obj.(*authorizationapi.SelfSubjectRulesReview), err
27+
}

pkg/client/clientset_generated/internalclientset/typed/authorization/internalversion/generated_expansion.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ limitations under the License.
1515
*/
1616

1717
package internalversion
18-
19-
type SelfSubjectRulesReviewExpansion interface{}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright 2017 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+
package internalversion
18+
19+
import (
20+
authorizationapi "k8s.io/kubernetes/pkg/apis/authorization"
21+
)
22+
23+
type SelfSubjectRulesReviewExpansion interface {
24+
Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error)
25+
}
26+
27+
func (c *selfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) {
28+
result = &authorizationapi.SelfSubjectRulesReview{}
29+
err = c.client.Post().
30+
Resource("selfsubjectrulesreviews").
31+
Body(srr).
32+
Do().
33+
Into(result)
34+
return
35+
}

staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ go_library(
1616
"selfsubjectaccessreview.go",
1717
"selfsubjectaccessreview_expansion.go",
1818
"selfsubjectrulesreview.go",
19+
"selfsubjectrulesreview_expansion.go",
1920
"subjectaccessreview.go",
2021
"subjectaccessreview_expansion.go",
2122
],

staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1/fake/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ go_library(
1515
"fake_selfsubjectaccessreview.go",
1616
"fake_selfsubjectaccessreview_expansion.go",
1717
"fake_selfsubjectrulesreview.go",
18+
"fake_selfsubjectrulesreview_expansion.go",
1819
"fake_subjectaccessreview.go",
1920
"fake_subjectaccessreview_expansion.go",
2021
],
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2017 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+
package fake
18+
19+
import (
20+
authorizationapi "k8s.io/api/authorization/v1"
21+
core "k8s.io/client-go/testing"
22+
)
23+
24+
func (c *FakeSelfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) {
25+
obj, err := c.Fake.Invokes(core.NewRootCreateAction(authorizationapi.SchemeGroupVersion.WithResource("selfsubjectrulesreviews"), srr), &authorizationapi.SelfSubjectRulesReview{})
26+
return obj.(*authorizationapi.SelfSubjectRulesReview), err
27+
}

staging/src/k8s.io/client-go/kubernetes/typed/authorization/v1/generated_expansion.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ limitations under the License.
1515
*/
1616

1717
package v1
18-
19-
type SelfSubjectRulesReviewExpansion interface{}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
Copyright 2017 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+
package v1
18+
19+
import (
20+
authorizationapi "k8s.io/api/authorization/v1"
21+
)
22+
23+
type SelfSubjectRulesReviewExpansion interface {
24+
Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error)
25+
}
26+
27+
func (c *selfSubjectRulesReviews) Create(srr *authorizationapi.SelfSubjectRulesReview) (result *authorizationapi.SelfSubjectRulesReview, err error) {
28+
result = &authorizationapi.SelfSubjectRulesReview{}
29+
err = c.client.Post().
30+
Resource("selfsubjectrulesreviews").
31+
Body(srr).
32+
Do().
33+
Into(result)
34+
return
35+
}

0 commit comments

Comments
 (0)