go_study/fabric-main/core/aclmgmt/aclmgmt.go

26 lines
775 B
Go

/*
Copyright IBM Corp. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/
package aclmgmt
import (
"github.com/hyperledger/fabric/common/flogging"
)
var aclLogger = flogging.MustGetLogger("aclmgmt")
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
// CheckACLNoChannel checks the ACL for the resource for the local MSP
// using the idinfo. idinfo is an object such as SignedProposal
// from which an id can be extracted for testing against a policy.
CheckACLNoChannel(resName string, idinfo interface{}) error
}