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
19f7ecf3
Commit
19f7ecf3
authored
Feb 04, 2015
by
nikhiljindal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleting the API objects related to /operations
parent
5fb9009f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
0 additions
and
94 deletions
+0
-94
register.go
pkg/api/register.go
+0
-6
types.go
pkg/api/types.go
+0
-14
register.go
pkg/api/v1beta1/register.go
+0
-6
types.go
pkg/api/v1beta1/types.go
+0
-11
register.go
pkg/api/v1beta2/register.go
+0
-6
types.go
pkg/api/v1beta2/types.go
+0
-11
register.go
pkg/api/v1beta3/register.go
+0
-6
types.go
pkg/api/v1beta3/types.go
+0
-16
operation.go
pkg/apiserver/operation.go
+0
-18
No files found.
pkg/api/register.go
View file @
19f7ecf3
...
...
@@ -35,8 +35,6 @@ func init() {
&
NodeList
{},
&
Node
{},
&
Status
{},
&
OperationList
{},
&
Operation
{},
&
Endpoints
{},
&
EndpointsList
{},
&
Binding
{},
...
...
@@ -56,8 +54,6 @@ func init() {
// Legacy names are supported
Scheme
.
AddKnownTypeWithName
(
""
,
"Minion"
,
&
Node
{})
Scheme
.
AddKnownTypeWithName
(
""
,
"MinionList"
,
&
NodeList
{})
Scheme
.
AddKnownTypeWithName
(
""
,
"ServerOp"
,
&
Operation
{})
Scheme
.
AddKnownTypeWithName
(
""
,
"ServerOpList"
,
&
OperationList
{})
}
func
(
*
Pod
)
IsAnAPIObject
()
{}
...
...
@@ -73,8 +69,6 @@ func (*Node) IsAnAPIObject() {}
func
(
*
NodeList
)
IsAnAPIObject
()
{}
func
(
*
Binding
)
IsAnAPIObject
()
{}
func
(
*
Status
)
IsAnAPIObject
()
{}
func
(
*
Operation
)
IsAnAPIObject
()
{}
func
(
*
OperationList
)
IsAnAPIObject
()
{}
func
(
*
Event
)
IsAnAPIObject
()
{}
func
(
*
EventList
)
IsAnAPIObject
()
{}
func
(
*
ContainerManifest
)
IsAnAPIObject
()
{}
...
...
pkg/api/types.go
View file @
19f7ecf3
...
...
@@ -1028,20 +1028,6 @@ const (
CauseTypeFieldValueNotSupported
CauseType
=
"FieldValueNotSupported"
)
// Operation is an operation delivered to API clients.
type
Operation
struct
{
TypeMeta
`json:",inline"`
ObjectMeta
`json:"metadata,omitempty"`
}
// OperationList is a list of operations, as delivered to API clients.
type
OperationList
struct
{
TypeMeta
`json:",inline"`
ListMeta
`json:"metadata,omitempty"`
Items
[]
Operation
`json:"items"`
}
// ObjectReference contains enough information to let you inspect or modify the referred object.
type
ObjectReference
struct
{
Kind
string
`json:"kind,omitempty"`
...
...
pkg/api/v1beta1/register.go
View file @
19f7ecf3
...
...
@@ -39,8 +39,6 @@ func init() {
&
MinionList
{},
&
Binding
{},
&
Status
{},
&
ServerOp
{},
&
ServerOpList
{},
&
Event
{},
&
EventList
{},
&
ContainerManifest
{},
...
...
@@ -57,8 +55,6 @@ func init() {
// Future names are supported
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta1"
,
"Node"
,
&
Minion
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta1"
,
"NodeList"
,
&
MinionList
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta1"
,
"Operation"
,
&
ServerOp
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta1"
,
"OperationList"
,
&
ServerOpList
{})
}
func
(
*
Pod
)
IsAnAPIObject
()
{}
...
...
@@ -74,8 +70,6 @@ func (*Minion) IsAnAPIObject() {}
func
(
*
MinionList
)
IsAnAPIObject
()
{}
func
(
*
Binding
)
IsAnAPIObject
()
{}
func
(
*
Status
)
IsAnAPIObject
()
{}
func
(
*
ServerOp
)
IsAnAPIObject
()
{}
func
(
*
ServerOpList
)
IsAnAPIObject
()
{}
func
(
*
Event
)
IsAnAPIObject
()
{}
func
(
*
EventList
)
IsAnAPIObject
()
{}
func
(
*
ContainerManifest
)
IsAnAPIObject
()
{}
...
...
pkg/api/v1beta1/types.go
View file @
19f7ecf3
...
...
@@ -808,17 +808,6 @@ const (
CauseTypeFieldValueNotSupported
CauseType
=
"FieldValueNotSupported"
)
// ServerOp is an operation delivered to API clients.
type
ServerOp
struct
{
TypeMeta
`json:",inline"`
}
// ServerOpList is a list of operations, as delivered to API clients.
type
ServerOpList
struct
{
TypeMeta
`json:",inline"`
Items
[]
ServerOp
`json:"items" description:"list of operations"`
}
// ObjectReference contains enough information to let you inspect or modify the referred object.
type
ObjectReference
struct
{
Kind
string
`json:"kind,omitempty" description:"kind of the referent"`
...
...
pkg/api/v1beta2/register.go
View file @
19f7ecf3
...
...
@@ -39,8 +39,6 @@ func init() {
&
MinionList
{},
&
Binding
{},
&
Status
{},
&
ServerOp
{},
&
ServerOpList
{},
&
Event
{},
&
EventList
{},
&
ContainerManifest
{},
...
...
@@ -57,8 +55,6 @@ func init() {
// Future names are supported
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta2"
,
"Node"
,
&
Minion
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta2"
,
"NodeList"
,
&
MinionList
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta2"
,
"Operation"
,
&
ServerOp
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta2"
,
"OperationList"
,
&
ServerOpList
{})
}
func
(
*
Pod
)
IsAnAPIObject
()
{}
...
...
@@ -74,8 +70,6 @@ func (*Minion) IsAnAPIObject() {}
func
(
*
MinionList
)
IsAnAPIObject
()
{}
func
(
*
Binding
)
IsAnAPIObject
()
{}
func
(
*
Status
)
IsAnAPIObject
()
{}
func
(
*
ServerOp
)
IsAnAPIObject
()
{}
func
(
*
ServerOpList
)
IsAnAPIObject
()
{}
func
(
*
Event
)
IsAnAPIObject
()
{}
func
(
*
EventList
)
IsAnAPIObject
()
{}
func
(
*
ContainerManifest
)
IsAnAPIObject
()
{}
...
...
pkg/api/v1beta2/types.go
View file @
19f7ecf3
...
...
@@ -782,17 +782,6 @@ const (
CauseTypeFieldValueNotSupported
CauseType
=
"FieldValueNotSupported"
)
// ServerOp is an operation delivered to API clients.
type
ServerOp
struct
{
TypeMeta
`json:",inline"`
}
// ServerOpList is a list of operations, as delivered to API clients.
type
ServerOpList
struct
{
TypeMeta
`json:",inline"`
Items
[]
ServerOp
`json:"items" description:"list of operations"`
}
// ObjectReference contains enough information to let you inspect or modify the referred object.
type
ObjectReference
struct
{
Kind
string
`json:"kind,omitempty" description:"kind of the referent"`
...
...
pkg/api/v1beta3/register.go
View file @
19f7ecf3
...
...
@@ -43,8 +43,6 @@ func init() {
&
NodeList
{},
&
Binding
{},
&
Status
{},
&
Operation
{},
&
OperationList
{},
&
Event
{},
&
EventList
{},
&
List
{},
...
...
@@ -57,8 +55,6 @@ func init() {
// Legacy names are supported
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta3"
,
"Minion"
,
&
Node
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta3"
,
"MinionList"
,
&
NodeList
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta3"
,
"ServerOp"
,
&
Operation
{})
api
.
Scheme
.
AddKnownTypeWithName
(
"v1beta3"
,
"ServerOpList"
,
&
OperationList
{})
}
func
(
*
Pod
)
IsAnAPIObject
()
{}
...
...
@@ -78,8 +74,6 @@ func (*Node) IsAnAPIObject() {}
func
(
*
NodeList
)
IsAnAPIObject
()
{}
func
(
*
Binding
)
IsAnAPIObject
()
{}
func
(
*
Status
)
IsAnAPIObject
()
{}
func
(
*
Operation
)
IsAnAPIObject
()
{}
func
(
*
OperationList
)
IsAnAPIObject
()
{}
func
(
*
Event
)
IsAnAPIObject
()
{}
func
(
*
EventList
)
IsAnAPIObject
()
{}
func
(
*
List
)
IsAnAPIObject
()
{}
...
...
pkg/api/v1beta3/types.go
View file @
19f7ecf3
...
...
@@ -1008,22 +1008,6 @@ const (
CauseTypeFieldValueNotSupported
CauseType
=
"FieldValueNotSupported"
)
// Operation is a request from a client that has not yet been satisfied. The name of an
// Operation is assigned by the server when an operation is started, and can be used by
// clients to retrieve the final result of the operation at a later time.
type
Operation
struct
{
TypeMeta
`json:",inline"`
ObjectMeta
`json:"metadata"`
}
// OperationList is a list of operations, as delivered to API clients.
type
OperationList
struct
{
TypeMeta
`json:",inline"`
ListMeta
`json:"metadata,omitempty"`
Items
[]
Operation
`json:"items"`
}
// ObjectReference contains enough information to let you inspect or modify the referred object.
type
ObjectReference
struct
{
Kind
string
`json:"kind,omitempty"`
...
...
pkg/apiserver/operation.go
View file @
19f7ecf3
...
...
@@ -17,7 +17,6 @@ limitations under the License.
package
apiserver
import
(
"sort"
"strconv"
"sync"
"sync/atomic"
...
...
@@ -79,23 +78,6 @@ func (ops *Operations) insert(op *Operation) {
ops
.
ops
[
op
.
ID
]
=
op
}
// List lists operations for an API client.
func
(
ops
*
Operations
)
List
()
*
api
.
OperationList
{
ops
.
lock
.
Lock
()
defer
ops
.
lock
.
Unlock
()
ids
:=
[]
string
{}
for
id
:=
range
ops
.
ops
{
ids
=
append
(
ids
,
id
)
}
sort
.
StringSlice
(
ids
)
.
Sort
()
ol
:=
&
api
.
OperationList
{}
for
_
,
id
:=
range
ids
{
ol
.
Items
=
append
(
ol
.
Items
,
api
.
Operation
{
ObjectMeta
:
api
.
ObjectMeta
{
Name
:
id
}})
}
return
ol
}
// Get returns the operation with the given ID, or nil.
func
(
ops
*
Operations
)
Get
(
id
string
)
*
Operation
{
ops
.
lock
.
Lock
()
...
...
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