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
97c8f1d4
Commit
97c8f1d4
authored
Nov 25, 2015
by
Wojciech Tyczynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove api.ListOptions
parent
fc694ea7
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
23 deletions
+3
-23
conversion.go
pkg/api/conversion.go
+3
-3
register.go
pkg/api/register.go
+0
-1
types.generated.go
pkg/api/types.generated.go
+0
-0
types.go
pkg/api/types.go
+0
-19
No files found.
pkg/api/conversion.go
View file @
97c8f1d4
...
@@ -31,9 +31,9 @@ var Codec = runtime.CodecFor(Scheme, "")
...
@@ -31,9 +31,9 @@ var Codec = runtime.CodecFor(Scheme, "")
func
init
()
{
func
init
()
{
Scheme
.
AddDefaultingFuncs
(
Scheme
.
AddDefaultingFuncs
(
func
(
obj
*
ListOptions
)
{
func
(
obj
*
unversioned
.
ListOptions
)
{
obj
.
LabelSelector
=
labels
.
Everything
()
obj
.
LabelSelector
=
unversioned
.
LabelSelector
{
labels
.
Everything
()}
obj
.
FieldSelector
=
fields
.
Everything
()
obj
.
FieldSelector
=
unversioned
.
FieldSelector
{
fields
.
Everything
()}
},
},
// TODO: see about moving this into v1/defaults.go
// TODO: see about moving this into v1/defaults.go
func
(
obj
*
PodExecOptions
)
{
func
(
obj
*
PodExecOptions
)
{
...
...
pkg/api/register.go
View file @
97c8f1d4
...
@@ -113,7 +113,6 @@ func (*PersistentVolumeList) IsAnAPIObject() {}
...
@@ -113,7 +113,6 @@ func (*PersistentVolumeList) IsAnAPIObject() {}
func
(
*
PersistentVolumeClaim
)
IsAnAPIObject
()
{}
func
(
*
PersistentVolumeClaim
)
IsAnAPIObject
()
{}
func
(
*
PersistentVolumeClaimList
)
IsAnAPIObject
()
{}
func
(
*
PersistentVolumeClaimList
)
IsAnAPIObject
()
{}
func
(
*
DeleteOptions
)
IsAnAPIObject
()
{}
func
(
*
DeleteOptions
)
IsAnAPIObject
()
{}
func
(
*
ListOptions
)
IsAnAPIObject
()
{}
func
(
*
PodAttachOptions
)
IsAnAPIObject
()
{}
func
(
*
PodAttachOptions
)
IsAnAPIObject
()
{}
func
(
*
PodLogOptions
)
IsAnAPIObject
()
{}
func
(
*
PodLogOptions
)
IsAnAPIObject
()
{}
func
(
*
PodExecOptions
)
IsAnAPIObject
()
{}
func
(
*
PodExecOptions
)
IsAnAPIObject
()
{}
...
...
pkg/api/types.generated.go
View file @
97c8f1d4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pkg/api/types.go
View file @
97c8f1d4
...
@@ -19,8 +19,6 @@ package api
...
@@ -19,8 +19,6 @@ package api
import
(
import
(
"k8s.io/kubernetes/pkg/api/resource"
"k8s.io/kubernetes/pkg/api/resource"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
"k8s.io/kubernetes/pkg/runtime"
"k8s.io/kubernetes/pkg/runtime"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/types"
"k8s.io/kubernetes/pkg/util/intstr"
"k8s.io/kubernetes/pkg/util/intstr"
...
@@ -1642,23 +1640,6 @@ type DeleteOptions struct {
...
@@ -1642,23 +1640,6 @@ type DeleteOptions struct {
GracePeriodSeconds
*
int64
`json:"gracePeriodSeconds"`
GracePeriodSeconds
*
int64
`json:"gracePeriodSeconds"`
}
}
// ListOptions is the query options to a standard REST list call, and has future support for
// watch calls.
type
ListOptions
struct
{
unversioned
.
TypeMeta
`json:",inline"`
// A selector based on labels
LabelSelector
labels
.
Selector
// A selector based on fields
FieldSelector
fields
.
Selector
// If true, watch for changes to this list
Watch
bool
// The resource version to watch (no effect on list yet)
ResourceVersion
string
// Timeout for the list/watch call.
TimeoutSeconds
*
int64
}
// PodLogOptions is the query options for a Pod's logs REST call
// PodLogOptions is the query options for a Pod's logs REST call
type
PodLogOptions
struct
{
type
PodLogOptions
struct
{
unversioned
.
TypeMeta
unversioned
.
TypeMeta
...
...
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