validators

package
v12.50.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 5

Documentation

Overview

Package validators provides basic KNF validators

Index

Constants

This section is empty.

Variables

View Source
var (
	// Empty returns error if config property is empty
	Empty = validatorEmpty

	// NotContains returns error if config property doesn't contains value from given slice
	NotContains = validatorNotContains

	// Less returns error if config property is less than given integer
	Less = validatorLess

	// Greater returns error if config property is greater than given integer
	Greater = validatorGreater

	// Equals returns error if config property is equals to given string
	Equals = validatorEquals

	// NotLen returns error if config property have wrong size
	NotLen = validatorNotLen

	// NotPrefix returns error if config property doesn't have given prefix
	NotPrefix = validatorNotPrefix

	// NotPrefix returns error if config property doesn't have given suffix
	NotSuffix = validatorNotSuffix

	// TypeBool returns error if config property contains non-boolean value
	TypeBool = validatorTypeBool

	// TypeNum returns error if config property contains non-numeric (int/uint) value
	TypeNum = validatorTypeNum

	// TypeNum returns error if config property contains non-float value
	TypeFloat = validatorTypeFloat
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package fs provides KNF validators for checking file-system items
Package fs provides KNF validators for checking file-system items
Package network provides KNF validators for checking items related to network
Package network provides KNF validators for checking items related to network
Package regexp provides KNF validators with regular expressions
Package regexp provides KNF validators with regular expressions
Package system provides KNF validators for checking system items (user, groups, network interfaces)
Package system provides KNF validators for checking system items (user, groups, network interfaces)

Jump to

Keyboard shortcuts

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