Documentation ¶
Index ¶
- func ApproveForMyOrg(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func ApproveForMyOrg2(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func CheckCommittedReadiness(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func CheckCommittedReadiness2(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func Commit(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func Commit2(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func GetInstalledPackage(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, ...) (*peer.ProposalResponse, error)
- func GetInstalledPackage2(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, ...) (*peer.ProposalResponse, error)
- func Install(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, ...) (*peer.ProposalResponse, error)
- func Install2(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, ...) (*peer.ProposalResponse, error)
- func InternalApproveForMyOrg(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func NormalizePath(tYPE peer.ChaincodeSpec_Type, path string) (string, error)
- func Package(chainOpt chaincode.ChainOpt) ([]byte, error)
- func Package2(chainOpt chaincode.ChainOpt, outPutFile string) error
- func QueryApproved(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func QueryApproved2(opt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func QueryCommitted(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func QueryCommitted2(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, ...) (*peer.ProposalResponse, error)
- func QueryInstalled(mspOpt chaincode.MSPOpt, peer []chaincode.Endpoint) (*peer.ProposalResponse, error)
- func QueryInstalled2(mspOpt chaincode.MSPOpt, peer []chaincode.EndpointWithPath) (*peer.ProposalResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveForMyOrg ¶
func ApproveForMyOrg(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peers []chaincode.Endpoint, orderers []chaincode.Endpoint) (*peer.ProposalResponse, error)
ApproveForMyOrg approve for my org chainOpt -> need: Name,Version,Sequence optional: others
func ApproveForMyOrg2 ¶
func ApproveForMyOrg2( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peers []chaincode.EndpointWithPath, orderers []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
ApproveForMyOrg2 to ApproveForMyOrg
func CheckCommittedReadiness ¶
func CheckCommittedReadiness( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, pEER []chaincode.Endpoint, ) (*peer.ProposalResponse, error)
CheckCommittedReadiness check committed read readiness chainOpt need: Name, Sequence, Policy, optional: others
func CheckCommittedReadiness2 ¶
func CheckCommittedReadiness2( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peer []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
CheckCommittedReadiness2 to CheckCommittedReadiness
func Commit ¶
func Commit(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peers []chaincode.Endpoint, orderers []chaincode.Endpoint) (*peer.ProposalResponse, error)
Commit commit a chaincode chainOpt need: name,version,sequence optional: others
func Commit2 ¶
func Commit2( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peers []chaincode.EndpointWithPath, orderers []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
Commit2 to Commit
func GetInstalledPackage ¶
func GetInstalledPackage( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, peer []chaincode.Endpoint, ) (*peer.ProposalResponse, error)
GetInstalledPackage get installed package chainOpt just need PackageID
func GetInstalledPackage2 ¶
func GetInstalledPackage2( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, peer []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
GetInstalledPackage2 get installed package
func Install ¶
func Install( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, peers []chaincode.Endpoint, ) (*peer.ProposalResponse, error)
Install install a chaincode chainOpt need: path optional: others
func Install2 ¶
func Install2( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, peers []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
Install2 to Install
func InternalApproveForMyOrg ¶
func InternalApproveForMyOrg(chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peers []*client.PeerClient, orderers []*client.OrdererClient) (*peer.ProposalResponse, error)
func NormalizePath ¶
func NormalizePath(tYPE peer.ChaincodeSpec_Type, path string) (string, error)
NormalizePath get path for different language chaincode
func QueryApproved ¶
func QueryApproved( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peer []chaincode.Endpoint, ) (*peer.ProposalResponse, error)
QueryApproved query approved chaincode chainOpt just need Name , Sequence default last or specific number peerGrpcOpt Timeout is necessary channelID fabric channel name peerAddress peer address
func QueryApproved2 ¶
func QueryApproved2( opt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peer []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
QueryApproved2 query approved chaincode opt2 peer Grpc tls setting by path others -> QueryApproved
func QueryCommitted ¶
func QueryCommitted( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peer []chaincode.Endpoint, ) (*peer.ProposalResponse, error)
QueryCommitted query committed chainOpt optional: all
func QueryCommitted2 ¶
func QueryCommitted2( chainOpt chaincode.ChainOpt, mspOpt chaincode.MSPOpt, channelID string, peer []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
func QueryInstalled ¶
func QueryInstalled( mspOpt chaincode.MSPOpt, peer []chaincode.Endpoint, ) (*peer.ProposalResponse, error)
QueryInstalled query installed chaincode
func QueryInstalled2 ¶
func QueryInstalled2( mspOpt chaincode.MSPOpt, peer []chaincode.EndpointWithPath, ) (*peer.ProposalResponse, error)
QueryInstalled2 query installed chaincode
Types ¶
This section is empty.