Documentation ¶
Index ¶
Constants ¶
View Source
const ( AuthorizerAllow = "allow" AuthorizerDeny = "deny" AuthorizerLocal = "local" AuthorizerCEL = "cel" AuthorizerRemote = "remote" )
Variables ¶
View Source
var (
ErrUnsupportedAuthorizerType = errors.New("authorizer type unsupported")
)
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer interface { ID() string Execute(ctx heimdall.Context, sub *subject.Subject) error WithConfig(config map[string]any) (Authorizer, error) ContinueOnError() bool }
func CreatePrototype ¶
func CreatePrototype(ctx CreationContext, id string, typ string, config map[string]any) (Authorizer, error)
type CreationContext ¶
type Expression ¶
type TypeFactory ¶
type TypeFactory func(ctx CreationContext, id string, typ string, config map[string]any) (bool, Authorizer, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.