File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed
Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,6 @@ const (
2222 ManufacturerUnknown Manufacturer = "unknown"
2323)
2424
25- type Architecture string
26-
27- const (
28- ArchitectureX86_64 Architecture = "x86_64"
29- ArchitectureARM64 Architecture = "arm64"
30- )
31-
3225func GetManufacturer (manufacturer string ) Manufacturer {
3326 switch strings .ToLower (manufacturer ) {
3427 case "nvidia" :
@@ -40,6 +33,25 @@ func GetManufacturer(manufacturer string) Manufacturer {
4033 }
4134}
4235
36+ type Architecture string
37+
38+ const (
39+ ArchitectureX86_64 Architecture = "x86_64"
40+ ArchitectureARM64 Architecture = "arm64"
41+ ArchitectureUnknown Architecture = "unknown"
42+ )
43+
44+ func GetArchitecture (architecture string ) Architecture {
45+ switch strings .ToLower (architecture ) {
46+ case "x86_64" :
47+ return ArchitectureX86_64
48+ case "arm64" :
49+ return ArchitectureARM64
50+ default :
51+ return ArchitectureUnknown
52+ }
53+ }
54+
4355type InstanceTypeID string
4456
4557type InstanceType struct {
You can’t perform that action at this time.
0 commit comments