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
b8be5e13
Commit
b8be5e13
authored
Jan 11, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generate client for scale, which has only the expansion interface
parent
00b18446
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
0 deletions
+51
-0
types.go
pkg/apis/extensions/types.go
+2
-0
extensions_client.go
...ped/generated/extensions/unversioned/extensions_client.go
+5
-0
generated_expansion.go
...d/generated/extensions/unversioned/generated_expansion.go
+2
-0
scale.go
pkg/client/typed/generated/extensions/unversioned/scale.go
+42
-0
No files found.
pkg/apis/extensions/types.go
View file @
b8be5e13
...
...
@@ -49,6 +49,8 @@ type ScaleStatus struct {
Selector
map
[
string
]
string
`json:"selector,omitempty"`
}
// +genclient=true,noMethods=true
// represents a scaling request for a resource.
type
Scale
struct
{
unversioned
.
TypeMeta
`json:",inline"`
...
...
pkg/client/typed/generated/extensions/unversioned/extensions_client.go
View file @
b8be5e13
...
...
@@ -28,6 +28,7 @@ type ExtensionsInterface interface {
HorizontalPodAutoscalersGetter
IngressesGetter
JobsGetter
ScalesGetter
ThirdPartyResourcesGetter
}
...
...
@@ -56,6 +57,10 @@ func (c *ExtensionsClient) Jobs(namespace string) JobInterface {
return
newJobs
(
c
,
namespace
)
}
func
(
c
*
ExtensionsClient
)
Scales
(
namespace
string
)
ScaleInterface
{
return
newScales
(
c
,
namespace
)
}
func
(
c
*
ExtensionsClient
)
ThirdPartyResources
(
namespace
string
)
ThirdPartyResourceInterface
{
return
newThirdPartyResources
(
c
,
namespace
)
}
...
...
pkg/client/typed/generated/extensions/unversioned/generated_expansion.go
View file @
b8be5e13
...
...
@@ -26,4 +26,6 @@ type IngressExpansion interface{}
type
JobExpansion
interface
{}
type
ScaleExpansion
interface
{}
type
ThirdPartyResourceExpansion
interface
{}
pkg/client/typed/generated/extensions/unversioned/scale.go
0 → 100644
View file @
b8be5e13
/*
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
// ScalesGetter has a method to return a ScaleInterface.
// A group's client should implement this interface.
type
ScalesGetter
interface
{
Scales
(
namespace
string
)
ScaleInterface
}
// ScaleInterface has methods to work with Scale resources.
type
ScaleInterface
interface
{
ScaleExpansion
}
// scales implements ScaleInterface
type
scales
struct
{
client
*
ExtensionsClient
ns
string
}
// newScales returns a Scales
func
newScales
(
c
*
ExtensionsClient
,
namespace
string
)
*
scales
{
return
&
scales
{
client
:
c
,
ns
:
namespace
,
}
}
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