finalizers

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FinalizerNoop                    = "noop"
	FinalizerJwt                     = "jwt"
	FinalizerHeader                  = "header"
	FinalizerCookie                  = "cookie"
	FinalizerOAuth2ClientCredentials = "oauth2_client_credentials" // nolint: gosec
)

Variables

View Source
var (
	ErrUnsupportedType = errors.New("finalizer type unsupported")
)

Functions

This section is empty.

Types

type Finalizer

type Finalizer interface {
	ID() string
	Execute(ctx heimdall.Context, sub *subject.Subject) error
	WithConfig(config map[string]any) (Finalizer, error)
	ContinueOnError() bool
}

func CreatePrototype

func CreatePrototype(id string, typ string, mConfig map[string]any) (Finalizer, error)

type TypeFactory

type TypeFactory func(id string, typ string, c map[string]any) (bool, Finalizer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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