deviceclass

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: BSD-2-Clause Imports: 27 Imported by: 0

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

func GetHierarchy() (hierarchy.Hierarchy, error)

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

type HTTPCondition struct {
	Condition `yaml:",inline" mapstructure:",squash"`
	URI       string
}

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.

Jump to

Keyboard shortcuts

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