go-ceph/rbd
John Mulligan aa29fad715 rbd: simplify callback mechanism in diff_iterate and watchers
Previously, the code that set up the callbacks was doing a pretty
direct translation of go-function to c-function. It turns out this
is not needed due to the way we set up the "dynamic" go callbacks
via an integer based callback "registry". Instead, we can stay within
the C layer entirely for the C callback, passing it only the index
value and then return to the go layer through a static C function
that only needs the index value.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2020-08-07 08:38:15 -04:00
..
diff_iterate.go rbd: simplify callback mechanism in diff_iterate and watchers 2020-08-07 08:38:15 -04:00
diff_iterate_test.go rbd: make RBDError type unexported 2020-07-17 13:47:32 -04:00
doc.go rbd: use correct style for package doc comment 2019-12-12 11:34:51 -05:00
errors.go rbd: make RBDError type unexported 2020-07-17 13:47:32 -04:00
errors_test.go tests: add tests for the Errno() methods of numeric error types 2020-07-24 23:14:20 +02:00
features.go rbd: make RBDError type unexported 2020-07-17 13:47:32 -04:00
features_mimic.go rbd/features: add FeatureSet for mapping features between bits and names 2020-02-24 16:28:03 -05:00
features_mimic_test.go rbd/features: add FeatureSet for mapping features between bits and names 2020-02-24 16:28:03 -05:00
features_nautilus.go rbd/features: add FeatureSet for mapping features between bits and names 2020-02-24 16:28:03 -05:00
features_nautilus_test.go rbd/features: add FeatureSet for mapping features between bits and names 2020-02-24 16:28:03 -05:00
features_test.go rbd: convert uses of RbdImageOptionX to ImageOptionX 2020-03-23 10:09:25 -04:00
namespace_nautilus.go rbd: convert NamespaceList for nautilus to use cutil.SplitSparseBuffer 2020-07-23 16:38:39 -04:00
namespace_nautilus_test.go rbd: add wrapper for rbd_namespace_list() function. 2020-06-15 13:43:26 -04:00
options.go rbd: add RBD_IMAGE_OPTION_FLATTEN for Mimic 2020-06-09 08:54:33 -04:00
options_mimic.go rbd: moved ImageOptionCloneFormat to rbd/options_mimic.go 2020-07-24 10:20:27 -04:00
options_octopus.go rbd: add RBD_IMAGE_OPTION_MIRROR_IMAGE_MODE for Octopus 2020-06-09 08:54:33 -04:00
options_test.go rbd: rename uses of RbdImageOptions to ImageOptions 2020-03-23 10:09:25 -04:00
pool_nautilus.go rbd: add constants for pool stat options and wrapper for rbd_pool_stats_get() 2020-07-24 10:35:57 -04:00
pool_nautilus_test.go rbd: add constants for pool stat options and wrapper for rbd_pool_stats_get() 2020-07-24 10:35:57 -04:00
rbd.go rbd: remove deprecated fields from ImageInfo struct 2020-08-04 12:48:01 -04:00
rbd_mimic.go rbd: convert GetImageNames for mimic to use cutil.SplitSparseBuffer 2020-07-23 16:38:39 -04:00
rbd_nautilus.go rbd: add Image.GetModifyTimestamp() 2020-06-22 09:22:18 -04:00
rbd_nautilus_test.go rbd: make RBDError type unexported 2020-07-17 13:47:32 -04:00
rbd_test.go rbd: add error checking in CreateImage() 2020-06-11 10:42:57 -04:00
snapshot.go rbd: make RBDError type unexported 2020-07-17 13:47:32 -04:00
snapshot_mimic.go rbd: convert ListChildren for mimic to use cutil.SplitSparseBuffer 2020-07-23 16:38:39 -04:00
snapshot_namespace.go rbd: add wrapper for function rbd_snap_get_trash_namespace() 2020-07-24 10:20:27 -04:00
snapshot_namespace_test.go rbd: add wrapper for function rbd_snap_get_trash_namespace() 2020-07-24 10:20:27 -04:00
snapshot_nautilus.go rbd: make RBDError type unexported 2020-07-17 13:47:32 -04:00
snapshot_test.go rbd: move snapshot test funcs to a new file 2020-03-10 07:47:59 +01:00
watchers_mimic.go rbd: simplify callback mechanism in diff_iterate and watchers 2020-08-07 08:38:15 -04:00
watchers_mimic_test.go rbd: add a UpdateWatch test case with multiple watches and go channels 2020-07-23 13:19:57 -04:00