Versions in this module Expand all Collapse all v1 v1.4.10 Dec 9, 2020 Changes in this version + const CmdRoot + const UndefinedParamValue + var GetBroadcastClientFnc func() (BroadcastClient, error) + var GetCertificateFnc func() (tls.Certificate, error) + var GetDefaultSignerFnc func() (msp.SigningIdentity, error) + var GetDeliverClientFnc func(address, tlsRootCertFile string) (pb.Deliver_DeliverClient, error) + var GetEndorserClientFnc func(address, tlsRootCertFile string) (pb.EndorserClient, error) + var GetOrdererEndpointOfChainFnc func(chainID string, signer msp.SigningIdentity, endorserClient pb.EndorserClient) ([]string, error) + var GetPeerDeliverClientFnc func(address, tlsRootCertFile string) (api.PeerDeliverClient, error) + var OrderingEndpoint string + func AddOrdererFlags(cmd *cobra.Command) + func CheckLogLevel(level string) error + func GetAdminClient() (pb.AdminClient, error) + func GetCertificate() (tls.Certificate, error) + func GetDefaultSigner() (msp.SigningIdentity, error) + func GetDeliverClient(address, tlsRootCertFile string) (pb.Deliver_DeliverClient, error) + func GetEndorserClient(address, tlsRootCertFile string) (pb.EndorserClient, error) + func GetMockAdminClient(err error) pb.AdminClient + func GetMockEndorserClient(response *pb.ProposalResponse, err error) pb.EndorserClient + func GetOrdererEndpointOfChain(chainID string, signer msp.SigningIdentity, endorserClient pb.EndorserClient) ([]string, error) + func GetPeerDeliverClient(address, tlsRootCertFile string) (api.PeerDeliverClient, error) + func InitCmd(cmd *cobra.Command, args []string) + func InitConfig(cmdRoot string) error + func InitCrypto(mspMgrConfigDir, localMSPID, localMSPType string) error + func SetBCCSPKeystorePath() + func SetOrdererEnv(cmd *cobra.Command, args []string) + type BroadcastClient interface + Close func() error + Send func(env *cb.Envelope) error + func GetBroadcastClient() (BroadcastClient, error) + func GetMockBroadcastClient(err error) BroadcastClient + type CAConfig struct + CaName string + HTTPOptions map[string]interface{} + Registrar EnrollCredentials + TLSCACerts MutualTLSConfig + URL string + type CCType struct + Path string + type ChannelNetworkConfig struct + Chaincodes []string + Orderers []string + Peers map[string]PeerChannelConfig + type ClientConfig struct + CredentialStore CredentialStoreType + CryptoConfig CCType + Logging LoggingType + Organization string + TLS TLSType + type CredentialStoreType struct + CryptoStore struct{ ... } + Path string + Wallet string + type DeliverClient struct + BestEffort bool + ChannelID string + Service api.DeliverService + TLSCertHash []byte + func NewDeliverClientForOrderer(channelID string, bestEffort bool) (*DeliverClient, error) + func NewDeliverClientForPeer(channelID string, bestEffort bool) (*DeliverClient, error) + func (d *DeliverClient) Close() error + func (d *DeliverClient) GetNewestBlock() (*cb.Block, error) + func (d *DeliverClient) GetOldestBlock() (*cb.Block, error) + func (d *DeliverClient) GetSpecifiedBlock(num uint64) (*cb.Block, error) + type EnrollCredentials struct + EnrollID string + EnrollSecret string + type LoggingType struct + Level string + type MutualTLSConfig struct + Client TLSKeyPair + Path string + Pem []string + type NetworkConfig struct + CertificateAuthorities map[string]CAConfig + Channels map[string]ChannelNetworkConfig + Client ClientConfig + Description string + Name string + Orderers map[string]OrdererConfig + Organizations map[string]OrganizationConfig + Peers map[string]PeerConfig + Version string + Xtype string + func GetConfig(fileName string) (*NetworkConfig, error) + type OrdererClient struct + func NewOrdererClientFromEnv() (*OrdererClient, error) + func (oc *OrdererClient) Broadcast() (ab.AtomicBroadcast_BroadcastClient, error) + func (oc *OrdererClient) Certificate() tls.Certificate + func (oc *OrdererClient) Deliver() (ab.AtomicBroadcast_DeliverClient, error) + type OrdererConfig struct + GrpcOptions map[string]interface{} + TLSCACerts TLSConfig + URL string + type OrganizationConfig struct + AdminPrivateKey TLSConfig + CertificateAuthorities []string + CryptoPath string + MspID string + Peers []string + SignedCert TLSConfig + type PeerChannelConfig struct + ChaincodeQuery bool + EndorsingPeer bool + EventSource bool + LedgerQuery bool + type PeerClient struct + func NewPeerClientForAddress(address, tlsRootCertFile string) (*PeerClient, error) + func NewPeerClientFromEnv() (*PeerClient, error) + func (pc *PeerClient) Admin() (pb.AdminClient, error) + func (pc *PeerClient) Certificate() tls.Certificate + func (pc *PeerClient) Deliver() (pb.Deliver_DeliverClient, error) + func (pc *PeerClient) Endorser() (pb.EndorserClient, error) + func (pc *PeerClient) PeerDeliver() (api.PeerDeliverClient, error) + type PeerConfig struct + EventURL string + GRPCOptions map[string]interface{} + TLSCACerts TLSConfig + URL string + type PeerDeliverClient struct + Client pb.DeliverClient + func (dc PeerDeliverClient) Deliver(ctx context.Context, opts ...grpc.CallOption) (ccapi.Deliver, error) + func (dc PeerDeliverClient) DeliverFiltered(ctx context.Context, opts ...grpc.CallOption) (ccapi.Deliver, error) + type TLSConfig struct + Path string + Pem string + type TLSKeyPair struct + Cert TLSConfig + Key TLSConfig + type TLSType struct + Enabled bool