-
Notifications
You must be signed in to change notification settings - Fork 1
/
alias.go
146 lines (113 loc) · 3.03 KB
/
alias.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
//
// Use and distribution licensed under the Apache license version 2.
//
// See the COPYING file in the root project directory for full text.
//
package ghw
import (
"github.com/go-hardware/ghw/pkg/baseboard"
"github.com/go-hardware/ghw/pkg/bios"
"github.com/go-hardware/ghw/pkg/block"
"github.com/go-hardware/ghw/pkg/chassis"
ghwcontext "github.com/go-hardware/ghw/pkg/context"
"github.com/go-hardware/ghw/pkg/cpu"
"github.com/go-hardware/ghw/pkg/gpu"
"github.com/go-hardware/ghw/pkg/memory"
"github.com/go-hardware/ghw/pkg/net"
"github.com/go-hardware/ghw/pkg/pci"
pciaddress "github.com/go-hardware/ghw/pkg/pci/address"
"github.com/go-hardware/ghw/pkg/product"
"github.com/go-hardware/ghw/pkg/topology"
)
type Options = ghwcontext.Options
var (
NewContext = ghwcontext.New
WithRootMountpoint = ghwcontext.WithRootMountpoint
WithDisableWarnings = ghwcontext.WithDisableWarnings
WithDisableExternalTools = ghwcontext.WithDisableExternalTools
WithOptions = ghwcontext.WithOptions
)
type CPUInfo = cpu.Info
var (
CPU = cpu.New
)
type MemoryArea = memory.Area
type MemoryInfo = memory.Info
type MemoryCache = memory.Cache
type MemoryCacheType = memory.CacheType
type MemoryModule = memory.Module
const (
MemoryCacheTypeUnified = memory.CacheTypeUnified
MemoryCacheTypeInstruction = memory.CacheTypeInstruction
MemoryCacheTypeData = memory.CacheTypeData
)
var (
Memory = memory.New
)
type BlockInfo = block.Info
type Disk = block.Disk
type Partition = block.Partition
var (
Block = block.New
)
type DriveType = block.DriveType
const (
DriveTypeUnknown = block.DriveTypeUnknown
DriveTypeHDD = block.DriveTypeHDD
DriveTypeFDD = block.DriveTypeFDD
DriveTypeODD = block.DriveTypeODD
DriveTypeSSD = block.DriveTypeSSD
)
type StorageController = block.StorageController
const (
StorageControllerUnknown = block.StorageControllerUnknown
StorageControllerIDE = block.StorageControllerIDE
StorageControllerSCSI = block.StorageControllerSCSI
StorageControllerNVMe = block.StorageControllerNVMe
StorageControllerVirtIO = block.StorageControllerVirtIO
StorageControllerMMC = block.StorageControllerMMC
)
type NetworkInfo = net.Info
type NIC = net.NIC
type NICCapability = net.NICCapability
var (
Network = net.New
)
type BIOSInfo = bios.Info
var (
BIOS = bios.New
)
type ChassisInfo = chassis.Info
var (
Chassis = chassis.New
)
type BaseboardInfo = baseboard.Info
var (
Baseboard = baseboard.New
)
type TopologyInfo = topology.Info
type TopologyNode = topology.Node
var (
Topology = topology.New
)
type Architecture = topology.Architecture
const (
ArchitectureSMP = topology.ArchitectureSMP
ArchitectureNUMA = topology.ArchitectureNUMA
)
type PCIInfo = pci.Info
type PCIAddress = pciaddress.Address
type PCIDevice = pci.Device
var (
PCI = pci.New
PCIAddressFromString = pciaddress.FromString
)
type ProductInfo = product.Info
var (
Product = product.New
)
type GPUInfo = gpu.Info
type GraphicsCard = gpu.GraphicsCard
var (
GPU = gpu.New
)