ethtool

package
v1.300028.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const SectionKey_Ethtool = "ethtool"
"ethtool" : {
    "interface_include": "*",
    "interface_exclude": "",
    "metrics_include": [
        "bw_in_allowance_exceeded",
        "bw_out_allowance_exceeded"
    ]
}
View Source
const SectionKey_InterfaceExclude = "interface_exclude"
View Source
const SectionKey_InterfaceInclude = "interface_include"
View Source
const SectionKey_MetricsInclude = "metrics_include"

Variables

View Source
var ChildRule = map[string]translator.Rule{}

Functions

func GetCurPath

func GetCurPath() string

func RegisterRule

func RegisterRule(fieldname string, r translator.Rule)

Types

type Ethtool

type Ethtool struct {
}

func (*Ethtool) ApplyRule

func (n *Ethtool) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type InterfaceExclude

type InterfaceExclude struct {
}

func (*InterfaceExclude) ApplyRule

func (obj *InterfaceExclude) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type InterfaceInclude

type InterfaceInclude struct {
}

func (*InterfaceInclude) ApplyRule

func (obj *InterfaceInclude) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

type MetricsInclude

type MetricsInclude struct {
}

func (*MetricsInclude) ApplyRule

func (obj *MetricsInclude) ApplyRule(input interface{}) (returnKey string, returnVal interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL