mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 02:43:36 +00:00
cleanup: address golangci 'funcorder' linter problems
The new 'funcorder' linter expects all public functions to be placed before private functions of a struct. Many private functions needed moving further down into their files. Some files had many issues reported. To reduce the churn in those files, they have been annotated with a `//nolint:funcorder` comment. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
committed by
mergify[bot]
parent
0907f39d95
commit
0a22e3a186
@ -109,11 +109,6 @@ func NewCSIVolumeGroupJournal(suffix string) VolumeGroupJournalConfig {
|
||||
}
|
||||
}
|
||||
|
||||
// SetNamespace sets the namespace for the journal.
|
||||
func (vgc *VolumeGroupJournalConfig) SetNamespace(ns string) {
|
||||
vgc.Config.namespace = ns
|
||||
}
|
||||
|
||||
// NewCSIVolumeGroupJournalWithNamespace returns an instance of VolumeGroupJournal for
|
||||
// volume groups using a predetermined namespace value.
|
||||
func NewCSIVolumeGroupJournalWithNamespace(suffix, ns string) VolumeGroupJournalConfig {
|
||||
@ -123,6 +118,11 @@ func NewCSIVolumeGroupJournalWithNamespace(suffix, ns string) VolumeGroupJournal
|
||||
return j
|
||||
}
|
||||
|
||||
// SetNamespace sets the namespace for the journal.
|
||||
func (vgc *VolumeGroupJournalConfig) SetNamespace(ns string) {
|
||||
vgc.Config.namespace = ns
|
||||
}
|
||||
|
||||
// Connect establishes a new connection to a ceph cluster for journal metadata.
|
||||
func (vgc *VolumeGroupJournalConfig) Connect(
|
||||
monitors,
|
||||
|
Reference in New Issue
Block a user