mirror of
https://github.com/kubernetes-csi/csi-driver-nvmf.git
synced 2025-09-10 17:39:13 +00:00
init csi-driver-nvmf
Signed-off-by: zhouenhua <zhouenhua@bytedance.com>
This commit is contained in:
31
pkg/nvmf/const.go
Normal file
31
pkg/nvmf/const.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package nvmf
|
||||
|
||||
const (
|
||||
NVMF_NQN_SIZE = 223
|
||||
SYS_NVMF = "/sys/class/nvmf"
|
||||
)
|
||||
|
||||
// Here erron
|
||||
const (
|
||||
ENOENT = 1 /* No such file or directory */
|
||||
EINVAL = 2 /* Invalid argument */
|
||||
)
|
||||
|
||||
const (
|
||||
DefaultDriverName = "csi.nvmf.com"
|
||||
DefaultDriverServicePort = "12230"
|
||||
DefaultDriverVersion = "v1.0.0"
|
||||
|
||||
DefaultVolumeMapPath = "/var/lib/nvmf/volumes"
|
||||
)
|
||||
|
||||
type GlobalConfig struct {
|
||||
NVMfVolumeMapDir string
|
||||
DriverName string
|
||||
Region string
|
||||
NodeID string
|
||||
Endpoint string // CSI endpoint
|
||||
Version string
|
||||
IsControllerServer bool
|
||||
LogLevel string
|
||||
}
|
Reference in New Issue
Block a user