File tree 1 file changed +29
-0
lines changed 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ const (
27
27
28
28
// Generic component slugs
29
29
// Slugs are set on Device types to identify the type of component
30
+ //
31
+ // note: Enlist any new component types in the method further below.
30
32
SlugBackplaneExpander = "Backplane-Expander"
31
33
SlugChassis = "Chassis"
32
34
SlugTPM = "TPM"
@@ -64,6 +66,33 @@ const (
64
66
SlugRAIDImplHardware = "hardware"
65
67
)
66
68
69
+ func ComponentTypes () []string {
70
+ return []string {
71
+ SlugBackplaneExpander ,
72
+ SlugChassis ,
73
+ SlugTPM ,
74
+ SlugGPU ,
75
+ SlugCPU ,
76
+ SlugPhysicalMem ,
77
+ SlugStorageController ,
78
+ SlugStorageControllers ,
79
+ SlugBMC ,
80
+ SlugBIOS ,
81
+ SlugDrive ,
82
+ SlugDrives ,
83
+ SlugDriveTypePCIeNVMEeSSD ,
84
+ SlugDriveTypeSATASSD ,
85
+ SlugDriveTypeSATAHDD ,
86
+ SlugNIC ,
87
+ SlugNICs ,
88
+ SlugPSU ,
89
+ SlugPSUs ,
90
+ SlugCPLD ,
91
+ SlugEnclosure ,
92
+ SlugMainboard ,
93
+ }
94
+ }
95
+
67
96
// FormatVendorName compares the given strings to identify and returned a known
68
97
// vendor name. When a match is not found, the string is returned as is.
69
98
//
You can’t perform that action at this time.
0 commit comments