channel

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveChaincodeDefinition

func ApproveChaincodeDefinition(peers []*peer.Connection, o *orderer.Connection, channel string, sequence int64, name string, version string, packageID string) error

ApproveChaincodeDefinition approves a chaincode definition on a channel.

func CommitChaincodeDefinition

func CommitChaincodeDefinition(peers []*peer.Connection, o *orderer.Connection, channel string, sequence int64, name string, version string) error

CommitChaincodeDefinition commits a chaincode definition on a channel.

func CreateChannel

func CreateChannel(o *orderer.Connection, channel string, opts ...Option) error

CreateChannel creates a new channel on the specified ordering service.

func EvaluateTransaction

func EvaluateTransaction(peers []*peer.Connection, o *orderer.Connection, channel, chaincode, function string, args ...string) ([]byte, error)

EvaluateTransaction evaluates a transaction for a chaincode definition on a channel.

func SubmitTransaction

func SubmitTransaction(peers []*peer.Connection, o *orderer.Connection, channel, chaincode, function string, args ...string) ([]byte, error)

SubmitTransaction submits a transaction for a chaincode definition on a channel.

func UpdateChannel

func UpdateChannel(o *orderer.Connection, channel string, opts ...Option) error

UpdateChannel updates an existing channel on the specified ordering service.

Types

type Option

type Option func(*channelOperation) error

Option is a type representing an option for creating or updating a channel.

func AddAnchorPeer

func AddAnchorPeer(mspID string, hostname string, port int32) Option

AddAnchorPeer adds the specified anchor peer to the channel.

func AddMSPID

func AddMSPID(mspID string) Option

AddMSPID adds the specified MSP ID to the channel.

func AddMSPIDs

func AddMSPIDs(mspIDs ...string) Option

AddMSPIDs adds the specified MSP IDs to the channel.

func UsingIdentity

func UsingIdentity(identity *identity.Identity) Option

UsingIdentity uses the specified identity to create or update the channel.

func UsingMSPID

func UsingMSPID(mspID string) Option

UsingMSPID uses the specified MSP ID to create or update the channel.

func WithCapabilityLevel

func WithCapabilityLevel(capabilityLevel string) Option

WithCapabilityLevel set the specified capability level for the channel.

Jump to

Keyboard shortcuts

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