marblechaincodeutil

package
v0.0.0-...-579b097 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func SetMarblePolicy

func SetMarblePolicy(n *nwo.Network, orderer *nwo.Orderer, channelID, chaincodeName, marblePolicy string, peer *nwo.Peer)

SetMarblePolicy invokes marbles_private chaincode to update a marble's state-based endorsement policy

func TransferMarble

func TransferMarble(n *nwo.Network, orderer *nwo.Orderer, channelID, chaincodeName, marbleOwner string, peer *nwo.Peer)

TransferMarble invokes marbles_private chaincode to transfer marble's ownership

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL