validator

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	// JobNameSanitizer is a replacer that sanitizes job names before name
	// validation.
	JobNameSanitizer *strings.Replacer
}

Options is a struct that contains options for the validator.

type Validator

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

Validator validates API request payloads.

func New

func New(opts Options) *Validator

func (*Validator) JobName

func (v *Validator) JobName(name string) error

JobName validates a job name string.

Jump to

Keyboard shortcuts

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