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
bc0662b3
Commit
bc0662b3
authored
Apr 08, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generated changes
parent
08fc3501
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
18 deletions
+18
-18
clientset.go
...t/clientset_generated/test_internalclientset/clientset.go
+1
-1
doc.go
...ternalclientset/typed/testgroup.k8s.io/unversioned/doc.go
+0
-0
generated_expansion.go
...typed/testgroup.k8s.io/unversioned/generated_expansion.go
+0
-0
testgroup_client.go
...et/typed/testgroup.k8s.io/unversioned/testgroup_client.go
+1
-1
testtype.go
...lclientset/typed/testgroup.k8s.io/unversioned/testtype.go
+16
-16
testtype_expansion.go
.../typed/testgroup.k8s.io/unversioned/testtype_expansion.go
+0
-0
No files found.
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/clientset.go
View file @
bc0662b3
...
@@ -18,7 +18,7 @@ package test_internalclientset
...
@@ -18,7 +18,7 @@ package test_internalclientset
import
(
import
(
"github.com/golang/glog"
"github.com/golang/glog"
unversionedtestgroup
"k8s.io/kubernetes/cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup/unversioned"
unversionedtestgroup
"k8s.io/kubernetes/cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup
.k8s.io
/unversioned"
restclient
"k8s.io/kubernetes/pkg/client/restclient"
restclient
"k8s.io/kubernetes/pkg/client/restclient"
discovery
"k8s.io/kubernetes/pkg/client/typed/discovery"
discovery
"k8s.io/kubernetes/pkg/client/typed/discovery"
)
)
...
...
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup/unversioned/doc.go
→
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup
.k8s.io
/unversioned/doc.go
View file @
bc0662b3
File moved
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup/unversioned/generated_expansion.go
→
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup
.k8s.io
/unversioned/generated_expansion.go
View file @
bc0662b3
File moved
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup/unversioned/testgroup_client.go
→
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup
.k8s.io
/unversioned/testgroup_client.go
View file @
bc0662b3
...
@@ -65,7 +65,7 @@ func New(c *restclient.RESTClient) *TestgroupClient {
...
@@ -65,7 +65,7 @@ func New(c *restclient.RESTClient) *TestgroupClient {
func
setConfigDefaults
(
config
*
restclient
.
Config
)
error
{
func
setConfigDefaults
(
config
*
restclient
.
Config
)
error
{
// if testgroup group is not registered, return an error
// if testgroup group is not registered, return an error
g
,
err
:=
registered
.
Group
(
"testgroup"
)
g
,
err
:=
registered
.
Group
(
"testgroup
.k8s.io
"
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
...
...
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup/unversioned/testtype.go
→
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup
.k8s.io
/unversioned/testtype.go
View file @
bc0662b3
...
@@ -17,7 +17,7 @@ limitations under the License.
...
@@ -17,7 +17,7 @@ limitations under the License.
package
unversioned
package
unversioned
import
(
import
(
testgroup
"k8s.io/kubernetes/cmd/libs/go2idl/client-gen/testdata/apis/testgroup
"
testgroup
_k8s_io
"k8s.io/kubernetes/cmd/libs/go2idl/client-gen/testdata/apis/testgroup.k8s.io
"
api
"k8s.io/kubernetes/pkg/api"
api
"k8s.io/kubernetes/pkg/api"
watch
"k8s.io/kubernetes/pkg/watch"
watch
"k8s.io/kubernetes/pkg/watch"
)
)
...
@@ -30,13 +30,13 @@ type TestTypesGetter interface {
...
@@ -30,13 +30,13 @@ type TestTypesGetter interface {
// TestTypeInterface has methods to work with TestType resources.
// TestTypeInterface has methods to work with TestType resources.
type
TestTypeInterface
interface
{
type
TestTypeInterface
interface
{
Create
(
*
testgroup
.
TestType
)
(
*
testgroup
.
TestType
,
error
)
Create
(
*
testgroup
_k8s_io
.
TestType
)
(
*
testgroup_k8s_io
.
TestType
,
error
)
Update
(
*
testgroup
.
TestType
)
(
*
testgroup
.
TestType
,
error
)
Update
(
*
testgroup
_k8s_io
.
TestType
)
(
*
testgroup_k8s_io
.
TestType
,
error
)
UpdateStatus
(
*
testgroup
.
TestType
)
(
*
testgroup
.
TestType
,
error
)
UpdateStatus
(
*
testgroup
_k8s_io
.
TestType
)
(
*
testgroup_k8s_io
.
TestType
,
error
)
Delete
(
name
string
,
options
*
api
.
DeleteOptions
)
error
Delete
(
name
string
,
options
*
api
.
DeleteOptions
)
error
DeleteCollection
(
options
*
api
.
DeleteOptions
,
listOptions
api
.
ListOptions
)
error
DeleteCollection
(
options
*
api
.
DeleteOptions
,
listOptions
api
.
ListOptions
)
error
Get
(
name
string
)
(
*
testgroup
.
TestType
,
error
)
Get
(
name
string
)
(
*
testgroup
_k8s_io
.
TestType
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
testgroup
.
TestTypeList
,
error
)
List
(
opts
api
.
ListOptions
)
(
*
testgroup
_k8s_io
.
TestTypeList
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
Watch
(
opts
api
.
ListOptions
)
(
watch
.
Interface
,
error
)
TestTypeExpansion
TestTypeExpansion
}
}
...
@@ -56,8 +56,8 @@ func newTestTypes(c *TestgroupClient, namespace string) *testTypes {
...
@@ -56,8 +56,8 @@ func newTestTypes(c *TestgroupClient, namespace string) *testTypes {
}
}
// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any.
// Create takes the representation of a testType and creates it. Returns the server's representation of the testType, and an error, if there is any.
func
(
c
*
testTypes
)
Create
(
testType
*
testgroup
.
TestType
)
(
result
*
testgroup
.
TestType
,
err
error
)
{
func
(
c
*
testTypes
)
Create
(
testType
*
testgroup
_k8s_io
.
TestType
)
(
result
*
testgroup_k8s_io
.
TestType
,
err
error
)
{
result
=
&
testgroup
.
TestType
{}
result
=
&
testgroup
_k8s_io
.
TestType
{}
err
=
c
.
client
.
Post
()
.
err
=
c
.
client
.
Post
()
.
Namespace
(
c
.
ns
)
.
Namespace
(
c
.
ns
)
.
Resource
(
"testtypes"
)
.
Resource
(
"testtypes"
)
.
...
@@ -68,8 +68,8 @@ func (c *testTypes) Create(testType *testgroup.TestType) (result *testgroup.Test
...
@@ -68,8 +68,8 @@ func (c *testTypes) Create(testType *testgroup.TestType) (result *testgroup.Test
}
}
// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any.
// Update takes the representation of a testType and updates it. Returns the server's representation of the testType, and an error, if there is any.
func
(
c
*
testTypes
)
Update
(
testType
*
testgroup
.
TestType
)
(
result
*
testgroup
.
TestType
,
err
error
)
{
func
(
c
*
testTypes
)
Update
(
testType
*
testgroup
_k8s_io
.
TestType
)
(
result
*
testgroup_k8s_io
.
TestType
,
err
error
)
{
result
=
&
testgroup
.
TestType
{}
result
=
&
testgroup
_k8s_io
.
TestType
{}
err
=
c
.
client
.
Put
()
.
err
=
c
.
client
.
Put
()
.
Namespace
(
c
.
ns
)
.
Namespace
(
c
.
ns
)
.
Resource
(
"testtypes"
)
.
Resource
(
"testtypes"
)
.
...
@@ -80,8 +80,8 @@ func (c *testTypes) Update(testType *testgroup.TestType) (result *testgroup.Test
...
@@ -80,8 +80,8 @@ func (c *testTypes) Update(testType *testgroup.TestType) (result *testgroup.Test
return
return
}
}
func
(
c
*
testTypes
)
UpdateStatus
(
testType
*
testgroup
.
TestType
)
(
result
*
testgroup
.
TestType
,
err
error
)
{
func
(
c
*
testTypes
)
UpdateStatus
(
testType
*
testgroup
_k8s_io
.
TestType
)
(
result
*
testgroup_k8s_io
.
TestType
,
err
error
)
{
result
=
&
testgroup
.
TestType
{}
result
=
&
testgroup
_k8s_io
.
TestType
{}
err
=
c
.
client
.
Put
()
.
err
=
c
.
client
.
Put
()
.
Namespace
(
c
.
ns
)
.
Namespace
(
c
.
ns
)
.
Resource
(
"testtypes"
)
.
Resource
(
"testtypes"
)
.
...
@@ -116,8 +116,8 @@ func (c *testTypes) DeleteCollection(options *api.DeleteOptions, listOptions api
...
@@ -116,8 +116,8 @@ func (c *testTypes) DeleteCollection(options *api.DeleteOptions, listOptions api
}
}
// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any.
// Get takes name of the testType, and returns the corresponding testType object, and an error if there is any.
func
(
c
*
testTypes
)
Get
(
name
string
)
(
result
*
testgroup
.
TestType
,
err
error
)
{
func
(
c
*
testTypes
)
Get
(
name
string
)
(
result
*
testgroup
_k8s_io
.
TestType
,
err
error
)
{
result
=
&
testgroup
.
TestType
{}
result
=
&
testgroup
_k8s_io
.
TestType
{}
err
=
c
.
client
.
Get
()
.
err
=
c
.
client
.
Get
()
.
Namespace
(
c
.
ns
)
.
Namespace
(
c
.
ns
)
.
Resource
(
"testtypes"
)
.
Resource
(
"testtypes"
)
.
...
@@ -128,8 +128,8 @@ func (c *testTypes) Get(name string) (result *testgroup.TestType, err error) {
...
@@ -128,8 +128,8 @@ func (c *testTypes) Get(name string) (result *testgroup.TestType, err error) {
}
}
// List takes label and field selectors, and returns the list of TestTypes that match those selectors.
// List takes label and field selectors, and returns the list of TestTypes that match those selectors.
func
(
c
*
testTypes
)
List
(
opts
api
.
ListOptions
)
(
result
*
testgroup
.
TestTypeList
,
err
error
)
{
func
(
c
*
testTypes
)
List
(
opts
api
.
ListOptions
)
(
result
*
testgroup
_k8s_io
.
TestTypeList
,
err
error
)
{
result
=
&
testgroup
.
TestTypeList
{}
result
=
&
testgroup
_k8s_io
.
TestTypeList
{}
err
=
c
.
client
.
Get
()
.
err
=
c
.
client
.
Get
()
.
Namespace
(
c
.
ns
)
.
Namespace
(
c
.
ns
)
.
Resource
(
"testtypes"
)
.
Resource
(
"testtypes"
)
.
...
...
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup/unversioned/testtype_expansion.go
→
cmd/libs/go2idl/client-gen/testoutput/clientset_generated/test_internalclientset/typed/testgroup
.k8s.io
/unversioned/testtype_expansion.go
View file @
bc0662b3
File moved
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