validator

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REGEX_DATA_SOURCE_GROUP_NAME           = "[a-zA-Z0-9_\\- ]+$"
	REGEX_INVALID_DATA_SOURCE_DISPLAY_NAME = "[^a-zA-Z: _0-9\\(\\)\\.#\\+@<>\n]"
	REGEX_INVALID_DATA_SOURCE_NAME         = "[^a-zA-Z $#@_0-9:&\\.\\+\n]"
)
View Source
const (
	REGEX_INSTANCE_NAME               = "^[a-z:A-Z0-9\\._\\-]+$"
	REGEX_INVALID_DEVICE_DISPLAY_NAME = "[*<?,;`\\n]"
)
View Source
const (
	INVALID_REGEX    = "[^a-zA-Z $#@_0-9:&\\.\\+\n]"
	REGEX_ID_9_DIGIT = "^[0-9]{0,9}$"
	REGEX_ID_EXPO    = "^e\\^\\-?\\d*?$"
)
View Source
const REGEX_DATA_POINT = "^[a-zA-Z_0-9]+$"
View Source
const (
	VALID_REGEX_RESOURCE_NAME = "^[a-z:A-Z0-9\\._\\-]+$"
)

Variables

This section is empty.

Functions

func CheckDSDisplayNameValidation

func CheckDSDisplayNameValidation(dsDisplay string) string

func CheckDataSourceNameValidation

func CheckDataSourceNameValidation(dsName string) string

func CheckInstanceNameValidation

func CheckInstanceNameValidation(insName string) string

func CheckInstancePropertiesValidation

func CheckInstancePropertiesValidation(insProp map[string]string) string

func CheckResourceIDValidation

func CheckResourceIDValidation(resId map[string]string) string

func CheckResourceNameValidation

func CheckResourceNameValidation(isCreate bool, resName string) string

func CheckResourcePropertiesValidation

func CheckResourcePropertiesValidation(resProp map[string]string) string

func ValidateAttributes

func ValidateAttributes(rInput model.ResourceInput, dsInput model.DatasourceInput, instInput model.InstanceInput, dpInput model.DataPointInput) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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