simpleacl

package
v2.0.0-alpha2+incompat... Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2015 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

Factory is responsible to create new ACL instance.

func (*Factory) New

func (factory *Factory) New(entries []string) (acl.ACL, error)

New creates a new ACL instance.

type SimpleAcl

type SimpleAcl map[string]bool

SimpleAcl keeps all entries in a unique in-memory list

func (SimpleAcl) IsMember

func (sacl SimpleAcl) IsMember(principal string) bool

IsMember checks the membership of a principal in this ACL

Jump to

Keyboard shortcuts

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