union

package
v0.26.8 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 165

Documentation

Overview

Package union implements an authorizer that combines multiple subauthorizer. The union authorizer iterates over each subauthorizer and returns the first decision that is either an Allow decision or a Deny decision. If a subauthorizer returns a NoOpinion, then the union authorizer moves onto the next authorizer or, if the subauthorizer was the last authorizer, returns NoOpinion as the aggregate decision. I.e. union authorizer creates an aggregate decision and supports short-circuit allows and denies from subauthorizers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(authorizationHandlers ...authorizer.Authorizer) authorizer.Authorizer

New returns an authorizer that authorizes against a chain of authorizer.Authorizer objects

func NewRuleResolvers

func NewRuleResolvers(authorizationHandlers ...authorizer.RuleResolver) authorizer.RuleResolver

NewRuleResolvers returns an authorizer that authorizes against a chain of authorizer.Authorizer objects

Types

This section is empty.

Jump to

Keyboard shortcuts

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