validators

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: MIT Imports: 10 Imported by: 0

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