validationrule

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationRule

type ValidationRule struct {
	// contains filtered or unexported fields
}

func New

func New(name string, scope config.ValidationScope) *ValidationRule

func (*ValidationRule) AddValidator

func (r *ValidationRule) AddValidator(newValidator validator.Validator, additionalDetails string)

func (*ValidationRule) Name

func (r *ValidationRule) Name() string

func (*ValidationRule) Scope

func (*ValidationRule) ValidationTexts

func (r *ValidationRule) ValidationTexts() []string

func (*ValidationRule) Validators

func (r *ValidationRule) Validators() []ValidatorWithDetails

type ValidatorWithDetails

type ValidatorWithDetails interface {
	validator.Validator
	AdditionalDetails() string
	Name() string
}

Jump to

Keyboard shortcuts

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