Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2023 Changes in this version + const MaxDataModelHeaderLength + const MaxDataModelNameLength + const MaxDataModelRowIDLength + const MaxEntitySetDataModelNameLength + const MaxResNameLength + const MaxSubmissionDescLength + const MaxSubmissionNameLength + const MaxSubmissionNameSuffixLength + const MaxWorkspaceDescLength + const MinDataModelNameLength + const MinResNameLength + const MinSubmissionNameLength + const MinSubmissionNameSuffixLength + const MinWorkspaceDescLength + var DataModelHeaderReg = regexp.MustCompile("^[0-9a-zA-Z_][0-9a-zA-Z-_]*$") + var DataModelNameReg = regexp.MustCompile("^[0-9a-zA-Z_][0-9a-zA-Z-_]*$") + var ResNameRegex = regexp.MustCompile(`^[\p{Han}A-Za-z0-9][-_\p{Han}A-Za-z0-9]*$`) + func RegisterValidators() error + func Validate(s interface{}) error + func ValidateDataModelNameInString(name string) bool + func ValidateNFSMountPathInString(p string) bool + func ValidateResNameInString(name string) bool + func ValidateWorkspaceDescInString(desc string) bool