aclmgmt

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

This section is empty.

Types

type ACLProvider

type ACLProvider interface {
	//checkacl使用
	//IDFIN。IDinfo是一个对象,如SignedProposal,其中
	//可以提取ID以根据策略进行测试
	CheckACL(resName string, channelID string, idinfo interface{}) error
}

func NewACLProvider

func NewACLProvider(rg ResourceGetter) ACLProvider

aclprovider由两个提供程序组成,分别提供了一个和一个默认的提供程序(1.0 acl管理 使用ChannelReader和ChannelWriter)。如果提供的提供程序为nil,则基于资源 已创建ACL提供程序。

func NewDefaultACLProvider

func NewDefaultACLProvider() ACLProvider

type InvalidIdInfo

type InvalidIdInfo string

无效信息

func (InvalidIdInfo) Error

func (e InvalidIdInfo) Error() string

type PolicyNotFound

type PolicyNotFound string

资源的PolicyNotFound缓存

func (PolicyNotFound) Error

func (e PolicyNotFound) Error() string

type ResourceGetter

type ResourceGetter func(channelID string) channelconfig.Resources

资源getter获取channelconfig。给定通道ID的资源

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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