Versions in this module Expand all Collapse all v0 v0.0.1 Jan 4, 2024 v0.0.0 Jul 7, 2023 Changes in this version + func Approve(ctx context.Context, connection grpc.ClientConnInterface, ...) error + func CheckCommitReadiness(ctx context.Context, connection grpc.ClientConnInterface, ...) (*lifecycle.CheckCommitReadinessResult, error) + func Commit(ctx context.Context, connection grpc.ClientConnInterface, ...) error + func GetInstalled(ctx context.Context, connection grpc.ClientConnInterface, ...) ([]byte, error) + func GetPackageID(label string, ccInstallPkg []byte) string + func Install(ctx context.Context, connection grpc.ClientConnInterface, ...) (*lifecycle.InstallChaincodeResult, error) + func NewApplicationPolicy(signaturePolicy, channelConfigPolicy string) (*peer.ApplicationPolicy, error) + func PackageCCAAS(connection Connection, metadata Metadata, tmpPath, filename string) error + func PackageID(packageReader io.Reader) (string, error) + func QueryApproved(ctx context.Context, connection grpc.ClientConnInterface, ...) (*lifecycle.QueryApprovedChaincodeDefinitionResult, error) + func QueryCommitted(ctx context.Context, connection grpc.ClientConnInterface, ...) (*lifecycle.QueryChaincodeDefinitionsResult, error) + func QueryCommittedWithName(ctx context.Context, connection grpc.ClientConnInterface, ...) (*lifecycle.QueryChaincodeDefinitionResult, error) + func QueryInstalled(ctx context.Context, connection grpc.ClientConnInterface, ...) (*lifecycle.QueryInstalledChaincodesResult, error) + func SignaturePolicyEnvelopeToString(policy *cb.SignaturePolicyEnvelope) (string, error) + func ValidateLabel(label string) error + type ChaincodePackageMetadata struct + Label string + Path string + Type string + func ParseChaincodePackage(source []byte) (*ChaincodePackageMetadata, []byte, error) + type Connection struct + Address string + DialTimeout string + TLSRequired bool + type Definition struct + ApplicationPolicy *peer.ApplicationPolicy + ChannelName string + Collections *peer.CollectionConfigPackage + EndorsementPlugin string + InitRequired bool + Name string + PackageID string + Sequence int64 + ValidationPlugin string + Version string + type Metadata struct + Label string + Type string