rbd: doc comments for Seek constants

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-02-25 14:25:31 -05:00 committed by Niels de Vos
parent 560d6ccd2c
commit 002ffc8c91
1 changed files with 6 additions and 1 deletions

View File

@ -23,9 +23,14 @@ import (
)
const (
// Image.Seek() constants
// Image.Seek() constants:
// SeekSet is used with Seek to absolutely position the file.
SeekSet = int(C.SEEK_SET)
// SeekCur is used with Seek to position the file relatively to the current
// position.
SeekCur = int(C.SEEK_CUR)
// SeekEnd is used with Seek to position the file relatively to the end.
SeekEnd = int(C.SEEK_END)
)