Sven Anderson
26fd846da1
docs: update comments of preview and deprecated APIs
...
Signed-off-by: Sven Anderson <sven@redhat.com>
2021-10-04 18:58:35 +00:00
John Mulligan
f015cc36ca
rbd: clearly mark Set as deprecated
...
Use the notation described in the new API stability doc.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2021-09-30 13:27:01 +00:00
John Mulligan
bf0ddeffa9
rbd: fix naming convention violations in snapshot.go
...
Fix up variable names that don't meet Go standards.
Command: gofmt -w -r 'c_is_protected -> cIsProtected' rbd/snapshot.go
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2021-08-12 11:05:09 -04:00
John Mulligan
7536a52346
rbd: fix naming convention violations in snapshot.go
...
Fix up variable names that don't meet Go standards.
Command: gofmt -w -r 'c_snapname -> cSnapName' rbd/snapshot.go
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2021-08-12 11:05:09 -04:00
oct28-yjkim
8e4b8349aa
rbd: add SetSnapshot (re)implementing rbd_snap_set
...
Signed-off-by: oct28.yjkim <oct28.yjkim@gmail.com>
2021-06-01 10:28:25 +00:00
Mudit Agarwal
2f0905b585
rbd: add wrapper for rbd_snap_get_timestamp()
...
Added a wrapper for rbd_snap_get_timestamp() function.
Signed-off-by: Mudit Agarwal <muagarwa@redhat.com>
2020-09-24 14:03:01 -04:00
Sven Anderson
6c944e8b65
rbd: make RBDError type unexported
...
In order to avoid external dependencies on implementation details,
this change replaces RBDError with the unexported rbdError. In case
some application really needs access to the integer value, it can use
the pattern
var errno interface{ Errno() int }
if errors.As(err, errno) { ... errno.Errno() ... }
Signed-off-by: Sven Anderson <sven@redhat.com>
2020-07-17 13:47:32 -04:00
John Mulligan
d9ce9ad799
rbd: add well-formed doc comments to the rbd snapshot functions.
...
No functionality change, just comments.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2020-03-10 07:47:59 +01:00
John Mulligan
f0dba686df
rbd: move snapshot related functions to a snapshot.go file
...
No functionality change. Move various snapshot related functions to
their own file. This helps logically group these related funcs in one
place.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2020-03-10 07:47:59 +01:00