backendauth

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// Do performs the backend auth, and make changes to the request headers and body mutations.
	Do(ctx context.Context, requestHeaders map[string]string, headerMut *extprocv3.HeaderMutation, bodyMut *extprocv3.BodyMutation) error
}

Handler is the interface that deals with the backend auth for a specific backend.

TODO: maybe this can be just "post-transformation" handler, as it is not really only about auth.

func NewHandler

func NewHandler(ctx context.Context, config *filterapi.BackendAuth) (Handler, error)

NewHandler returns a new implementation of Handler based on the configuration.

Jump to

Keyboard shortcuts

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