xpermissions

package
v0.0.0-...-89edfd8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acl

type Acl struct {
	Groups  map[string][]string
	Actions []string
}

func (*Acl) Can

func (acl *Acl) Can(group string, action string) bool

func (*Acl) Clear

func (acl *Acl) Clear()

func (*Acl) Grant

func (acl *Acl) Grant(group string, actions ...string)

func (*Acl) Not

func (acl *Acl) Not(group string, action string) bool

func (*Acl) Revoke

func (acl *Acl) Revoke(group string, actions ...string)

Jump to

Keyboard shortcuts

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