go-ceph/rbd
John Mulligan f4f0d6dd9a rbd: add functions to parse json in mirroring status description field
Add UnmarshalDescriptionJSON method to SiteMirrorImageStatus
Add DescriptionReplayStatus method to SiteMirrorImageStatus

Both these functions are meant to help extract the JSON object that is
some times appended to the Description field in the
SiteMirrorImageStatus struct. I have only seen the JSON appear after
"replaying, " but there's little docs for this and I skimmed to code to
even find out what fields the JSON might include.  As such, the
UnmarshalDescriptionJSON tries to unmarshal the appended JSON into an
object the caller provides in case skimming the code was insufficient or
the caller has other needs. For most cases, DescriptionReplayStatus can
be used to parse the JSON into a struct containing known fields.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2023-03-17 18:10:53 +00:00
..
admin gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
diff_iterate_test.go rbd: rename error type's Errno method to ErrorCode 2020-08-10 13:03:24 -04:00
diff_iterate.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
doc.go rbd: use correct style for package doc comment 2019-12-12 11:34:51 -05:00
encryption_test.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
encryption.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
errors_test.go rbd: use FormatErrorCode for formatting rbd errors 2020-08-10 13:03:24 -04:00
errors.go rbd: add GetGlobalMirrorStatus implementing rbd_mirror_image_get_global_status 2021-04-13 09:47:43 +00:00
features_nautilus_test.go rbd: remove luminous and mimic build tags 2021-11-09 01:24:01 +00:00
features_nautilus.go rbd: remove luminous and mimic build tags 2021-11-09 01:24:01 +00:00
features_test.go rbd: remove features_mimic.go 2021-08-02 15:15:48 +00:00
features.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
group_snap_test.go rbd: add GroupSnapRollbackWithProgress function 2021-02-08 15:29:11 +00:00
group_snap.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
group_test.go rbd: add GetGroup implementing rbd_get_group 2021-02-02 15:48:00 +00:00
group.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
metadata_test.go rbd: add ListMetadata implementing rbd_metadata_list 2020-11-04 14:01:51 +00:00
metadata.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
migration_test.go rbd: implement live migration functions 2023-01-11 05:35:52 +00:00
migration.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
mirror_desc_status.go rbd: add functions to parse json in mirroring status description field 2023-03-17 18:10:53 +00:00
mirror_nautilus_test.go rbd: add mirroring support for nautilus 2022-07-13 13:00:48 +00:00
mirror_nautilus.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
mirror_test.go rbd: add mirroring support for nautilus 2022-07-13 13:00:48 +00:00
mirror.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
namespace_nautilus_test.go rbd: remove luminous and mimic build tags 2021-11-09 01:24:01 +00:00
namespace_nautilus.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
options_octopus.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
options_test.go rbd: rename uses of RbdImageOptions to ImageOptions 2020-03-23 10:09:25 -04:00
options.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
pool_nautilus_test.go rbd: remove luminous and mimic build tags 2021-11-09 01:24:01 +00:00
pool_nautilus.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
rbd_nautilus_test.go rbd: remove luminous and mimic build tags 2021-11-09 01:24:01 +00:00
rbd_nautilus.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
rbd_test.go rbd: export image name 2021-11-09 02:31:09 +00:00
rbd.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
snapshot_namespace_test.go rbd: remove luminous and mimic build tags 2021-11-09 01:24:01 +00:00
snapshot_namespace.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
snapshot_nautilus.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
snapshot_octopus_test.go format: run gofmt on all files 2021-10-04 18:58:35 +00:00
snapshot_octopus.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
snapshot_rename_test.go rbd: make Snapshot.Remove stable 2022-10-17 17:18:49 +00:00
snapshot_rename.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
snapshot_test.go rbd: add SetSnapshot (re)implementing rbd_snap_set 2021-06-01 10:28:25 +00:00
snapshot.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00
watchers_test.go rbd: remove build tag for luminous from watchers.go 2021-08-02 15:15:48 +00:00
watchers.go gofmt: reformat everything with new gofmt of go 1.19 2023-02-20 20:50:24 +00:00