envoy

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEgressOKResponse

func CreateEgressOKResponse(jwtConfig *wirepact.JWTConfig, userID string, headersToRemove []string) (*auth.CheckResponse, error)

CreateEgressOKResponse creates an outbound OK response by encoding the given userID with the given jwtConfig and then returning an auth result that adds the WirePact JWT header.

func CreateForbiddenResponse

func CreateForbiddenResponse(reason string) *auth.CheckResponse

CreateForbiddenResponse creates a forbidden response for the up/downstream with the given reason.

func CreateIngressOKResponse

func CreateIngressOKResponse(headersToAdd []*core.HeaderValue, headersToRemove []string) *auth.CheckResponse

CreateIngressOKResponse creates an outbound OK response by encoding the given userID with the given jwtConfig and then returning an auth result that adds the WirePact JWT header.

func CreateNoopOKResponse

func CreateNoopOKResponse() *auth.CheckResponse

CreateNoopOKResponse creates a NOOP response for envoy (meaning that no headers are modified or removed).

Types

This section is empty.

Jump to

Keyboard shortcuts

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