acl

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 8

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.

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