simpleacl

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

Factory is responsible to create new ACL instance.

func (*Factory) New

func (factory *Factory) New(entries []string) (acl.ACL, error)

New creates a new ACL instance.

type SimpleACL

type SimpleACL map[string]bool

SimpleACL keeps all entries in a unique in-memory list

func (SimpleACL) IsMember

func (sacl SimpleACL) IsMember(principal *querypb.VTGateCallerID) bool

IsMember checks the membership of a principal in this ACL

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL