github.com/kaituanwang/hyperledger@v2.0.1+incompatible/core/aclmgmt/aclmgmt.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package aclmgmt
     8  
     9  import (
    10  	"github.com/hyperledger/fabric/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  }