validate

package
v0.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAsModbus

func ValidateAsModbus(raw []byte, parsed any) (bool, error)

ValidateAsModbus validates a file against modbus protocol binding json schema, but only if it determines that the file purports to describe a modbus device. Returns a flag indicating whether validate has been attempted and an error if it was not successful

func ValidateAsTM

func ValidateAsTM(_ []byte, parsed any) error

func ValidateAsTmcImportable

func ValidateAsTmcImportable(raw []byte, parsed any) (*model.ThingModel, error)

func ValidateThingModel

func ValidateThingModel(raw []byte) (*model.ThingModel, error)

ValidateThingModel validates the presence of the mandatory fields in the TM to be imported. Returns parsed *model.ThingModel, where the author name, manufacturer name, and mpn have been sanitized for use in filenames

Types

This section is empty.

Jump to

Keyboard shortcuts

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