Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer interface { // Authorize retrieves a principal from the provided Context and asserts that // it has the specified Role with the specified scope. If it does not, // implementations MUST return a *meta.ErrAuthorization error. Authorize(ctx context.Context, roles libAuthz.Role, scope string) error }
Authorizer is the public interface for the component returned by the NewAuthorizer function.
func NewAuthorizer ¶
func NewAuthorizer(roleAssignmentsStore authz.RoleAssignmentsStore) Authorizer
NewAuthorizer returns a component that can authorize a request.
Click to show internal directories.
Click to hide internal directories.