Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizeUser ¶
type AuthorizeUser interface {
Username() string
}
AuthorizeUser - an interface for a user object.
type Authorizer ¶
type Authorizer interface {
Authorize(AuthorizeUser, string) (Decision, error)
}
Authorizer - authorizes users via the bundle runtime.
type Decision ¶
type Decision string
Decision - The outcome of the authorization check
const ( // DecisionAllowed - The authorizer has determined the action is allowed. DecisionAllowed Decision = "allowed" // DecisionDeny - The authorizer has determined the action is not allowed. DecisionDeny Decision = "deny" // DecisionNoOpinion - The authorizer has no opinion, // this should mean the action is not allowed. DecisionNoOpinion = "no opinion" )
Click to show internal directories.
Click to hide internal directories.