mutate

package
v0.17.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMutatorNotEnabled = herodot.DefaultError{
	ErrorField:  "mutator matching this route is misconfigured or disabled",
	CodeField:   http.StatusInternalServerError,
	StatusField: http.StatusText(http.StatusInternalServerError),
}

Functions

This section is empty.

Types

type CredentialsCookiesConfig

type CredentialsCookiesConfig struct {
	Cookies map[string]string `json:"cookies"`
}

type CredentialsIDTokenConfig

type CredentialsIDTokenConfig struct {
	Audience []string `json:"aud"`
}

type Mutator

type Mutator interface {
	Mutate(r *http.Request, session *authn.AuthenticationSession, config json.RawMessage, _ pipeline.Rule) (http.Header, error)
	GetID() string
	Validate() error
}

type MutatorBroken

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

func NewMutatorBroken

func NewMutatorBroken(enabled bool) *MutatorBroken

func (*MutatorBroken) GetID

func (a *MutatorBroken) GetID() string

func (*MutatorBroken) Mutate

func (*MutatorBroken) Validate

func (a *MutatorBroken) Validate() error

type MutatorCookie

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

func NewMutatorCookie

func NewMutatorCookie(c configuration.Provider) *MutatorCookie

func (*MutatorCookie) GetID

func (a *MutatorCookie) GetID() string

func (*MutatorCookie) Mutate

func (*MutatorCookie) Validate

func (a *MutatorCookie) Validate() error

func (*MutatorCookie) WithCache

func (a *MutatorCookie) WithCache(t *template.Template)

type MutatorHeader

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

func NewMutatorHeader

func NewMutatorHeader(c configuration.Provider) *MutatorHeader

func (*MutatorHeader) GetID

func (a *MutatorHeader) GetID() string

func (*MutatorHeader) Mutate

func (*MutatorHeader) Validate

func (a *MutatorHeader) Validate() error

func (*MutatorHeader) WithCache

func (a *MutatorHeader) WithCache(t *template.Template)

type MutatorHeaderConfig

type MutatorHeaderConfig struct {
	Headers map[string]string `json:"headers"`
}

type MutatorIDToken

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

func (*MutatorIDToken) GetID

func (a *MutatorIDToken) GetID() string

func (*MutatorIDToken) Mutate

func (*MutatorIDToken) Validate

func (a *MutatorIDToken) Validate() error

type MutatorIDTokenRegistry

type MutatorIDTokenRegistry interface {
	credentials.SignerRegistry
}

type MutatorNoop

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

func NewMutatorNoop

func NewMutatorNoop(c configuration.Provider) *MutatorNoop

func (*MutatorNoop) GetID

func (a *MutatorNoop) GetID() string

func (*MutatorNoop) Mutate

func (*MutatorNoop) Validate

func (a *MutatorNoop) Validate() error

type Registry

type Registry interface {
	AvailablePipelineMutators() []string
	PipelineMutator(string) (Mutator, error)
}

Jump to

Keyboard shortcuts

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