forked from mdlayher/ethtool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client_others.go
36 lines (28 loc) · 1.66 KB
/
client_others.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
//go:build !linux
// +build !linux
package ethtool
import (
"fmt"
"runtime"
)
// errUnsupported indicates that this library is not functional on non-Linux
// platforms.
var errUnsupported = fmt.Errorf("ethtool: this library is not supported on %s/%s", runtime.GOOS, runtime.GOARCH)
func (*Error) Is(_ error) bool { return false }
type client struct{}
func newClient() (*client, error) { return nil, errUnsupported }
func (c *client) LinkInfos() ([]*LinkInfo, error) { return nil, errUnsupported }
func (c *client) LinkInfo(_ Interface) (*LinkInfo, error) { return nil, errUnsupported }
func (c *client) LinkModes() ([]*LinkMode, error) { return nil, errUnsupported }
func (c *client) LinkMode(_ Interface) (*LinkMode, error) { return nil, errUnsupported }
func (c *client) LinkStates() ([]*LinkState, error) { return nil, errUnsupported }
func (c *client) LinkState(_ Interface) (*LinkState, error) { return nil, errUnsupported }
func (c *client) WakeOnLANs() ([]*WakeOnLAN, error) { return nil, errUnsupported }
func (c *client) WakeOnLAN(_ Interface) (*WakeOnLAN, error) { return nil, errUnsupported }
func (c *client) SetWakeOnLAN(_ WakeOnLAN) error { return errUnsupported }
func (c *client) FEC(_ Interface) (*FEC, error) { return nil, errUnsupported }
func (c *client) SetFEC(_ FEC) error { return errUnsupported }
func (c *client) Close() error { return errUnsupported }
func (f *FEC) Supported() FECModes { return 0 }
func (f FECMode) String() string { return "unsupported" }
func (f FECModes) String() string { return "unsupported" }