tools

package
v0.0.0-...-51fd5d7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = map[string]string{
	"value":       ".1.3.6.1.4.1.31957.1.3.4.1.4",
	"alarm-state": ".1.3.6.1.4.1.31957.1.3.4.1.11",
	"category":    ".1.3.6.1.4.1.31957.1.3.4.1.8",
}
View Source
var (
	ErrNoCorrespondentOID = errors.New("no correspondent OID")
)
View Source
var Metering = map[string]string{
	"value":       ".1.3.6.1.4.1.31957.1.3.2.1.14",
	"alarm-state": ".1.3.6.1.4.1.31957.1.3.2.1.13",
	"category":    ".1.3.6.1.4.1.31957.1.3.2.1.12",
}
View Source
var Script = map[string]string{
	"ident":    ".1.3.6.1.4.1.31957.1.6.1.1.3",
	"answered": ".1.3.6.1.4.1.31957.1.6.1.1.4",
}
View Source
var Status = map[string]string{
	"value":       ".1.3.6.1.4.1.31957.1.3.3.1.9",
	"alarm-state": ".1.3.6.1.4.1.31957.1.3.3.1.10",
	"category":    ".1.3.6.1.4.1.31957.1.3.3.1.8",
}
View Source
var System = map[string]string{
	"serial-number": ".1.3.6.1.4.1.31957.1.1.1.0",
	"ident":         ".1.3.6.1.4.1.31957.1.1.2.0",
	"temperature":   ".1.3.6.1.4.1.31957.1.1.16.0",
	"power-supply":  ".1.3.6.1.4.1.31957.1.1.17.0",
}
View Source
var Virtual = map[string]string{
	"value":       ".1.3.6.1.4.1.31957.1.3.6.1.14",
	"alarm-state": ".1.3.6.1.4.1.31957.1.3.6.1.13",
	"category":    ".1.3.6.1.4.1.31957.1.3.6.1.12",
}

Functions

func GetCommandValueOID

func GetCommandValueOID(port int16) string

func GetMeteringValueOID

func GetMeteringValueOID(port int16) string

func GetPortAlarmOID

func GetPortAlarmOID(portType flexlegacy.PortType, port int16) (oid string, err error)

func GetPortCategoryAlarmOID

func GetPortCategoryAlarmOID(portType flexlegacy.PortType, port int16) (oid string, err error)

func GetPortValueOID

func GetPortValueOID(portType flexlegacy.PortType, port int16) (oid string, err error)

func GetScriptValueOID

func GetScriptValueOID(port int16) string

func GetStatusValueOID

func GetStatusValueOID(port int16) string

func GetVirtualValueOID

func GetVirtualValueOID(port int16) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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