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 always 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 always deny access request.
func (DenyAllACL) IsMember ¶
func (acl DenyAllACL) IsMember(principal *querypb.VTGateCallerID) bool
IsMember implements ACL.IsMember and always return false.
Click to show internal directories.
Click to hide internal directories.