forked from terra-farm/go-virtualbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nic.go
33 lines (28 loc) · 939 Bytes
/
nic.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
package virtualbox
// NIC represents a virtualized network interface card.
type NIC struct {
Network NICNetwork
Hardware NICHardware
HostonlyAdapter string
}
// NICNetwork represents the type of NIC networks.
type NICNetwork string
const (
NICNetAbsent = NICNetwork("none")
NICNetDisconnected = NICNetwork("null")
NICNetNAT = NICNetwork("nat")
NICNetBridged = NICNetwork("bridged")
NICNetInternal = NICNetwork("intnet")
NICNetHostonly = NICNetwork("hostonly")
NICNetGeneric = NICNetwork("generic")
)
// NICHardware represents the type of NIC hardware.
type NICHardware string
const (
AMDPCNetPCIII = NICHardware("Am79C970A")
AMDPCNetFASTIII = NICHardware("Am79C973")
IntelPro1000MTDesktop = NICHardware("82540EM")
IntelPro1000TServer = NICHardware("82543GC")
IntelPro1000MTServer = NICHardware("82545EM")
VirtIO = NICHardware("virtio")
)