aclmgmt

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func RegisterACLProvider

func RegisterACLProvider(prov ACLProvider)

---------- ACLProvider intialized once SCCs are brought up by peer --------- RegisterACLProvider will be called to register an ACLProvider. Users can write their own ACLProvider and register. If not provided, the standard resource based ACLProvider will be created and registered

Types

type ACLProvider

type ACLProvider interface {
	//CheckACL checks the ACL for the resource for the channel using the
	//idinfo. idinfo is an object such as SignedProposal from which an
	//id can be extracted for testing against a policy
	CheckACL(resName string, channelID string, idinfo interface{}) error
}

func GetACLProvider

func GetACLProvider() ACLProvider

GetACLProvider returns ACLProvider

type InvalidIdInfo

type InvalidIdInfo string

InvalidIdInfo

func (InvalidIdInfo) Error

func (e InvalidIdInfo) Error() string

type PolicyNotFound

type PolicyNotFound string

PolicyNotFound cache for resource

func (PolicyNotFound) Error

func (e PolicyNotFound) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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