Documentation ¶
Index ¶
- func AddMarble(n *nwo.Network, orderer *nwo.Orderer, ...)
- func AssertDoesNotExistInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertDoesNotExistInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertGetMarblesByRange(n *nwo.Network, channelID, chaincodeName, marbleRange, expectedMsg string, ...)
- func AssertInvokeChaincodeFails(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeInvoke, ...)
- func AssertMarblesPrivateDetailsHashMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertMarblesPrivateHashM(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertNoReadAccessToCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertNotPresentInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertNotPresentInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertOwnershipInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName, owner string, ...)
- func AssertPresentInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func AssertPresentInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, ...)
- func CheckPresentInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, ...) int
- func CheckPresentInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, ...) int
- func DeleteMarble(n *nwo.Network, orderer *nwo.Orderer, ...)
- func PurgeMarble(n *nwo.Network, orderer *nwo.Orderer, ...)
- func SetMarblePolicy(n *nwo.Network, orderer *nwo.Orderer, ...)
- func TransferMarble(n *nwo.Network, orderer *nwo.Orderer, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMarble ¶
func AddMarble(n *nwo.Network, orderer *nwo.Orderer, channelID, chaincodeName, marbleDetails string, peer *nwo.Peer)
AddMarble invokes marbles_private chaincode to add a marble
func AssertDoesNotExistInCollectionM ¶
func AssertDoesNotExistInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer)
AssertDoesNotExistInCollectionM asserts that the private data for given marble does not exist in collection 'readMarble' (i.e., is never created/has been deleted/has been purged)
func AssertDoesNotExistInCollectionMPD ¶
func AssertDoesNotExistInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer)
AssertDoesNotExistInCollectionMPD asserts that the private data for given marble does not exist in collection 'readMarblePrivateDetails' (i.e., is never created/has been deleted/has been purged)
func AssertGetMarblesByRange ¶
func AssertGetMarblesByRange(n *nwo.Network, channelID, chaincodeName, marbleRange, expectedMsg string, peer *nwo.Peer)
AssertGetMarblesByRange asserts that
func AssertInvokeChaincodeFails ¶
func AssertInvokeChaincodeFails(n *nwo.Network, peer *nwo.Peer, command commands.ChaincodeInvoke, expectedMessage string)
AssertInvokeChaincodeFails asserts that a chaincode invoke fails with a specified error message
func AssertMarblesPrivateDetailsHashMPD ¶
func AssertMarblesPrivateDetailsHashMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, expectedBytes []byte, peerList []*nwo.Peer)
AssertMarblesPrivateDetailsHashMPD asserts that getMarblePrivateDetailsHash is accessible from all peers that has the chaincode instantiated
func AssertMarblesPrivateHashM ¶
func AssertMarblesPrivateHashM(n *nwo.Network, channelID, chaincodeName, marbleName string, expectedBytes []byte, peerList []*nwo.Peer)
AssertMarblesPrivateHashM asserts that getMarbleHash is accessible from all peers that has the chaincode instantiated
func AssertNoReadAccessToCollectionMPD ¶
func AssertNoReadAccessToCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer)
AssertNoReadAccessToCollectionMPD asserts that the orgs of the given peers do not have read access to private data for the collection readMarblePrivateDetails
func AssertNotPresentInCollectionM ¶
func AssertNotPresentInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer)
AssertNotPresentInCollectionM asserts that the private data for given marble is NOT present in collection 'readMarble' at the given peers
func AssertNotPresentInCollectionMPD ¶
func AssertNotPresentInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer)
AssertNotPresentInCollectionMPD asserts that the private data for given marble is NOT present in collection 'readMarblePrivateDetails' at the given peers
func AssertOwnershipInCollectionM ¶
func AssertOwnershipInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName, owner string, peerList ...*nwo.Peer)
AssertOwnershipInCollectionM asserts that the private data for given marble is present in collection 'readMarble' at the given peers
func AssertPresentInCollectionM ¶
func AssertPresentInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer)
AssertPresentInCollectionM asserts that the private data for given marble is present in collection 'readMarble' at the given peers
func AssertPresentInCollectionMPD ¶
func AssertPresentInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer)
AssertPresentInCollectionMPD asserts that the private data for given marble is present in collection 'readMarblePrivateDetails' at the given peers
func CheckPresentInCollectionM ¶
func CheckPresentInCollectionM(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer) int
CheckPresentInCollectionM checks then number of peers that have the private data for given marble in collection 'readMarble'
func CheckPresentInCollectionMPD ¶
func CheckPresentInCollectionMPD(n *nwo.Network, channelID, chaincodeName, marbleName string, peerList ...*nwo.Peer) int
CheckPresentInCollectionMPD checks the number of peers that have the private data for given marble in collection 'readMarblePrivateDetails'
func DeleteMarble ¶
func DeleteMarble(n *nwo.Network, orderer *nwo.Orderer, channelID, chaincodeName, marbleDelete string, peer *nwo.Peer)
DeleteMarble invokes marbles_private chaincode to delete a marble
func PurgeMarble ¶
func PurgeMarble(n *nwo.Network, orderer *nwo.Orderer, channelID, chaincodeName, marblePurge string, peer *nwo.Peer)
PurgeMarble invokes marbles_private chaincode to purge a marble
Types ¶
This section is empty.