lifecycle

package
v0.0.0-...-a15f78a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CcName = "_lifecycle"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApproveRequest

type ApproveRequest struct {
	Name              string
	PackageID         string
	InitRequired      bool
	SignaturePolicy   []byte
	Sequence          int64
	Version           string
	EndorsementPlugin string
	ValidationPlugin  string
}

type ApproveResponse

type ApproveResponse struct {
	TxID      string
	Responses []*pb.ProposalResponse
	Proposal  *pb.Proposal
}

type Client

type Client interface {
	QueryInstalled(ctx context.Context) ([]InstalledChaincode, error)
	QueryApproved(ctx context.Context, channelName, chaincodeName string) (*lb.QueryApprovedChaincodeDefinitionResult, error)
	QueryCommitted(ctx context.Context, channelName string) ([]*lb.QueryChaincodeDefinitionsResult_ChaincodeDefinition, error)

	ApproveForMyOrg(ctx context.Context, channelName string, req *ApproveRequest, endCli ...pb.EndorserClient) (string, *common.Envelope, error)
	CheckCommitReadiness(ctx context.Context, channelName string, args *lb.CheckCommitReadinessArgs) (*lb.CheckCommitReadinessResult, error)
	Commit(ctx context.Context, channelName string, args *lb.CommitChaincodeDefinitionArgs, endCli ...pb.EndorserClient) (string, *common.Envelope, error)

	Install(ctx context.Context, pkg []byte) error
}

func NewClient

func NewClient(enCli pb.EndorserClient, id protoutil.Signer) Client

type InstalledChaincode

type InstalledChaincode struct {
	PackageID string
	Label     string
}

Jump to

Keyboard shortcuts

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