Documentation
¶
Index ¶
- Constants
- Variables
- type Data
- type Plugin
- func (p *Plugin) Execute(ctx context.Context, in appplugins.ExecInput) (*appplugins.Result, error)
- func (p *Plugin) MandatoryStages() []policy.Stage
- func (p *Plugin) MutatesMetadata() bool
- func (p *Plugin) MutatesRequestBody() bool
- func (p *Plugin) MutatesResponseBody() bool
- func (p *Plugin) Name() string
- func (p *Plugin) SupportedModes() []policy.Mode
- func (p *Plugin) SupportedProtocols() []appplugins.Protocol
- func (p *Plugin) SupportedStages() []policy.Stage
- func (p *Plugin) ValidateConfig(settings map[string]any) error
- type Rule
- type Settings
Constants ¶
View Source
const PluginName = "regex_replace"
Variables ¶
View Source
var ( ErrNoRules = errors.New("regex_replace: at least one rule is required") ErrInvalidTarget = errors.New("regex_replace: target must be one of request, response") ErrEmptyPattern = errors.New("regex_replace: rule pattern must not be empty") ErrBadPattern = errors.New("regex_replace: invalid regular expression") )
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) Execute ¶
func (p *Plugin) Execute(ctx context.Context, in appplugins.ExecInput) (*appplugins.Result, error)
func (*Plugin) MandatoryStages ¶
func (*Plugin) MutatesMetadata ¶
func (*Plugin) MutatesRequestBody ¶
func (*Plugin) MutatesResponseBody ¶
func (*Plugin) SupportedModes ¶
func (*Plugin) SupportedProtocols ¶
func (p *Plugin) SupportedProtocols() []appplugins.Protocol
func (*Plugin) SupportedStages ¶
Click to show internal directories.
Click to hide internal directories.