package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev

# Packages

# Functions

BasicConfig is a configuration with two organizations and one peer per org.
CurrentConfigBlockNumber retrieves the block number from the header of the current config block.
CurrentConfigBlockNumberFromPeer retrieves the block number from the header of the peer's current config block.
DeployChaincode is a helper that will install chaincode to all peers that are connected to the specified channel, approve the chaincode on one of the peers of each organization in the network, commit the chaincode definition on the channel using one of the peers, and wait for the chaincode commit to complete on all of the peers.
running discovery service command discover peers against peer using channel name and user as specified in the function arguments.
EnableCapabilities enables a specific capabilities flag for a running network.
EnsureChaincodeCommitted polls each supplied peer until the chaincode definition has been committed to the peer's ledger.
FetchConfigBlock fetches latest config block.
FullEtcdRaft is a configuration with two organizations and two peers per org.
GetConfig retrieves the last config of the given channel.
GetConfigBlock retrieves the current config block for a channel.
GetLedgerHeight returns the current ledger height for a peer on a channel.
GetMaxLedgerHeight returns the maximum ledger height for the peers on a channel.
InspectChaincodeDiscrepancies inspects the discrepancies in chaincode definitions using the checkcommitreadiness command with inspection enabled.
New creates a Network from a simple configuration.
OrdererPortNames returns the list of ports that need to be reserved for an Orderer.
PackageChaincodeBinary is a helper function to package an already built chaincode and write it to the location specified by Chaincode.PackageFile.
PeerPortNames returns the list of ports that need to be reserved for a Peer.
ThreeOrgEtcdRaft returns a simple configuration with three organizations instead of two.
UnmarshalBlockFromFile unmarshals a proto encoded block from a file.
UpdateConfig computes, signs, and submits a configuration update and waits for the update to complete.
UpdateConsensusMetadata executes a config update that updates the consensus metadata according to the given ConsensusMetadataMutator.
UpdateOrdererConfig computes, signs, and submits a configuration update which requires orderers signature and waits for the update to complete.
UpdateOrdererConfigSession computes, signs, and submits a configuration update which requires orderer signatures.
UpdateOrdererEndpoints executes a config update that updates the orderer metadata according to the given endpoints.
WaitUntilEqualLedgerHeight waits until all specified peers have the provided ledger height on a channel.

# Constants

# Variables

# Structs

Blocks defines block cutting config.
Channel associates a channel name with a configtxgen profile name.
Config holds the basic information needed to generate fabric configuration files.
Consensus indicates the orderer types.
DiscoveredPeer defines a struct for discovering peers using discovery service.
Network holds information about a fabric network.
Orderer defines an orderer instance and its owning organization.
Organization models information about an Organization.
Peer defines a peer instance, it's owning organization, and the list of channels that the peer should be joined to.
PeerChannel names of the channel a peer should be joined to and whether or not the peer should be an anchor for the channel.
A profile encapsulates basic information for a configtxgen profile.
A SigningIdentity represents an MSP signing identity.
SmartBFT defines the configuration of smartBFT options.
Templates can be used to provide custom templates to GenerateConfigTree.

# Interfaces

# Type aliases

ConsensusMetadataMutator receives ConsensusType.Metadata and mutates it.
MSPMutator receives FabricMSPConfig and mutates it.