Documentation ¶
Overview ¶
Package deviceclass contains the logic for interacting with device classes. It contains methods that read out the .yaml files representing device classes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHierarchy ¶
GetHierarchy returns the hierarchy of device classes merged with their corresponding code communicator.
Types ¶
type Condition ¶
type Condition struct { Type string `yaml:"type"` MatchMode matchMode `yaml:"match_mode" mapstructure:"match_mode"` Value []string `yaml:"values" mapstructure:"values"` }
Condition is a single condition.
type ConditionSet ¶
type ConditionSet struct { LogicalOperator logicalOperator Conditions []condition }
ConditionSet defines a set of conditions.
type HTTPCondition ¶
HTTPCondition is a condition based on http.
type ModelCondition ¶
type ModelCondition struct {
Condition `yaml:",inline" mapstructure:",squash"`
}
ModelCondition is a condition based on a model.
type ModelSeriesCondition ¶
type ModelSeriesCondition struct {
Condition `yaml:",inline" mapstructure:",squash"`
}
ModelSeriesCondition is a condition based on a model series.
type SnmpCondition ¶
type SnmpCondition struct { Condition `yaml:",inline" mapstructure:",squash"` network.SNMPGetConfiguration `yaml:",inline" mapstructure:",squash"` }
SnmpCondition is a condition based on snmp.
type VendorCondition ¶
type VendorCondition struct {
Condition `yaml:",inline" mapstructure:",squash"`
}
VendorCondition is a condition based on a vendor.
Click to show internal directories.
Click to hide internal directories.