package
2.0.0-alpha+incompatible
Repository: https://github.com/hyperledger-labs/fabric-block-archiving.git
Documentation: pkg.go.dev

# Packages

Code generated by counterfeiter.

# Functions

AddOrdererFlags adds flags for orderer-related commands.
CheckLogLevel checks that a given log level string is valid.
GetAdminClient returns a new admin client.
GetBroadcastClient creates a simple instance of the BroadcastClient interface.
GetCertificate returns the client's TLS certificate.
GetConfig unmarshals the provided connection profile into a network configuration struct.
GetDefaultSigner return a default Signer(Default/PERR) for cli.
GetDeliverClient returns a new deliver client.
GetEndorserClient returns a new endorser client.
No description provided by the author
No description provided by the author
GetMockEndorserClient return a endorser client return specified ProposalResponse and err(nil or error).
GetOrdererEndpointOfChain returns orderer endpoints of given chain.
GetPeerDeliverClient returns a new deliver client.
No description provided by the author
InitConfig initializes viper config.
InitCrypto initializes crypto for this peer.
NewDeliverClientForOrderer creates a new DeliverClient from an OrdererClient.
NewDeliverClientForPeer creates a new DeliverClient from a PeerClient.
NewOrdererClientFromEnv creates an instance of an OrdererClient from the global Viper instance.
NewPeerClientForAddress creates an instance of a PeerClient using the provided peer address and, if TLS is enabled, the TLS root cert file.
NewPeerClientFromEnv creates an instance of a PeerClient from the global Viper instance.
SetBCCSPKeystorePath sets the file keystore path for the SW BCCSP provider to an absolute path relative to the config file.
SetOrdererEnv adds orderer-specific settings to the global Viper environment.

# Constants

No description provided by the author
UndefinedParamValue defines what undefined parameters in the command line will initialise to.

# Variables

GetBroadcastClientFnc returns an instance of the BroadcastClient interface by default it is set to GetBroadcastClient function.
GetCertificateFnc is a function that returns the client TLS certificate.
GetDefaultSignerFnc is a function that returns a default Signer(Default/PERR) by default it is set to GetDefaultSigner function.
GetDeliverClientFnc is a function that returns a new deliver client connection to the provided peer address using the TLS root cert file, by default it is set to GetDeliverClient function.
GetEndorserClientFnc is a function that returns a new endorser client connection to the provided peer address using the TLS root cert file, by default it is set to GetEndorserClient function.
GetOrdererEndpointOfChainFnc returns orderer endpoints of given chain by default it is set to GetOrdererEndpointOfChain function.
GetPeerDeliverClientFnc is a function that returns a new deliver client connection to the provided peer address using the TLS root cert file, by default it is set to GetDeliverClient function.
No description provided by the author

# Structs

CAConfig defines a CA configuration not currently used by CLI.
CCType - not currently used by CLI.
ChannelNetworkConfig provides the definition of channels for the network.
ClientConfig - not currently used by CLI.
CredentialStoreType - not currently used by CLI.
DeliverClient holds the necessary information to connect a client to an orderer/peer deliver service.
EnrollCredentials holds credentials used for enrollment not currently used by CLI.
LoggingType not currently used by CLI.
MutualTLSConfig Mutual TLS configurations not currently used by CLI.
NetworkConfig provides a static definition of a Hyperledger Fabric network.
OrdererClient represents a client for communicating with an ordering service.
OrdererConfig defines an orderer configuration not currently used by CLI.
OrganizationConfig provides the definition of an organization in the network not currently used by CLI.
PeerChannelConfig defines the peer capabilities.
PeerClient represents a client for communicating with a peer.
PeerConfig defines a peer configuration.
TLSConfig TLS configurations.
TLSKeyPair contains the private key and certificate for TLS encryption not currently used by CLI.
TLSType - not currently used by CLI.

# Interfaces

No description provided by the author
Signer defines the interface needed for signing messages.