rados: naming conventions: disable revive naming check on old struct

This struct has public fields that violate standard naming conventions.
Disable the check on this struct only.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-08-16 11:10:11 -04:00 committed by mergify[bot]
parent 572de578f6
commit 25c0699926
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,8 @@ import (
var argvPlaceholder = "placeholder"
//revive:disable:var-naming old-yet-exported public api
// ClusterStat represents Ceph cluster statistics.
type ClusterStat struct {
Kb uint64
@ -22,6 +24,8 @@ type ClusterStat struct {
Num_objects uint64
}
//revive:enable:var-naming
// Conn is a connection handle to a Ceph cluster.
type Conn struct {
cluster C.rados_t