validate

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoEndpointValidation

func DoEndpointValidation(r *resource, sni string, clusters *envoy_admin_v3.Clusters)

DoEndpointValidation implements the EndpointVerifier function type.

func MakeValidate

MakeValidate is a builtinextensiontemplate.PluginConstructor for a builtinextensiontemplate.EnvoyExtension.

Types

type EndpointValidator

type EndpointValidator func(*resource, string, *envoy_admin_v3.Clusters)

EndpointValidator allows us to inject a different function for tests.

type Message

type Message struct {
	Success         bool
	Message         string
	PossibleActions []string
}

type Messages

type Messages []Message

func (Messages) Errors

func (m Messages) Errors() Messages

func (Messages) Success

func (m Messages) Success() bool

type Validate

type Validate struct {
	extensioncommon.BasicExtensionAdapter
	// contains filtered or unexported fields
}

Validate contains input information about which proxy resources to validate and output information about resources it has validated.

func (*Validate) CanApply

func (p *Validate) CanApply(config *extensioncommon.RuntimeConfig) bool

CanApply determines if the extension can apply to the given extension configuration.

func (*Validate) GetMessages

func (v *Validate) GetMessages(validateEndpoints bool, endpointValidator EndpointValidator, clusters *envoy_admin_v3.Clusters) Messages

GetMessages returns the error based only on Validate's state.

func (*Validate) PatchCluster

func (*Validate) PatchFilter

Jump to

Keyboard shortcuts

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