mirror of
https://github.com/ceph/go-ceph
synced 2024-12-26 16:12:45 +00:00
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. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
8ea2109309
commit
4f9322e9f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user