cleanup: use block comment for ClusterInfo example

Adjusted the mix of tabs and the spaces and also
used block comment for better readability.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2022-04-18 11:48:54 +05:30 committed by mergify[bot]
parent b4acbd08a5
commit eb4bfb7326

View File

@ -60,24 +60,22 @@ type ClusterInfo struct {
}
// Expected JSON structure in the passed in config file is,
// [
// {
// "clusterID": "<cluster-id>",
// "rbd": {
// "radosNamespace": "<rados-namespace>"
// },
// "monitors":
// [
// "<monitor-value>",
// "<monitor-value>",
// ...
// ],
// "cephFS": {
// "subvolumeGroup": "<subvolumegroup for cephfs volumes>"
// }
// },
// ...
// ].
// nolint:godot // example json content should not contain unwanted dot.
/*
[{
"clusterID": "<cluster-id>",
"rbd": {
"radosNamespace": "<rados-namespace>"
},
"monitors": [
"<monitor-value>",
"<monitor-value>"
],
"cephFS": {
"subvolumeGroup": "<subvolumegroup for cephfs volumes>"
}
}]
*/
func readClusterInfo(pathToConfig, clusterID string) (*ClusterInfo, error) {
var config []ClusterInfo