validator

package
v0.19.1300 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const MinCronInterval = 5 * time.Minute

MinCronInterval is the minimum allowed interval between consecutive fires of any user-defined cron schedule (e.g. action triggers, drift scans).

Variables

This section is empty.

Functions

func CronSchedule

func CronSchedule(v *validator.Validate, val string) error

func FormatValidationError

func FormatValidationError(err error) error

FormatValidationError formats validation errors with custom messages for specific tags

func InterpolatedName

func InterpolatedName(v *validator.Validate, val string) error

func MinScheduleInterval added in v0.19.986

func MinScheduleInterval(sched cron.Schedule) time.Duration

MinScheduleInterval returns the smallest gap between two consecutive fires of the given schedule.

func New

func New() *validator.Validate

Types

This section is empty.

Jump to

Keyboard shortcuts

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