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 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{})
Click to show internal directories.
Click to hide internal directories.