From f175130d32bf2069161a95e4561c866d1d268c1f Mon Sep 17 00:00:00 2001 From: Praveen M Date: Fri, 20 Dec 2024 18:37:24 +0530 Subject: [PATCH] ci: identical methods or type constraints from another interface (iface) Signed-off-by: Praveen M --- internal/cephfs/mounter/kernel.go | 1 + internal/cephfs/mounter/volumemounter.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/cephfs/mounter/kernel.go b/internal/cephfs/mounter/kernel.go index 09bc707f5b8..499d57e8a94 100644 --- a/internal/cephfs/mounter/kernel.go +++ b/internal/cephfs/mounter/kernel.go @@ -35,6 +35,7 @@ const ( // testErrorf can be set by unit test for enhanced error reporting. var testErrorf = func(fmt string, args ...any) { /* do nothing */ } +//nolint: iface type KernelMounter interface { Mount( ctx context.Context, diff --git a/internal/cephfs/mounter/volumemounter.go b/internal/cephfs/mounter/volumemounter.go index edf85f5d0df..060d364969a 100644 --- a/internal/cephfs/mounter/volumemounter.go +++ b/internal/cephfs/mounter/volumemounter.go @@ -98,6 +98,7 @@ func LoadAvailableMounters(conf *util.Config) error { return nil } +//nolint:iface type VolumeMounter interface { Mount(ctx context.Context, mountPoint string, cr *util.Credentials, volOptions *store.VolumeOptions) error Name() string