Skip to content

Commit

Permalink
clientv3: document context to "Snapshot" API
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Dec 18, 2017
1 parent ac2ab6b commit 677301d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clientv3/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ type Maintenance interface {
HashKV(ctx context.Context, endpoint string, rev int64) (*HashKVResponse, error)

// Snapshot provides a reader for a point-in-time snapshot of etcd.
// If the context "ctx" is canceled or timed out, reading from returned
// "io.ReadCloser" would error out (e.g. context.Canceled, context.DeadlineExceeded).
Snapshot(ctx context.Context) (io.ReadCloser, error)

// MoveLeader requests current leader to transfer its leadership to the transferee.
Expand Down

0 comments on commit 677301d

Please sign in to comment.