validation

package
v0.52.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 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 Validator

type Validator struct {
	Localizer localize.Localizer
}

Validator is a type for validating service account configuration values

func (*Validator) ValidatePage added in v0.51.5

func (v *Validator) ValidatePage(val interface{}) error

ValidatePage validates if page number is valid

func (*Validator) ValidateShortDescription

func (v *Validator) ValidateShortDescription(val interface{}) error

ValidateShortDescription validates the short description value

func (*Validator) ValidateSize added in v0.51.5

func (v *Validator) ValidateSize(val interface{}) error

ValidateSize validates if a valid size is provided

func (*Validator) ValidateUUID

func (v *Validator) ValidateUUID(val interface{}) error

ValidateUUID validates if ID is a valid UUID

Jump to

Keyboard shortcuts

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