mirror of
https://github.com/prometheus/node_exporter.git
synced 2025-01-23 00:30:20 +01:00
0e77317955
* github.com/ema/qdisc * github.com/mdlayher/genetlink * github.com/mdlayher/wifi Signed-off-by: Ben Kochie <superq@gmail.com>
24 lines
537 B
Go
24 lines
537 B
Go
//+build !linux
|
|
|
|
package genetlink
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
// errUnimplemented is returned by all functions on platforms that
|
|
// cannot make use of generic netlink.
|
|
var errUnimplemented = fmt.Errorf("generic netlink not implemented on %s/%s",
|
|
runtime.GOOS, runtime.GOARCH)
|
|
|
|
// getFamily always returns an error.
|
|
func (c *Conn) getFamily(name string) (Family, error) {
|
|
return Family{}, errUnimplemented
|
|
}
|
|
|
|
// listFamilies always returns an error.
|
|
func (c *Conn) listFamilies() ([]Family, error) {
|
|
return nil, errUnimplemented
|
|
}
|