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 passed in as `requestHeaders`.
// It also returns a list of headers that were added or modified as a slice of key-value pairs.
Do(ctx context.Context, requestHeaders map[string]string, mutatedBody []byte) ([]internalapi.Header, 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 ¶
NewHandler returns a new implementation of Handler based on the configuration.
Click to show internal directories.
Click to hide internal directories.