validators

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 10 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

This section is empty.

Variables

This section is empty.

Functions

func ValidateConfig

func ValidateConfig(config *config.UncorsConfig, fs afero.Fs) error

Types

type CacheConfigValidator

type CacheConfigValidator struct {
	Field string
	Value config.CacheConfig
}

func (*CacheConfigValidator) IsValid

func (c *CacheConfigValidator) IsValid(errors *validate.Errors)

type CacheValidator

type CacheValidator struct {
	Field string
	Value string
}

func (*CacheValidator) IsValid

func (c *CacheValidator) IsValid(errors *validate.Errors)

type MappingValidator

type MappingValidator struct {
	Field string
	Value config.Mapping
	Fs    afero.Fs
}

func (*MappingValidator) IsValid

func (m *MappingValidator) IsValid(errors *validate.Errors)

type MockValidator

type MockValidator struct {
	Field string
	Value config.Mock
	Fs    afero.Fs
}

func (*MockValidator) IsValid

func (m *MockValidator) IsValid(errors *validate.Errors)

type OptionsHandlingValidator added in v0.5.0

type OptionsHandlingValidator struct {
	Field string
	Value config.OptionsHandling
}

func (*OptionsHandlingValidator) IsValid added in v0.5.0

func (o *OptionsHandlingValidator) IsValid(errors *validate.Errors)

type ProxyValidator

type ProxyValidator struct {
	Field string
	Value string
}

func (*ProxyValidator) IsValid

func (p *ProxyValidator) IsValid(errors *validate.Errors)

type RequestMatcherValidator added in v0.6.0

type RequestMatcherValidator struct {
	Field string
	Value config.RequestMatcher
}

func (*RequestMatcherValidator) IsValid added in v0.6.0

func (r *RequestMatcherValidator) IsValid(errors *validate.Errors)

type ResponseValidator

type ResponseValidator struct {
	Field string
	Value config.Response
	Fs    afero.Fs
}

func (*ResponseValidator) IsValid

func (r *ResponseValidator) IsValid(errors *validate.Errors)

type RewritingOptionValidator added in v0.4.0

type RewritingOptionValidator struct {
	Field string
	Value config.RewritingOption
}

func (*RewritingOptionValidator) IsValid added in v0.4.0

func (m *RewritingOptionValidator) IsValid(errors *validate.Errors)

type ScriptValidator added in v0.6.0

type ScriptValidator struct {
	Field string
	Value config.Script
	Fs    afero.Fs
}

func (*ScriptValidator) IsValid added in v0.6.0

func (s *ScriptValidator) IsValid(errors *validate.Errors)

type StaticValidator

type StaticValidator struct {
	Field string
	Value config.StaticDirectory
	Fs    afero.Fs
}

func (*StaticValidator) IsValid

func (s *StaticValidator) IsValid(errors *validate.Errors)

type TLSValidator added in v0.6.0

type TLSValidator struct {
	Field   string
	Mapping config.Mapping
	Fs      afero.Fs
}

func (*TLSValidator) IsValid added in v0.6.0

func (v *TLSValidator) IsValid(errors *validate.Errors)

type UncorsConfigValidator

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

func (*UncorsConfigValidator) IsValid

func (u *UncorsConfigValidator) IsValid(errors *validate.Errors)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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