mirror of
https://github.com/vishvananda/netlink.git
synced 2026-04-22 23:27:13 +08:00
7ddb61d720
the structs and methods for managing devlink are all under the `devlink_linux.go` file, and when trying to write code in a non linux system (mac), the editor doesn't recognize any of it. this commit moves struct definitions from the devlink_linux.go file and creates a devlink_unspecified.go with the devlink funcs. this is similar to what we have in netlink_unspecified.go Signed-off-by: Bernardo Soares <20172413+bersoare@users.noreply.github.com>
69 lines
1.8 KiB
Go
69 lines
1.8 KiB
Go
//go:build !linux
|
|
// +build !linux
|
|
|
|
package netlink
|
|
|
|
func DevLinkGetDeviceList() ([]*DevlinkDevice, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevLinkGetDeviceByName(Bus string, Device string) (*DevlinkDevice, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevLinkSetEswitchMode(Dev *DevlinkDevice, NewMode string) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func DevLinkGetAllPortList() ([]*DevlinkPort, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkGetDeviceResources(bus string, device string) (*DevlinkResources, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkGetDeviceParams(bus string, device string) ([]*DevlinkParam, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkGetDeviceParamByName(bus string, device string, param string) (*DevlinkParam, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkSplitPort(port *DevlinkPort, count uint32) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkUnsplitPort(port *DevlinkPort) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkSetDeviceParam(bus string, device string, param string, cmode uint8, value interface{}) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func DevLinkGetPortByIndex(Bus string, Device string, PortIndex uint32) (*DevlinkPort, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevLinkPortAdd(Bus string, Device string, Flavour uint16, Attrs DevLinkPortAddAttrs) (*DevlinkPort, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevLinkPortDel(Bus string, Device string, PortIndex uint32) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkPortFnSet(Bus string, Device string, PortIndex uint32, FnAttrs DevlinkPortFnSetAttrs) error {
|
|
return ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkGetDeviceInfoByName(Bus string, Device string) (*DevlinkDeviceInfo, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|
|
|
|
func DevlinkGetDeviceInfoByNameAsMap(Bus string, Device string) (map[string]string, error) {
|
|
return nil, ErrNotImplemented
|
|
}
|