mock

package
v1.71.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoOpSSRFValidator

func NewNoOpSSRFValidator() validation.SSRFValidator

NewNoOpSSRFValidator creates a new NoOpSSRFValidator.

Types

type NoOpSSRFValidator

type NoOpSSRFValidator struct{}

NoOpSSRFValidator is a validator that allows all URLs. This is intended for testing purposes only.

func (*NoOpSSRFValidator) ValidateExternalURL

func (v *NoOpSSRFValidator) ValidateExternalURL(_ context.Context, _ string) error

ValidateExternalURL always returns nil, allowing all URLs.

Jump to

Keyboard shortcuts

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