Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
Authorizer the component in charge of checking whether a user can access a given resource.
func NewAuthorizer ¶
func NewAuthorizer(configuration schema.AccessControlConfiguration) *Authorizer
NewAuthorizer create an instance of authorizer with a given access control configuration.
func (*Authorizer) GetRequiredLevel ¶
func (p *Authorizer) GetRequiredLevel(subject Subject, requestURL url.URL) Level
GetRequiredLevel retrieve the required level of authorization to access the object.
Click to show internal directories.
Click to hide internal directories.