refactor: refactor some code to make it more readable

1. modify go.mod module name.
2. move disk.go and mounter.go into nvmf.go
3. make Connector as an objective

Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
This commit is contained in:
Meinhard Zhou
2022-03-10 20:51:17 +08:00
parent 7d1d0e2ec9
commit f770bb3802
11 changed files with 159 additions and 366 deletions

View File

@@ -24,12 +24,11 @@ import (
"strings"
"time"
"github.com/kubernetes-csi/csi-driver-nvmf/pkg/utils"
"github.com/kubernetes-csi/csi-lib-utils/protosanitizer"
log "github.com/sirupsen/logrus"
"google.golang.org/grpc"
"k8s.io/klog"
"csi-driver-nvmf/pkg/utils"
)
func waitForPathToExist(devicePath string, maxRetries, intervalSeconds int, deviceTransport string) (bool, error) {