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

package acl

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

Index

Package Files

acl.go

type ACL Uses

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 Uses

type AcceptAllACL struct{}

AcceptAllACL implements ACL interface and alway accept access request.

func (AcceptAllACL) IsMember Uses

func (acl AcceptAllACL) IsMember(principal *querypb.VTGateCallerID) bool

IsMember implements ACL.IsMember and always return true.

type DenyAllACL Uses

type DenyAllACL struct{}

DenyAllACL implements ACL interface and alway deny access request.

func (DenyAllACL) IsMember Uses

func (acl DenyAllACL) IsMember(principal *querypb.VTGateCallerID) bool

IsMember implements ACL.IsMember and always return false.

type Factory Uses

type Factory interface {
    // New creates a new ACL instance.
    New(entries []string) (ACL, error)
}

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.