options

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const MaxRewriterChainExecutions int32 = 32

Variables

View Source
var (
	ErrInvalidName = errors.New("invalid rewriter name")
)

Functions

This section is empty.

Types

type Lookup

type Lookup map[string]*Options

Lookup is a map of Options keyed by Rule Name

func (Lookup) Validate

func (l Lookup) Validate() error

Validate returns an error if there are issues with any of the Rewriters options.

type Options

type Options struct {
	Name         string      `yaml:"-"` // populated from a Lookup key
	Instructions RewriteList `yaml:"instructions,omitempty"`
}

Options is a collection of Options pertaining to Request Rewriter Instructions

func New

func New() *Options

New returns a new Rewriter Options with default values

func (*Options) Clone

func (o *Options) Clone() *Options

Clone returns an exact copy of the subject *Options

func (*Options) Initialize

func (o *Options) Initialize(_ string) error

func (*Options) UnmarshalYAML

func (o *Options) UnmarshalYAML(unmarshal func(any) error) error

func (*Options) Validate

func (o *Options) Validate() (bool, error)

Validate returns an error if there are issues with the Rewriter options.

type RewriteList

type RewriteList [][]string

RewriteList is a list of Rewrite Instructions

func (RewriteList) Clone

func (rl RewriteList) Clone() RewriteList

Clone returns an exact copy of the subject RewriteList

Jump to

Keyboard shortcuts

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