forked from jaypipes/ghw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnet_stub.go
More file actions
33 lines (27 loc) · 748 Bytes
/
net_stub.go
File metadata and controls
33 lines (27 loc) · 748 Bytes
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
// +build !linux,!windows
// 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 (
"runtime"
"github.com/pkg/errors"
)
func (ctx *context) netFillInfo(info *NetworkInfo) error {
return errors.New("netFillInfo not implemented on " + runtime.GOOS)
}
// NICS has been deprecated in 0.2. Please use the NetworkInfo.NICs attribute.
// TODO(jaypipes): Remove in 1.0.
func NICs() []*NIC {
msg := `
The NICs() function has been DEPRECATED and will be removed in the 1.0 release
of ghw. Please use the NetworkInfo.NICs attribute.
`
warn(msg)
ctx := contextFromEnv()
return ctx.nics()
}
func (ctx *context) nics() []*NIC {
return nil
}