Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain represents a chain of authorizers. They are probed in order. Processing is stopped after the first authorizer returns without error and access is granted. If all authorizers fail, an error is returned and access is forbidden.
func New ¶
func New(authorizers ...authz.Authorizer) Chain
func (Chain) CheckPermission ¶
func (c Chain) CheckPermission(ctx context.Context, details *authz.RequestDetails, object authz.Object, entitlement authz.Entitlement) error
Click to show internal directories.
Click to hide internal directories.