go-vitess.v1: gopkg.in/src-d/go-vitess.v1/vt/tableacl/simpleacl Index | Files

package simpleacl

import "gopkg.in/src-d/go-vitess.v1/vt/tableacl/simpleacl"

Index

Package Files

simpleacl.go

type Factory Uses

type Factory struct{}

Factory is responsible to create new ACL instance.

func (*Factory) New Uses

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

New creates a new ACL instance.

type SimpleACL Uses

type SimpleACL map[string]bool

SimpleACL keeps all entries in a unique in-memory list

func (SimpleACL) IsMember Uses

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

IsMember checks the membership of a principal in this ACL

Package simpleacl imports 2 packages (graph) and is imported by 2 packages. Updated 2019-06-13. Refresh now. Tools for package owners.