github.com/hyperledger-labs/bdls@v2.1.1+incompatible/core/chaincode/lifecycle/cache_internal_test.go (about)

     1  /*
     2  Copyright IBM Corp. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package lifecycle
     8  
     9  // Helpers to access unexported state.
    10  
    11  func SetChaincodeMap(c *Cache, channelID string, channelCache *ChannelCache) {
    12  	c.definedChaincodes[channelID] = channelCache
    13  }
    14  
    15  func GetChaincodeMap(c *Cache, channelID string) *ChannelCache {
    16  	return c.definedChaincodes[channelID]
    17  }
    18  
    19  func SetLocalChaincodesMap(c *Cache, localChaincodes map[string]*LocalChaincode) {
    20  	c.localChaincodes = localChaincodes
    21  }