Documentation ¶
Index ¶
Constants ¶
View Source
const ( CHANNELREADERS = policies.ChannelApplicationReaders CHANNELWRITERS = policies.ChannelApplicationWriters )
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的资源
Source Files ¶
Click to show internal directories.
Click to hide internal directories.