type DevlinkDevEswitchAttr …
type DevlinkDevAttrs …
type DevlinkDevice …
type DevlinkPortFn …
type DevlinkPortFnSetAttrs …
type DevlinkPort …
type DevLinkPortAddAttrs …
type DevlinkDeviceInfo …
type DevlinkResource …
func (dlr *DevlinkResource) parseAttributes(attrs map[uint16]syscall.NetlinkRouteAttr) error { … }
type DevlinkResources …
func (dlrs *DevlinkResources) parseAttributes(attrs map[uint16]syscall.NetlinkRouteAttr) error { … }
type DevlinkParam …
type DevlinkParamValue …
func (dlp *DevlinkParam) parseAttributes(attrs []syscall.NetlinkRouteAttr) error { … }
func (dlpv *DevlinkParamValue) parseAttributes(attrs []syscall.NetlinkRouteAttr, paramType uint8) error { … }
func parseDevLinkDeviceList(msgs [][]byte) ([]*DevlinkDevice, error) { … }
func eswitchStringToMode(modeName string) (uint16, error) { … }
func parseEswitchMode(mode uint16) string { … }
func parseEswitchInlineMode(inlinemode uint8) string { … }
func parseEswitchEncapMode(encapmode uint8) string { … }
func (d *DevlinkDevice) parseAttributes(attrs []syscall.NetlinkRouteAttr) error { … }
func (dev *DevlinkDevice) parseEswitchAttrs(msgs [][]byte) { … }
func (h *Handle) getEswitchAttrs(family *GenlFamily, dev *DevlinkDevice) { … }
func (h *Handle) DevLinkGetDeviceList() ([]*DevlinkDevice, error) { … }
func DevLinkGetDeviceList() ([]*DevlinkDevice, error) { … }
func parseDevlinkDevice(msgs [][]byte) (*DevlinkDevice, error) { … }
func (h *Handle) createCmdReq(cmd uint8, bus string, device string) (*GenlFamily, *nl.NetlinkRequest, error) { … }
func (h *Handle) DevLinkGetDeviceByName(Bus string, Device string) (*DevlinkDevice, error) { … }
func DevLinkGetDeviceByName(Bus string, Device string) (*DevlinkDevice, error) { … }
func (h *Handle) DevLinkSetEswitchMode(Dev *DevlinkDevice, NewMode string) error { … }
func DevLinkSetEswitchMode(Dev *DevlinkDevice, NewMode string) error { … }
func (port *DevlinkPort) parseAttributes(attrs []syscall.NetlinkRouteAttr) error { … }
func parseDevLinkAllPortList(msgs [][]byte) ([]*DevlinkPort, error) { … }
func (h *Handle) DevLinkGetAllPortList() ([]*DevlinkPort, error) { … }
func DevLinkGetAllPortList() ([]*DevlinkPort, error) { … }
func parseDevlinkPortMsg(msgs [][]byte) (*DevlinkPort, error) { … }
func (h *Handle) DevLinkGetPortByIndex(Bus string, Device string, PortIndex uint32) (*DevlinkPort, error) { … }
func DevlinkGetDeviceResources(bus string, device string) (*DevlinkResources, error) { … }
func (h *Handle) DevlinkGetDeviceResources(bus string, device string) (*DevlinkResources, error) { … }
func (h *Handle) DevlinkGetDeviceParams(bus string, device string) ([]*DevlinkParam, error) { … }
func DevlinkGetDeviceParams(bus string, device string) ([]*DevlinkParam, error) { … }
func (h *Handle) DevlinkGetDeviceParamByName(bus string, device string, param string) (*DevlinkParam, error) { … }
func DevlinkGetDeviceParamByName(bus string, device string, param string) (*DevlinkParam, error) { … }
func (h *Handle) DevlinkSetDeviceParam(bus string, device string, param string, cmode uint8, value interface{ … }
func DevlinkSetDeviceParam(bus string, device string, param string, cmode uint8, value interface{ … }
func DevLinkGetPortByIndex(Bus string, Device string, PortIndex uint32) (*DevlinkPort, error) { … }
func (h *Handle) DevLinkPortAdd(Bus string, Device string, Flavour uint16, Attrs DevLinkPortAddAttrs) (*DevlinkPort, error) { … }
func DevLinkPortAdd(Bus string, Device string, Flavour uint16, Attrs DevLinkPortAddAttrs) (*DevlinkPort, error) { … }
func (h *Handle) DevLinkPortDel(Bus string, Device string, PortIndex uint32) error { … }
func DevLinkPortDel(Bus string, Device string, PortIndex uint32) error { … }
func (h *Handle) DevlinkPortFnSet(Bus string, Device string, PortIndex uint32, FnAttrs DevlinkPortFnSetAttrs) error { … }
func DevlinkPortFnSet(Bus string, Device string, PortIndex uint32, FnAttrs DevlinkPortFnSetAttrs) error { … }
type devlinkInfoGetter …
func (h *Handle) DevlinkGetDeviceInfoByName(Bus string, Device string, getInfoMsg devlinkInfoGetter) (*DevlinkDeviceInfo, error) { … }
func DevlinkGetDeviceInfoByName(Bus string, Device string) (*DevlinkDeviceInfo, error) { … }
func (h *Handle) DevlinkGetDeviceInfoByNameAsMap(Bus string, Device string, getInfoMsg devlinkInfoGetter) (map[string]string, error) { … }
func DevlinkGetDeviceInfoByNameAsMap(Bus string, Device string) (map[string]string, error) { … }
func (d *DevlinkDevice) GetDevlinkInfo() (*DevlinkDeviceInfo, error) { … }
func (d *DevlinkDevice) GetDevlinkInfoAsMap() (map[string]string, error) { … }
func (h *Handle) getDevlinkInfoMsg(bus, device string) ([]byte, error) { … }
func parseInfoMsg(msg []byte) (map[string]string, error) { … }
func collectInfoData(msg []byte, data map[string]string) error { … }
func getNestedInfoData(msg []byte) (string, string, error) { … }
func parseInfoData(data map[string]string) *DevlinkDeviceInfo { … }
func parseInfoValue(value []byte) string { … }