File: client_others.go

package info (click to toggle)
golang-github-mdlayher-ethtool 0.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 232 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 2,219 bytes parent folder | download
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
//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) UpdateLinkMode(_ Interface, _ *LinkModeUpdate) error { return 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) AllPrivateFlags() ([]*PrivateFlags, error)           { return nil, errUnsupported }
func (c *client) PrivateFlags(_ Interface) (*PrivateFlags, error)     { return nil, errUnsupported }
func (c *client) SetPrivateFlags(_ PrivateFlags) 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" }