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
55f039fd
Commit
55f039fd
authored
Jan 29, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add an adapter for EventSink
parent
e2d02abb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
event_expansion.go
...ent/typed/generated/legacy/unversioned/event_expansion.go
+17
-0
No files found.
pkg/client/typed/generated/legacy/unversioned/event_expansion.go
View file @
55f039fd
...
...
@@ -137,3 +137,20 @@ func (e *events) GetFieldSelector(involvedObjectName, involvedObjectNamespace, i
func
GetInvolvedObjectNameFieldLabel
(
version
string
)
string
{
return
"involvedObject.name"
}
// TODO: This is a temporary arrangement and will be removed once all clients are moved to use the clientset.
type
EventSinkImpl
struct
{
Interface
EventInterface
}
func
(
e
*
EventSinkImpl
)
Create
(
event
*
api
.
Event
)
(
*
api
.
Event
,
error
)
{
return
e
.
Interface
.
CreateWithEventNamespace
(
event
)
}
func
(
e
*
EventSinkImpl
)
Update
(
event
*
api
.
Event
)
(
*
api
.
Event
,
error
)
{
return
e
.
Interface
.
UpdateWithEventNamespace
(
event
)
}
func
(
e
*
EventSinkImpl
)
Patch
(
event
*
api
.
Event
,
data
[]
byte
)
(
*
api
.
Event
,
error
)
{
return
e
.
Interface
.
Patch
(
event
,
data
)
}
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