github.com/hechain20/hechain@v0.0.0-20220316014945-b544036ba106/core/aclmgmt/aclmgmt.go (about)

     1  /*
     2  Copyright hechain. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package aclmgmt
     8  
     9  import (
    10  	"github.com/hechain20/hechain/common/flogging"
    11  )
    12  
    13  var aclLogger = flogging.MustGetLogger("aclmgmt")
    14  
    15  type ACLProvider interface {
    16  	// CheckACL checks the ACL for the resource for the channel using the
    17  	// idinfo. idinfo is an object such as SignedProposal from which an
    18  	// id can be extracted for testing against a policy
    19  	CheckACL(resName string, channelID string, idinfo interface{}) error
    20  
    21  	// CheckACLNoChannel checks the ACL for the resource for the local MSP
    22  	// using the idinfo. idinfo is an object such as SignedProposal
    23  	// from which an id can be extracted for testing against a policy.
    24  	CheckACLNoChannel(resName string, idinfo interface{}) error
    25  }