rbd: add revive directives to ignore underscores in ImageInfo
These are public fields of a public type and changing them would be
a breaking change. Add revive comment directives to ignore them
so we can continue to have names in this struct that violate the
Go naming convention.
@@ -49,6 +49,8 @@ const (
// Timespec is a public type for the internal C 'struct timespec'
type Timespec ts.Timespec
+// revive:disable:var-naming old-yet-exported public api
+
// ImageInfo represents the status information for an image.
type ImageInfo struct {
Size uint64
@@ -58,6 +60,8 @@ type ImageInfo struct {
Block_name_prefix string
}
+// revive:enable:var-naming
+
// SnapInfo represents the status information for a snapshot.
type SnapInfo struct {
Id uint64
