validation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(in *ValidationInput) error

func Validations

func Validations() []string

Types

type ValidationFunc

type ValidationFunc func(string) (string, error)

func Get

func Get(name string) (ValidationFunc, bool)

type ValidationInput

type ValidationInput struct {
	Attempts    int
	Validations []ValidationFunc
	Send        chan<- string
	Done        <-chan bool
	Logger      logr.Logger
	Path        string
}

Jump to

Keyboard shortcuts

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