acl

package
v2.0.0-beta.1+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2016 License: BSD-3-Clause 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 interface {
	// IsMember checks the membership of a principal in this ACL.
	IsMember(principal string) bool
}

ACL is an interface for Access Control List.

type AcceptAllACL

type AcceptAllACL struct{}

AcceptAllACL implements ACL interface and alway accept access request.

func (AcceptAllACL) IsMember

func (acl AcceptAllACL) IsMember(principal string) bool

IsMember implements ACL.IsMember and always return true.

type DenyAllACL

type DenyAllACL struct{}

DenyAllACL implements ACL interface and alway deny access request.

func (DenyAllACL) IsMember

func (acl DenyAllACL) IsMember(principal string) bool

IsMember implements ACL.IsMember and always return fasle.

type Factory

type Factory interface {
	// New creates a new ACL instance.
	New(entries []string) (ACL, error)
}

Factory is responsible to create new ACL instance.

Jump to

Keyboard shortcuts

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