Skip to content

Commit bef11f8

Browse files
committed
Move constants into a single file.
1 parent 917264b commit bef11f8

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

compute/constants.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,45 @@ const (
1313
// ResourceStatusPendingDelete indicates that a delete operation is pending for the resource.
1414
ResourceStatusPendingDelete = "PENDING_DELETE"
1515
)
16+
17+
const (
18+
// NetworkAdapterTypeE1000 represents the E1000 network adapter type.
19+
NetworkAdapterTypeE1000 = "E1000"
20+
21+
// NetworkAdapterTypeVMXNET3 represents the VMXNET3 network adapter type.
22+
NetworkAdapterTypeVMXNET3 = "VMXNET3"
23+
24+
// NetworkAdapterTypeE1000E represents the E1000e network adapter type.
25+
NetworkAdapterTypeE1000E = "E1000E"
26+
27+
// NetworkAdapterTypeEnhancedVMXNET2 represents the VMXNET2/Enhanced network adapter type.
28+
NetworkAdapterTypeEnhancedVMXNET2 = "ENHANCED_VMXNET2"
29+
30+
// NetworkAdapterTypeFlexiblePCNET32 represents the PCNET32/Flexible network adapter type.
31+
NetworkAdapterTypeFlexiblePCNET32 = "FLEXIBLE_PCNET32"
32+
)
33+
34+
const (
35+
// StorageControllerAdapterTypeBusLogicParallel represents the BusLogic Parallel storage controller adapter type.
36+
StorageControllerAdapterTypeBusLogicParallel = "BUSLOGIC_PARALLEL"
37+
38+
// StorageControllerAdapterTypeLSILogicParallel represents the LSI Logic Parallel storage controller adapter type.
39+
StorageControllerAdapterTypeLSILogicParallel = "LSI_LOGIC_PARALLEL"
40+
41+
// StorageControllerAdapterTypeLSILogicSAS represents the LSI Logic SAS storage controller adapter type.
42+
StorageControllerAdapterTypeLSILogicSAS = "LSI_LOGIC_SAS"
43+
44+
// StorageControllerAdapterTypeEnhancedVMWareParavirtual represents the VMWare Paravirtual storage controller adapter type.
45+
StorageControllerAdapterTypeEnhancedVMWareParavirtual = "VMWARE_PARAVIRTUAL"
46+
)
47+
48+
const (
49+
// ServerDiskSpeedEconomy represents the economy speed for server disks.
50+
ServerDiskSpeedEconomy = "ECONOMY"
51+
52+
// ServerDiskSpeedStandard represents the standard speed for server disks.
53+
ServerDiskSpeedStandard = "STANDARD"
54+
55+
// ServerDiskSpeedHighPerformance represents the high-performance speed for server disks.
56+
ServerDiskSpeedHighPerformance = "HIGHPERFORMANCE"
57+
)

compute/servers.go

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,6 @@ import (
88
"net/url"
99
)
1010

11-
const (
12-
// NetworkAdapterTypeE1000 represents the E1000 network adapter type.
13-
NetworkAdapterTypeE1000 = "E1000"
14-
15-
// NetworkAdapterTypeVMXNET3 represents the VMXNET3 network adapter type.
16-
NetworkAdapterTypeVMXNET3 = "VMXNET3"
17-
18-
// NetworkAdapterTypeE1000E represents the E1000e network adapter type.
19-
NetworkAdapterTypeE1000E = "E1000E"
20-
21-
// NetworkAdapterTypeEnhancedVMXNET2 represents the VMXNET2/Enhanced network adapter type.
22-
NetworkAdapterTypeEnhancedVMXNET2 = "ENHANCED_VMXNET2"
23-
24-
// NetworkAdapterTypeFlexiblePCNET32 represents the PCNET32/Flexible network adapter type.
25-
NetworkAdapterTypeFlexiblePCNET32 = "FLEXIBLE_PCNET32"
26-
)
27-
28-
const (
29-
// StorageControllerAdapterTypeBusLogicParallel represents the BusLogic Parallel storage controller adapter type.
30-
StorageControllerAdapterTypeBusLogicParallel = "BUSLOGIC_PARALLEL"
31-
32-
// StorageControllerAdapterTypeLSILogicParallel represents the LSI Logic Parallel storage controller adapter type.
33-
StorageControllerAdapterTypeLSILogicParallel = "LSI_LOGIC_PARALLEL"
34-
35-
// StorageControllerAdapterTypeLSILogicSAS represents the LSI Logic SAS storage controller adapter type.
36-
StorageControllerAdapterTypeLSILogicSAS = "LSI_LOGIC_SAS"
37-
38-
// StorageControllerAdapterTypeEnhancedVMWareParavirtual represents the VMWare Paravirtual storage controller adapter type.
39-
StorageControllerAdapterTypeEnhancedVMWareParavirtual = "VMWARE_PARAVIRTUAL"
40-
)
41-
42-
const (
43-
// ServerDiskSpeedEconomy represents the economy speed for server disks.
44-
ServerDiskSpeedEconomy = "ECONOMY"
45-
46-
// ServerDiskSpeedStandard represents the standard speed for server disks.
47-
ServerDiskSpeedStandard = "STANDARD"
48-
49-
// ServerDiskSpeedHighPerformance represents the high-performance speed for server disks.
50-
ServerDiskSpeedHighPerformance = "HIGHPERFORMANCE"
51-
)
52-
5311
// Server represents a virtual machine.
5412
type Server struct {
5513
ID string `json:"id"`

0 commit comments

Comments
 (0)