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
62c0e5ab
Commit
62c0e5ab
authored
Nov 14, 2016
by
Hongchao Deng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pkg/storage: docs on watch 0 behavior
parent
34db128a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
interfaces.go
pkg/storage/interfaces.go
+4
-0
No files found.
pkg/storage/interfaces.go
View file @
62c0e5ab
...
@@ -112,6 +112,8 @@ type Interface interface {
...
@@ -112,6 +112,8 @@ type Interface interface {
// resourceVersion may be used to specify what version to begin watching,
// resourceVersion may be used to specify what version to begin watching,
// which should be the current resourceVersion, and no longer rv+1
// which should be the current resourceVersion, and no longer rv+1
// (e.g. reconnecting without missing any updates).
// (e.g. reconnecting without missing any updates).
// If resource version is "0", this interface will get current object at given key
// and send it in an "ADDED" event, before watch starts.
Watch
(
ctx
context
.
Context
,
key
string
,
resourceVersion
string
,
p
SelectionPredicate
)
(
watch
.
Interface
,
error
)
Watch
(
ctx
context
.
Context
,
key
string
,
resourceVersion
string
,
p
SelectionPredicate
)
(
watch
.
Interface
,
error
)
// WatchList begins watching the specified key's items. Items are decoded into API
// WatchList begins watching the specified key's items. Items are decoded into API
...
@@ -119,6 +121,8 @@ type Interface interface {
...
@@ -119,6 +121,8 @@ type Interface interface {
// resourceVersion may be used to specify what version to begin watching,
// resourceVersion may be used to specify what version to begin watching,
// which should be the current resourceVersion, and no longer rv+1
// which should be the current resourceVersion, and no longer rv+1
// (e.g. reconnecting without missing any updates).
// (e.g. reconnecting without missing any updates).
// If resource version is "0", this interface will list current objects directory defined by key
// and send them in "ADDED" events, before watch starts.
WatchList
(
ctx
context
.
Context
,
key
string
,
resourceVersion
string
,
p
SelectionPredicate
)
(
watch
.
Interface
,
error
)
WatchList
(
ctx
context
.
Context
,
key
string
,
resourceVersion
string
,
p
SelectionPredicate
)
(
watch
.
Interface
,
error
)
// Get unmarshals json found at key into objPtr. On a not found error, will either
// Get unmarshals json found at key into objPtr. On a not found error, will either
...
...
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