memory

package
v0.0.0-...-db14010 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 NewDriver

func NewDriver() *Driver

NewDriver creates a new Driver

func (*Driver) Begin

func (d *Driver) Begin() error

Begin - Check github.com/txgruppi/acl.Driver.Begin

func (*Driver) End

func (d *Driver) End() error

End - Check github.com/txgruppi/acl.Driver.End

func (*Driver) GetAction

func (d *Driver) GetAction(id string) (acl.Action, error)

GetAction - Check github.com/txgruppi/acl.Driver.GetAction

func (*Driver) GetActor

func (d *Driver) GetActor(id string) (acl.Actor, error)

GetActor - Check github.com/txgruppi/acl.Driver.GetActor

func (*Driver) IsAllowed

func (d *Driver) IsAllowed(actor acl.Actor, action acl.Action) (bool, error)

IsAllowed - Check github.com/txgruppi/acl.Driver.IsAllowed

func (*Driver) Set

func (d *Driver) Set(actor acl.Actor, action acl.Action, policy acl.Policy) error

Set - Check github.com/txgruppi/acl.Driver.Set

func (*Driver) SetDefaultPolicy

func (d *Driver) SetDefaultPolicy(policy acl.Policy) error

SetDefaultPolicy - Check github.com/txgruppi/acl.Driver.SetDefaultPolicy

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL