Documentation ¶
Index ¶
- Constants
- func CheckDSDisplayNameValidation(dsDisplay string) string
- func CheckDataSourceNameValidation(dsName string) string
- func CheckInstanceNameValidation(insName string) string
- func CheckInstancePropertiesValidation(insProp map[string]string) string
- func CheckResourceIDValidation(resId map[string]string) string
- func CheckResourceNameValidation(isCreate bool, resName string) string
- func CheckResourcePropertiesValidation(resProp map[string]string) string
- func ValidateAttributes(rInput model.ResourceInput, dsInput model.DatasourceInput, ...) string
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 ValidateAttributes ¶
func ValidateAttributes(rInput model.ResourceInput, dsInput model.DatasourceInput, instInput model.InstanceInput, dpInput model.DataPointInput) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.