Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2e5da8b8
Commit
2e5da8b8
authored
Jan 12, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #19379 from caesarxuchao/manual-methods
client-gen: generate an interface which allows user to expand typed client's methods
parents
4e72ded5
a0489e86
Hide whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
212 additions
and
3 deletions
+212
-3
client-generator.go
cmd/libs/go2idl/client-gen/generators/client-generator.go
+16
-3
generator-for-expansion.go
...s/go2idl/client-gen/generators/generator-for-expansion.go
+48
-0
generator-for-type.go
cmd/libs/go2idl/client-gen/generators/generator-for-type.go
+1
-0
generated_expansion.go
...n/testoutput/testgroup/unversioned/generated_expansion.go
+17
-0
testgroup_test.go
...nt-gen/testoutput/testgroup/unversioned/testgroup_test.go
+7
-0
testtype.go
...l/client-gen/testoutput/testgroup/unversioned/testtype.go
+1
-0
testtype_expansion.go
...en/testoutput/testgroup/unversioned/testtype_expansion.go
+25
-0
daemonset.go
...lient/typed/generated/extensions/unversioned/daemonset.go
+1
-0
deployment.go
...ient/typed/generated/extensions/unversioned/deployment.go
+1
-0
generated_expansion.go
...d/generated/extensions/unversioned/generated_expansion.go
+29
-0
horizontalpodautoscaler.go
...nerated/extensions/unversioned/horizontalpodautoscaler.go
+1
-0
ingress.go
pkg/client/typed/generated/extensions/unversioned/ingress.go
+1
-0
job.go
pkg/client/typed/generated/extensions/unversioned/job.go
+1
-0
thirdpartyresource.go
...ed/generated/extensions/unversioned/thirdpartyresource.go
+1
-0
componentstatus.go
...ent/typed/generated/legacy/unversioned/componentstatus.go
+1
-0
endpoints.go
pkg/client/typed/generated/legacy/unversioned/endpoints.go
+1
-0
event.go
pkg/client/typed/generated/legacy/unversioned/event.go
+1
-0
generated_expansion.go
...typed/generated/legacy/unversioned/generated_expansion.go
+47
-0
limitrange.go
pkg/client/typed/generated/legacy/unversioned/limitrange.go
+1
-0
namespace.go
pkg/client/typed/generated/legacy/unversioned/namespace.go
+1
-0
node.go
pkg/client/typed/generated/legacy/unversioned/node.go
+1
-0
persistentvolume.go
...nt/typed/generated/legacy/unversioned/persistentvolume.go
+1
-0
persistentvolumeclaim.go
...ped/generated/legacy/unversioned/persistentvolumeclaim.go
+1
-0
pod.go
pkg/client/typed/generated/legacy/unversioned/pod.go
+1
-0
podtemplate.go
pkg/client/typed/generated/legacy/unversioned/podtemplate.go
+1
-0
replicationcontroller.go
...ped/generated/legacy/unversioned/replicationcontroller.go
+1
-0
resourcequota.go
...lient/typed/generated/legacy/unversioned/resourcequota.go
+1
-0
secret.go
pkg/client/typed/generated/legacy/unversioned/secret.go
+1
-0
service.go
pkg/client/typed/generated/legacy/unversioned/service.go
+1
-0
serviceaccount.go
...ient/typed/generated/legacy/unversioned/serviceaccount.go
+1
-0
No files found.
cmd/libs/go2idl/client-gen/generators/client-generator.go
View file @
2e5da8b8
...
@@ -18,6 +18,7 @@ limitations under the License.
...
@@ -18,6 +18,7 @@ limitations under the License.
package
generators
package
generators
import
(
import
(
"os"
"path/filepath"
"path/filepath"
"strings"
"strings"
...
@@ -50,8 +51,8 @@ func DefaultNameSystem() string {
...
@@ -50,8 +51,8 @@ func DefaultNameSystem() string {
return
"public"
return
"public"
}
}
func
packageForGroup
(
group
string
,
version
string
,
typeList
[]
*
types
.
Type
,
bas
ePath
string
,
boilerplate
[]
byte
)
generator
.
Package
{
func
packageForGroup
(
group
string
,
version
string
,
typeList
[]
*
types
.
Type
,
packageBasePath
string
,
srcTre
ePath
string
,
boilerplate
[]
byte
)
generator
.
Package
{
outputPackagePath
:=
filepath
.
Join
(
b
asePath
,
group
,
version
)
outputPackagePath
:=
filepath
.
Join
(
packageB
asePath
,
group
,
version
)
return
&
generator
.
DefaultPackage
{
return
&
generator
.
DefaultPackage
{
PackageName
:
version
,
PackageName
:
version
,
PackagePath
:
outputPackagePath
,
PackagePath
:
outputPackagePath
,
...
@@ -89,6 +90,18 @@ func packageForGroup(group string, version string, typeList []*types.Type, baseP
...
@@ -89,6 +90,18 @@ func packageForGroup(group string, version string, typeList []*types.Type, baseP
types
:
typeList
,
types
:
typeList
,
imports
:
generator
.
NewImportTracker
(),
imports
:
generator
.
NewImportTracker
(),
})
})
expansionFileName
:=
"generated_expansion"
// To avoid overriding user's manual modification, only generate the expansion file if it doesn't exist.
if
_
,
err
:=
os
.
Stat
(
filepath
.
Join
(
srcTreePath
,
outputPackagePath
,
expansionFileName
+
".go"
));
os
.
IsNotExist
(
err
)
{
generators
=
append
(
generators
,
&
genExpansion
{
DefaultGen
:
generator
.
DefaultGen
{
OptionalName
:
expansionFileName
,
},
types
:
typeList
,
})
}
return
generators
return
generators
},
},
FilterFunc
:
func
(
c
*
generator
.
Context
,
t
*
types
.
Type
)
bool
{
FilterFunc
:
func
(
c
*
generator
.
Context
,
t
*
types
.
Type
)
bool
{
...
@@ -126,7 +139,7 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
...
@@ -126,7 +139,7 @@ func Packages(context *generator.Context, arguments *args.GeneratorArgs) generat
var
packageList
[]
generator
.
Package
var
packageList
[]
generator
.
Package
orderer
:=
namer
.
Orderer
{
namer
.
NewPrivateNamer
(
0
)}
orderer
:=
namer
.
Orderer
{
namer
.
NewPrivateNamer
(
0
)}
for
group
,
types
:=
range
groupToTypes
{
for
group
,
types
:=
range
groupToTypes
{
packageList
=
append
(
packageList
,
packageForGroup
(
group
,
"unversioned"
,
orderer
.
OrderTypes
(
types
),
arguments
.
OutputPackagePath
,
boilerplate
))
packageList
=
append
(
packageList
,
packageForGroup
(
group
,
"unversioned"
,
orderer
.
OrderTypes
(
types
),
arguments
.
OutputPackagePath
,
arguments
.
OutputBase
,
boilerplate
))
}
}
return
generator
.
Packages
(
packageList
)
return
generator
.
Packages
(
packageList
)
...
...
cmd/libs/go2idl/client-gen/generators/generator-for-expansion.go
0 → 100644
View file @
2e5da8b8
/*
Copyright 2016 The Kubernetes Authors All rights reserved.
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
generators
import
(
"io"
"k8s.io/kubernetes/cmd/libs/go2idl/generator"
"k8s.io/kubernetes/cmd/libs/go2idl/types"
)
// genExpansion produces a file for a group client, e.g. ExtensionsClient for the extension group.
type
genExpansion
struct
{
generator
.
DefaultGen
// types in a group
types
[]
*
types
.
Type
}
// We only want to call GenerateType() once per group.
func
(
g
*
genExpansion
)
Filter
(
c
*
generator
.
Context
,
t
*
types
.
Type
)
bool
{
return
t
==
g
.
types
[
0
]
}
func
(
g
*
genExpansion
)
GenerateType
(
c
*
generator
.
Context
,
t
*
types
.
Type
,
w
io
.
Writer
)
error
{
sw
:=
generator
.
NewSnippetWriter
(
w
,
c
,
"$"
,
"$"
)
for
_
,
t
:=
range
g
.
types
{
sw
.
Do
(
expansionInterfaceTemplate
,
t
)
}
return
sw
.
Error
()
}
var
expansionInterfaceTemplate
=
`
type $.|public$Expansion interface {}
`
cmd/libs/go2idl/client-gen/generators/generator-for-type.go
View file @
2e5da8b8
...
@@ -94,6 +94,7 @@ type $.type|public$Interface interface {
...
@@ -94,6 +94,7 @@ type $.type|public$Interface interface {
Get(name string) (*$.type|raw$, error)
Get(name string) (*$.type|raw$, error)
List(opts $.apiListOptions|raw$) (*$.type|raw$List, error)
List(opts $.apiListOptions|raw$) (*$.type|raw$List, error)
Watch(opts $.apiListOptions|raw$) ($.watchInterface|raw$, error)
Watch(opts $.apiListOptions|raw$) ($.watchInterface|raw$, error)
$.type|public$Expansion
}
}
`
`
...
...
cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/generated_expansion.go
0 → 100644
View file @
2e5da8b8
/*
Copyright 2016 The Kubernetes Authors All rights reserved.
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
unversioned
cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/testgroup_test.go
View file @
2e5da8b8
...
@@ -214,3 +214,10 @@ func TestListTestTypesLabels(t *testing.T) {
...
@@ -214,3 +214,10 @@ func TestListTestTypesLabels(t *testing.T) {
receivedTestTypeList
,
err
:=
c
.
TestTypes
(
ns
)
.
List
(
options
)
receivedTestTypeList
,
err
:=
c
.
TestTypes
(
ns
)
.
List
(
options
)
c
.
simpleClient
.
Validate
(
t
,
receivedTestTypeList
,
err
)
c
.
simpleClient
.
Validate
(
t
,
receivedTestTypeList
,
err
)
}
}
func
TestExpansionInterface
(
t
*
testing
.
T
)
{
c
:=
New
(
nil
)
if
e
,
a
:=
"hello!"
,
c
.
TestTypes
(
""
)
.
Hello
();
e
!=
a
{
t
.
Errorf
(
"expansion failed"
)
}
}
cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/testtype.go
View file @
2e5da8b8
...
@@ -36,6 +36,7 @@ type TestTypeInterface interface {
...
@@ -36,6 +36,7 @@ type TestTypeInterface interface {
Get
(
name
string
)
(
*
testgroup
.
TestType
,
error
)
Get
(
name
string
)
(
*
testgroup
.
TestType
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
testgroup
.
TestTypeList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
testgroup
.
TestTypeList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
TestTypeExpansion
}
}
// testTypes implements TestTypeInterface
// testTypes implements TestTypeInterface
...
...
cmd/libs/go2idl/client-gen/testoutput/testgroup/unversioned/testtype_expansion.go
0 → 100644
View file @
2e5da8b8
/*
Copyright 2016 The Kubernetes Authors All rights reserved.
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
unversioned
type
TestTypeExpansion
interface
{
Hello
()
string
}
func
(
c
*
testTypes
)
Hello
()
string
{
return
"hello!"
}
pkg/client/typed/generated/extensions/unversioned/daemonset.go
View file @
2e5da8b8
...
@@ -36,6 +36,7 @@ type DaemonSetInterface interface {
...
@@ -36,6 +36,7 @@ type DaemonSetInterface interface {
Get
(
name
string
)
(
*
extensions
.
DaemonSet
,
error
)
Get
(
name
string
)
(
*
extensions
.
DaemonSet
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
DaemonSetList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
DaemonSetList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
DaemonSetExpansion
}
}
// daemonSets implements DaemonSetInterface
// daemonSets implements DaemonSetInterface
...
...
pkg/client/typed/generated/extensions/unversioned/deployment.go
View file @
2e5da8b8
...
@@ -36,6 +36,7 @@ type DeploymentInterface interface {
...
@@ -36,6 +36,7 @@ type DeploymentInterface interface {
Get
(
name
string
)
(
*
extensions
.
Deployment
,
error
)
Get
(
name
string
)
(
*
extensions
.
Deployment
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
DeploymentList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
DeploymentList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
DeploymentExpansion
}
}
// deployments implements DeploymentInterface
// deployments implements DeploymentInterface
...
...
pkg/client/typed/generated/extensions/unversioned/generated_expansion.go
0 → 100644
View file @
2e5da8b8
/*
Copyright 2016 The Kubernetes Authors All rights reserved.
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
unversioned
type
DaemonSetExpansion
interface
{}
type
DeploymentExpansion
interface
{}
type
HorizontalPodAutoscalerExpansion
interface
{}
type
IngressExpansion
interface
{}
type
JobExpansion
interface
{}
type
ThirdPartyResourceExpansion
interface
{}
pkg/client/typed/generated/extensions/unversioned/horizontalpodautoscaler.go
View file @
2e5da8b8
...
@@ -36,6 +36,7 @@ type HorizontalPodAutoscalerInterface interface {
...
@@ -36,6 +36,7 @@ type HorizontalPodAutoscalerInterface interface {
Get
(
name
string
)
(
*
extensions
.
HorizontalPodAutoscaler
,
error
)
Get
(
name
string
)
(
*
extensions
.
HorizontalPodAutoscaler
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
HorizontalPodAutoscalerList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
HorizontalPodAutoscalerList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
HorizontalPodAutoscalerExpansion
}
}
// horizontalPodAutoscalers implements HorizontalPodAutoscalerInterface
// horizontalPodAutoscalers implements HorizontalPodAutoscalerInterface
...
...
pkg/client/typed/generated/extensions/unversioned/ingress.go
View file @
2e5da8b8
...
@@ -36,6 +36,7 @@ type IngressInterface interface {
...
@@ -36,6 +36,7 @@ type IngressInterface interface {
Get
(
name
string
)
(
*
extensions
.
Ingress
,
error
)
Get
(
name
string
)
(
*
extensions
.
Ingress
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
IngressList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
IngressList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
IngressExpansion
}
}
// ingresses implements IngressInterface
// ingresses implements IngressInterface
...
...
pkg/client/typed/generated/extensions/unversioned/job.go
View file @
2e5da8b8
...
@@ -36,6 +36,7 @@ type JobInterface interface {
...
@@ -36,6 +36,7 @@ type JobInterface interface {
Get
(
name
string
)
(
*
extensions
.
Job
,
error
)
Get
(
name
string
)
(
*
extensions
.
Job
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
JobList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
JobList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
JobExpansion
}
}
// jobs implements JobInterface
// jobs implements JobInterface
...
...
pkg/client/typed/generated/extensions/unversioned/thirdpartyresource.go
View file @
2e5da8b8
...
@@ -36,6 +36,7 @@ type ThirdPartyResourceInterface interface {
...
@@ -36,6 +36,7 @@ type ThirdPartyResourceInterface interface {
Get
(
name
string
)
(
*
extensions
.
ThirdPartyResource
,
error
)
Get
(
name
string
)
(
*
extensions
.
ThirdPartyResource
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
ThirdPartyResourceList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
extensions
.
ThirdPartyResourceList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
ThirdPartyResourceExpansion
}
}
// thirdPartyResources implements ThirdPartyResourceInterface
// thirdPartyResources implements ThirdPartyResourceInterface
...
...
pkg/client/typed/generated/legacy/unversioned/componentstatus.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type ComponentStatusInterface interface {
...
@@ -35,6 +35,7 @@ type ComponentStatusInterface interface {
Get
(
name
string
)
(
*
api
.
ComponentStatus
,
error
)
Get
(
name
string
)
(
*
api
.
ComponentStatus
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ComponentStatusList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ComponentStatusList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
ComponentStatusExpansion
}
}
// componentStatus implements ComponentStatusInterface
// componentStatus implements ComponentStatusInterface
...
...
pkg/client/typed/generated/legacy/unversioned/endpoints.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type EndpointsInterface interface {
...
@@ -35,6 +35,7 @@ type EndpointsInterface interface {
Get
(
name
string
)
(
*
api
.
Endpoints
,
error
)
Get
(
name
string
)
(
*
api
.
Endpoints
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
EndpointsList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
EndpointsList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
EndpointsExpansion
}
}
// endpoints implements EndpointsInterface
// endpoints implements EndpointsInterface
...
...
pkg/client/typed/generated/legacy/unversioned/event.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type EventInterface interface {
...
@@ -35,6 +35,7 @@ type EventInterface interface {
Get
(
name
string
)
(
*
api
.
Event
,
error
)
Get
(
name
string
)
(
*
api
.
Event
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
EventList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
EventList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
EventExpansion
}
}
// events implements EventInterface
// events implements EventInterface
...
...
pkg/client/typed/generated/legacy/unversioned/generated_expansion.go
0 → 100644
View file @
2e5da8b8
/*
Copyright 2016 The Kubernetes Authors All rights reserved.
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
unversioned
type
ComponentStatusExpansion
interface
{}
type
EndpointsExpansion
interface
{}
type
EventExpansion
interface
{}
type
LimitRangeExpansion
interface
{}
type
NamespaceExpansion
interface
{}
type
NodeExpansion
interface
{}
type
PersistentVolumeExpansion
interface
{}
type
PersistentVolumeClaimExpansion
interface
{}
type
PodExpansion
interface
{}
type
PodTemplateExpansion
interface
{}
type
ReplicationControllerExpansion
interface
{}
type
ResourceQuotaExpansion
interface
{}
type
SecretExpansion
interface
{}
type
ServiceExpansion
interface
{}
type
ServiceAccountExpansion
interface
{}
pkg/client/typed/generated/legacy/unversioned/limitrange.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type LimitRangeInterface interface {
...
@@ -35,6 +35,7 @@ type LimitRangeInterface interface {
Get
(
name
string
)
(
*
api
.
LimitRange
,
error
)
Get
(
name
string
)
(
*
api
.
LimitRange
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
LimitRangeList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
LimitRangeList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
LimitRangeExpansion
}
}
// limitRanges implements LimitRangeInterface
// limitRanges implements LimitRangeInterface
...
...
pkg/client/typed/generated/legacy/unversioned/namespace.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type NamespaceInterface interface {
...
@@ -35,6 +35,7 @@ type NamespaceInterface interface {
Get
(
name
string
)
(
*
api
.
Namespace
,
error
)
Get
(
name
string
)
(
*
api
.
Namespace
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
NamespaceList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
NamespaceList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
NamespaceExpansion
}
}
// namespaces implements NamespaceInterface
// namespaces implements NamespaceInterface
...
...
pkg/client/typed/generated/legacy/unversioned/node.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type NodeInterface interface {
...
@@ -35,6 +35,7 @@ type NodeInterface interface {
Get
(
name
string
)
(
*
api
.
Node
,
error
)
Get
(
name
string
)
(
*
api
.
Node
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
NodeList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
NodeList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
NodeExpansion
}
}
// nodes implements NodeInterface
// nodes implements NodeInterface
...
...
pkg/client/typed/generated/legacy/unversioned/persistentvolume.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type PersistentVolumeInterface interface {
...
@@ -35,6 +35,7 @@ type PersistentVolumeInterface interface {
Get
(
name
string
)
(
*
api
.
PersistentVolume
,
error
)
Get
(
name
string
)
(
*
api
.
PersistentVolume
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PersistentVolumeList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PersistentVolumeList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
PersistentVolumeExpansion
}
}
// persistentVolumes implements PersistentVolumeInterface
// persistentVolumes implements PersistentVolumeInterface
...
...
pkg/client/typed/generated/legacy/unversioned/persistentvolumeclaim.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type PersistentVolumeClaimInterface interface {
...
@@ -35,6 +35,7 @@ type PersistentVolumeClaimInterface interface {
Get
(
name
string
)
(
*
api
.
PersistentVolumeClaim
,
error
)
Get
(
name
string
)
(
*
api
.
PersistentVolumeClaim
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PersistentVolumeClaimList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PersistentVolumeClaimList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
PersistentVolumeClaimExpansion
}
}
// persistentVolumeClaims implements PersistentVolumeClaimInterface
// persistentVolumeClaims implements PersistentVolumeClaimInterface
...
...
pkg/client/typed/generated/legacy/unversioned/pod.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type PodInterface interface {
...
@@ -35,6 +35,7 @@ type PodInterface interface {
Get
(
name
string
)
(
*
api
.
Pod
,
error
)
Get
(
name
string
)
(
*
api
.
Pod
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PodList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PodList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
PodExpansion
}
}
// pods implements PodInterface
// pods implements PodInterface
...
...
pkg/client/typed/generated/legacy/unversioned/podtemplate.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type PodTemplateInterface interface {
...
@@ -35,6 +35,7 @@ type PodTemplateInterface interface {
Get
(
name
string
)
(
*
api
.
PodTemplate
,
error
)
Get
(
name
string
)
(
*
api
.
PodTemplate
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PodTemplateList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
PodTemplateList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
PodTemplateExpansion
}
}
// podTemplates implements PodTemplateInterface
// podTemplates implements PodTemplateInterface
...
...
pkg/client/typed/generated/legacy/unversioned/replicationcontroller.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type ReplicationControllerInterface interface {
...
@@ -35,6 +35,7 @@ type ReplicationControllerInterface interface {
Get
(
name
string
)
(
*
api
.
ReplicationController
,
error
)
Get
(
name
string
)
(
*
api
.
ReplicationController
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ReplicationControllerList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ReplicationControllerList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
ReplicationControllerExpansion
}
}
// replicationControllers implements ReplicationControllerInterface
// replicationControllers implements ReplicationControllerInterface
...
...
pkg/client/typed/generated/legacy/unversioned/resourcequota.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type ResourceQuotaInterface interface {
...
@@ -35,6 +35,7 @@ type ResourceQuotaInterface interface {
Get
(
name
string
)
(
*
api
.
ResourceQuota
,
error
)
Get
(
name
string
)
(
*
api
.
ResourceQuota
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ResourceQuotaList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ResourceQuotaList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
ResourceQuotaExpansion
}
}
// resourceQuotas implements ResourceQuotaInterface
// resourceQuotas implements ResourceQuotaInterface
...
...
pkg/client/typed/generated/legacy/unversioned/secret.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type SecretInterface interface {
...
@@ -35,6 +35,7 @@ type SecretInterface interface {
Get
(
name
string
)
(
*
api
.
Secret
,
error
)
Get
(
name
string
)
(
*
api
.
Secret
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
SecretList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
SecretList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
SecretExpansion
}
}
// secrets implements SecretInterface
// secrets implements SecretInterface
...
...
pkg/client/typed/generated/legacy/unversioned/service.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type ServiceInterface interface {
...
@@ -35,6 +35,7 @@ type ServiceInterface interface {
Get
(
name
string
)
(
*
api
.
Service
,
error
)
Get
(
name
string
)
(
*
api
.
Service
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ServiceList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ServiceList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
ServiceExpansion
}
}
// services implements ServiceInterface
// services implements ServiceInterface
...
...
pkg/client/typed/generated/legacy/unversioned/serviceaccount.go
View file @
2e5da8b8
...
@@ -35,6 +35,7 @@ type ServiceAccountInterface interface {
...
@@ -35,6 +35,7 @@ type ServiceAccountInterface interface {
Get
(
name
string
)
(
*
api
.
ServiceAccount
,
error
)
Get
(
name
string
)
(
*
api
.
ServiceAccount
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ServiceAccountList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
api
.
ServiceAccountList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
ServiceAccountExpansion
}
}
// serviceAccounts implements ServiceAccountInterface
// serviceAccounts implements ServiceAccountInterface
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment