go-ceph/rados
John Mulligan 754d744ac8 rados: return an unsafe.Pointer from ioctx Pointer call
This improves the code in two ways: first, it makes the function name and the
return type match. Second, it avoids issues found by go vet converting
from uintptr to unsafe.Pointer without any obvious pointer math.
(See: https://pkg.go.dev/unsafe)

Technically, this is an API breaking change but this function is only
public to exchange the internal ceph structure between the rados and
rbd modules. This had the smallest delta and doesn't feel any more
hacky than what already existed in the code. If someone was using this
function externally then too bad.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2020-03-12 09:02:53 +01:00
..
conn.go rados: support fetching the cluster from the Conn 2020-01-27 18:30:10 +01:00
doc.go rados: use correct style for package doc comment 2019-12-12 11:34:51 -05:00
ioctx.go rados: return an unsafe.Pointer from ioctx Pointer call 2020-03-12 09:02:53 +01:00
object_iter.go rados: fix doc comments for object iter related functions 2020-02-11 08:51:07 +01:00
omap.go rados: fix doc comments for omap related functions 2020-02-11 08:51:07 +01:00
rados.go errutil: move errutil pkg into internal subdir 2020-03-10 08:41:44 +01:00
rados_test.go rados: standardize error naming 2020-01-29 16:51:49 +01:00