string

package
v1.30.6 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 13 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCron

func IsCron() validator.String

func IsCronSchedule added in v1.30.5

func IsCronSchedule() validator.String

IsCronSchedule returns a validator which ensures that any configured string value is ONE of the following (cannot mix formats):

1. A standard cron expression with:

  • minutes limited to 00, 15, 30, or 45
  • hours in 2-digit format (00-23) Example: "30 09 * * MON"

2. A predefined descriptor:

  • @hourly - Run once an hour at the beginning of the hour
  • @daily - Run once a day at midnight
  • @midnight - Same as @daily
  • @weekly - Run once a week at midnight on Sunday
  • @monthly - Run once a month at midnight of first day
  • @yearly - Run once a year at midnight of Jan 1
  • @annually - Same as @yearly
  • @every <duration> - Run at fixed intervals (e.g. @every 1h30m) Duration must be positive (> 0)

func IsCronScheduleTimezone added in v1.30.6

func IsCronScheduleTimezone() validator.String

IsCronScheduleTimezone returns a validator which ensures that any configured string value is a valid IANA timezone name (e.g., UTC, America/New_York, Europe/London).

func IsEmail

func IsEmail() validator.String

func IsURLHttpOrHttps

func IsURLHttpOrHttps() validator.String

func ProjectKey added in v1.25.2

func ProjectKey() validator.String

func RegexNotMatches added in v1.25.5

func RegexNotMatches(regexp *regexp.Regexp, message string) validator.String

RegexNotMatches returns an AttributeValidator which ensures that any configured attribute value:

Null (unconfigured) and unknown (known after apply) values are skipped. Optionally an error message can be provided to return something friendlier than "value must not match regular expression 'regexp'".

func RepoKey added in v1.25.3

func RepoKey() validator.String

Types

This section is empty.

Jump to

Keyboard shortcuts

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