authorizers

package
v0.4.1-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedAuthorizerType = errors.New("authorizer type unsupported")
)

Functions

This section is empty.

Types

type Authorizer

type Authorizer interface {
	Execute(heimdall.Context, *subject.Subject) error
	WithConfig(config map[string]any) (Authorizer, error)
}

func CreateAuthorizerPrototype

func CreateAuthorizerPrototype(id string, typ config.PipelineObjectType, config map[string]any) (Authorizer, error)

type AuthorizerTypeFactory

type AuthorizerTypeFactory func(
	id string,
	typ config.PipelineObjectType,
	config map[string]any,
) (bool, Authorizer, error)

Jump to

Keyboard shortcuts

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