Categorygithub.com/UiP9AV6Y/go-k8s-user-authz
modulepackage
0.3.0
Repository: https://github.com/uip9av6y/go-k8s-user-authz.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AllowNoOpinion returns an [Authorizer] instance which turns any [DecisionNoOpinion] result into [DecisionAllow].
Decisionf is a wrapper around [fmt.Sprintf] using the provided parameters to return a [Decision].
InvertDecision returns an [Authorizer] instance which inverts the decision of the given instance.
RejectNoOpinion returns an [Authorizer] instance which turns any [DecisionNoOpinion] result into the provided denial reason.
RequireAll requires all given [Authorizer] instances to yield [DecisionAllow], otherwiese the first violation is returned.
RequireAny requires any of the given authorizer instances to yield [DecisionAllow] in order to return the same.

# Constants

DecisionAllow means that an authorizer decided to allow the user.
DecisionNoOpinion means that an authorizer has no opinion on whether to allow or deny a user.

# Variables

AlwaysAllowAuthorizer is an [Authorizer] implementation which returns [DecisionAllow] unconditionally.
AlwaysAllowAuthorizer is an [Authorizer] implementation which rejects any authorization request.
AlwaysAllowAuthorizer is an [Authorizer] implementation which returns [DecisionNoOpinion] unconditionally.

# Interfaces

Authorizer makes an authorization decision based on information gained by making zero or more calls to methods of the [user.Info] interface.

# Type aliases

AuthorizerDecision is a precomputed authorization decision.
The AuthorizerFunc type is an adapter to allow the use of ordinary functions as authorization evaluators.
Decision represents an authorization result.