Documentation ¶
Index ¶
- type Driver
- func (d *Driver) Begin() error
- func (d *Driver) End() error
- func (d *Driver) GetAction(id string) (acl.Action, error)
- func (d *Driver) GetActor(id string) (acl.Actor, error)
- func (d *Driver) IsAllowed(actor acl.Actor, action acl.Action) (bool, error)
- func (d *Driver) Set(actor acl.Actor, action acl.Action, policy acl.Policy) error
- func (d *Driver) SetDefaultPolicy(policy acl.Policy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
Driver is a 'in memory' ACL Driver
func (*Driver) SetDefaultPolicy ¶
SetDefaultPolicy - Check github.com/txgruppi/acl.Driver.SetDefaultPolicy
Click to show internal directories.
Click to hide internal directories.