lifecycle

package
v0.0.0-...-75aeb17 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

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 Package

func Package(
	chainOpt chaincode.ChainOpt,
) ([]byte, error)

Package package a chaincode chainOpt need: path, type, label

func Package2

func Package2(
	chainOpt chaincode.ChainOpt,
	outPutFile string,
) error

Package2 to Package

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.

Jump to

Keyboard shortcuts

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