responsereceived

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DestinationEndpointServedVerifierType is the ResponseReceived type that is used in plugins registry.
	DestinationEndpointServedVerifierType = "destination-endpoint-served-verifier"
)

Variables

This section is empty.

Functions

func DestinationEndpointServedVerifierFactory

func DestinationEndpointServedVerifierFactory(name string, _ *json.Decoder, _ fwkplugin.Handle) (fwkplugin.Plugin, error)

DestinationEndpointServedVerifierFactory defines the factory function for DestinationEndpointServedVerifier.

Types

type DestinationEndpointServedVerifier

type DestinationEndpointServedVerifier struct {
	// contains filtered or unexported fields
}

DestinationEndpointServedVerifier is a test-only plugin for conformance tests. It verifies that the request was served by the expected endpoint. It works by reading Envoy's dynamic metadata, which is passed in the Response.ReqMetadata field. This metadata should contain the address of the backend endpoint that served the request. The verifier then writes this address to the "x-conformance-test-served-endpoint" response header. The conformance test client can then validate this header to ensure the request was routed correctly.

func NewDestinationEndpointServedVerifier

func NewDestinationEndpointServedVerifier() *DestinationEndpointServedVerifier

func (*DestinationEndpointServedVerifier) ResponseHeader

ResponseHeader is the handler for the ResponseHeader extension point.

func (*DestinationEndpointServedVerifier) TypedName

TypedName returns the type and name tuple of this plugin instance.

func (*DestinationEndpointServedVerifier) WithName

WithName sets the name of the filter.

Jump to

Keyboard shortcuts

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