acl

package
v2.2.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 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 false.

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