import "gopkg.in/src-d/go-vitess.v1/vt/tableacl/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 struct{}
AcceptAllACL implements ACL interface and alway accept access request.
func (acl AcceptAllACL) IsMember(principal *querypb.VTGateCallerID) bool
IsMember implements ACL.IsMember and always return true.
type DenyAllACL struct{}
DenyAllACL implements ACL interface and alway deny access request.
func (acl DenyAllACL) IsMember(principal *querypb.VTGateCallerID) bool
IsMember implements ACL.IsMember and always return false.
Factory is responsible to create new ACL instance.
Package acl imports 1 packages (graph) and is imported by 7 packages. Updated 2019-07-20. Refresh now. Tools for package owners.