Skip to content

Commit 1dfcec9

Browse files
committed
nvmeof: move NVMeoFVolumeData to volume.go
creates volume.go file. it will in charge of metadata stuff Signed-off-by: gadi-didi <gadi.didi@ibm.com>
1 parent 9e08cf4 commit 1dfcec9

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

internal/nvmeof/nvmeof.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ type ListenerDetails struct {
5252
// Config holds gateway client configuration.
5353
type GatewayConfig = GatewayAddress
5454

55-
// NVMeoFVolumeData holds the data required for an NVMe-oF volume.
56-
type NVMeoFVolumeData struct {
57-
SubsystemNQN string
58-
NamespaceID uint32
59-
NamespaceUUID string
60-
HostNQN string
61-
ListenerInfo ListenerDetails
62-
GatewayManagementInfo GatewayConfig
63-
}
64-
6555
// GatewayClient wraps the gRPC client and connection details.
6656
type GatewayRpcClient struct {
6757
config *GatewayConfig

internal/nvmeof/volume.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
Copyright 2025 The Ceph-CSI Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package nvmeof
18+
19+
// NVMeoFVolumeData holds the data required for an NVMe-oF volume.
20+
type NVMeoFVolumeData struct {
21+
SubsystemNQN string
22+
NamespaceID uint32
23+
NamespaceUUID string
24+
HostNQN string
25+
ListenerInfo ListenerDetails
26+
GatewayManagementInfo GatewayConfig
27+
}

0 commit comments

Comments
 (0)