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:11:16 -04:00 committed by mergify[bot]
parent 25c0699926
commit 91efd1f092

View File

@ -45,6 +45,8 @@ const (
CreateIdempotent = C.LIBRADOS_CREATE_IDEMPOTENT CreateIdempotent = C.LIBRADOS_CREATE_IDEMPOTENT
) )
//revive:disable:var-naming old-yet-exported public api
// PoolStat represents Ceph pool statistics. // PoolStat represents Ceph pool statistics.
type PoolStat struct { type PoolStat struct {
// space used in bytes // space used in bytes
@ -69,6 +71,8 @@ type PoolStat struct {
Num_wr_kb uint64 Num_wr_kb uint64
} }
//revive:enable:var-naming
// ObjectStat represents an object stat information // ObjectStat represents an object stat information
type ObjectStat struct { type ObjectStat struct {
// current length in bytes // current length in bytes