Documentation ¶
Index ¶
- func CreateChannel(o *orderer.Orderer, channel string, opts ...Option) error
- func InstantiateChaincode(peers []*peer.Peer, o *orderer.Orderer, channel string, name string, ...) error
- func UpdateChannel(o *orderer.Orderer, channel string, opts ...Option) error
- func UpgradeChaincode(peers []*peer.Peer, o *orderer.Orderer, channel string, name string, ...) error
- type Option
- func AddAdmin(mspID string) Option
- func AddAdmins(mspIDs ...string) Option
- func AddAnchorPeer(mspID string, hostname string, port int32) Option
- func AddMSP(msp *msp.MSP) Option
- func AddMSPID(mspID string) Option
- func AddMSPIDs(mspIDs ...string) Option
- func AddMSPs(msps ...*msp.MSP) Option
- func AddReader(mspID string) Option
- func AddReaders(mspIDs ...string) Option
- func AddWriter(mspID string) Option
- func AddWriters(mspIDs ...string) Option
- func RemoveAdmin(mspID string) Option
- func RemoveAdmins(mspIDs ...string) Option
- func RemoveMSPID(mspID string) Option
- func RemoveMSPIDs(mspIDs ...string) Option
- func RemoveReader(mspID string) Option
- func RemoveReaders(mspIDs ...string) Option
- func RemoveWriter(mspID string) Option
- func RemoveWriters(mspIDs ...string) Option
- func UsingIdentity(identity *identity.Identity) Option
- func UsingMSPID(mspID string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChannel ¶
CreateChannel creates a new channel on the specified ordering service.
func InstantiateChaincode ¶
func InstantiateChaincode(peers []*peer.Peer, o *orderer.Orderer, channel string, name string, version string, args [][]byte) error
InstantiateChaincode instantiates a chaincode on the channel.
func UpdateChannel ¶
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 ¶
AddAnchorPeer adds the specified anchor peer to the channel.
func AddReaders ¶
AddReaders adds the specified MSP IDs to the readers policy of the channel.
func AddWriters ¶
AddWriters adds the specified MSP IDs to the writers policy of the channel.
func RemoveAdmin ¶
RemoveAdmin removes the specified MSP ID from the admins policy of the channel.
func RemoveAdmins ¶
RemoveAdmins removes the specified MSP IDs from the admins policy of the channel.
func RemoveMSPID ¶
RemoveMSPID removes the specified MSP from the channel.
func RemoveMSPIDs ¶
RemoveMSPIDs removes the specified MSP IDs from the channel.
func RemoveReader ¶
RemoveReader removes the specified MSP ID from the readers policy of the channel.
func RemoveReaders ¶
RemoveReaders removes the specified MSP IDs from the readers policy of the channel.
func RemoveWriter ¶
RemoveWriter removes the specified MSP ID from the writers policy of the channel.
func RemoveWriters ¶
RemoveWriters removes the specified MSP IDs from the writers policy of the channel.
func UsingIdentity ¶
UsingIdentity uses the specified identity to create or update the channel.
func UsingMSPID ¶
UsingMSPID uses the specified MSP ID to create or update the channel.