acl

package
Version: v0.0.0-...-275105e Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2017 License: Apache-2.0 Imports: 1 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 *querypb.VTGateCallerID) 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 *querypb.VTGateCallerID) 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 *querypb.VTGateCallerID) 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL