const ( EndorserRequired bool = true EndorserNotRequired bool = false OrdererRequired bool = true OrdererNotRequired bool = false PeerDeliverRequired bool = true PeerDeliverNotRequired bool = false )
func AddFlags(cmd *cobra.Command)
AddFlags adds flags for create and join
func Cmd(cf *ChannelCmdFactory) *cobra.Command
Cmd returns the cobra command for Node
type BroadcastClientFactory func() (common.BroadcastClient, error)
ChannelCmdFactory holds the clients used by ChannelCmdFactory
type ChannelCmdFactory struct { EndorserClient pb.EndorserClient Signer msp.SigningIdentity BroadcastClient common.BroadcastClient DeliverClient deliverClientIntf BroadcastFactory BroadcastClientFactory }
func InitCmdFactory(isEndorserRequired, isPeerDeliverRequired, isOrdererRequired bool) (*ChannelCmdFactory, error)
InitCmdFactory init the ChannelCmdFactory with clients to endorser and orderer according to params
ConfigTxFileNotFound channel create configuration tx file not found
type ConfigTxFileNotFound string
func (e ConfigTxFileNotFound) Error() string
GBFileNotFoundErr genesis block file not found
type GBFileNotFoundErr string
func (e GBFileNotFoundErr) Error() string
InvalidCreateTx invalid channel create transaction
type InvalidCreateTx string
func (e InvalidCreateTx) Error() string
ProposalFailedErr proposal failed
type ProposalFailedErr string
func (e ProposalFailedErr) Error() string