aclmgmt

package
v2.0.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

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 NewACLProvider

func NewACLProvider(rg ResourceGetter, policyChecker policy.PolicyChecker) ACLProvider

ACLProvider consists of two providers, supplied one and a default one (1.0 ACL management using ChannelReaders and ChannelWriters). If supplied provider is nil, a resource based ACL provider is created.

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

type ResourceGetter

type ResourceGetter func(channelID string) channelconfig.Resources

resource getter gets channelconfig.Resources given channel ID

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
Package roesources contains resource names used in fabric for ACL checks.
Package roesources contains resource names used in fabric for ACL checks.

Jump to

Keyboard shortcuts

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