Versions in this module Expand all Collapse all v1 v1.4.6 May 20, 2020 Changes in this version + const DefaultConfigTxTemplate + const DefaultCoreTemplate + const DefaultCryptoTemplate + const DefaultOrdererTemplate + var RequiredImages = []string + func AddConsenter(n *Network, peer *Peer, orderer *Orderer, channel string, ...) + func ComputeUpdateOrdererConfig(updateFile string, n *Network, channel string, current, updated *common.Config, ...) + func ConnectsToOrderer(c Command) bool + func CurrentConfigBlockNumber(n *Network, peer *Peer, orderer *Orderer, channel string) uint64 + func CurrentConfigBlockNumberFromPeer(n *Network, peer *Peer, channel, output string) uint64 + func DeployChaincode(n *Network, channel string, orderer *Orderer, chaincode Chaincode, ...) + func DiscoverPeers(n *Network, p *Peer, user, channelName string) func() []DiscoveredPeer + func EnableCapabilities(network *Network, channel, capabilitiesGroup, capabilitiesVersion string, ...) + func EnableCapabilitiesOrdererAdmin(network *Network, channel, capabilitiesGroup, capabilitiesVersion string, ...) + func EnsureInstantiated(n *Network, channel, name, version string, peers ...*Peer) + func FetchConfigBlock(n *Network, peer *Peer, orderer *Orderer, channel string, output string) + func GetConfig(n *Network, peer *Peer, orderer *Orderer, channel string) *common.Config + func GetConfigBlock(n *Network, peer *Peer, orderer *Orderer, channel string) *common.Block + func InstallChaincode(n *Network, chaincode Chaincode, peers ...*Peer) + func InstantiateChaincode(n *Network, channel string, orderer *Orderer, chaincode Chaincode, peer *Peer, ...) + func NewCommand(path string, command Command) *exec.Cmd + func PackageChaincode(n *Network, chaincode Chaincode, peer *Peer) + func RemoveConsenter(n *Network, peer *Peer, orderer *Orderer, channel string, certificate []byte) + func UnmarshalBlockFromFile(blockFile string) *common.Block + func UpdateConfig(n *Network, orderer *Orderer, channel string, current, updated *common.Config, ...) + func UpdateConsensusMetadata(network *Network, peer *Peer, orderer *Orderer, channel string, ...) + func UpdateEtcdRaftMetadata(network *Network, peer *Peer, orderer *Orderer, channel string, ...) + func UpdateOrdererConfig(n *Network, orderer *Orderer, channel string, current, updated *common.Config, ...) + func UpdateOrdererConfigFail(n *Network, orderer *Orderer, channel string, current, updated *common.Config, ...) + func UpdateOrdererMSP(network *Network, peer *Peer, orderer *Orderer, channel, orgID string, ...) + func UpgradeChaincode(n *Network, channel string, orderer *Orderer, chaincode Chaincode, ...) + type CA struct + Hostname string + type Chaincode struct + CollectionsConfig string + Ctor string + Lang string + Name string + PackageFile string + Path string + Policy string + Version string + type Channel struct + BaseProfile string + Name string + Profile string + type Command interface + Args func() []string + SessionName func() string + type Components struct + Paths map[string]string + func (c *Components) Build(args ...string) + func (c *Components) Cleanup() + func (c *Components) ConfigTxGen() string + func (c *Components) Cryptogen() string + func (c *Components) Discover() string + func (c *Components) Idemixgen() string + func (c *Components) Orderer() string + func (c *Components) Peer() string + type Config struct + Channels []*Channel + Consensus *Consensus + Consortiums []*Consortium + Orderers []*Orderer + Organizations []*Organization + Peers []*Peer + Profiles []*Profile + SystemChannel *SystemChannel + Templates *Templates + func BasicEtcdRaft() *Config + func BasicKafka() *Config + func BasicSolo() *Config + func MinimalRaft() *Config + func MultiChannelEtcdRaft() *Config + func MultiNodeEtcdRaft() *Config + func (c *Config) RemovePeer(orgName, peerName string) + type Consensus struct + Brokers int + Type string + ZooKeepers int + type ConsensusMetadataMutator func([]byte) []byte + type Consortium struct + Name string + Organizations []string + type DiscoveredPeer struct + Chaincodes []string + Endpoint string + Identity string + MSPID string + type Enver interface + Env func() []string + type MSPMutator func(config msp.FabricMSPConfig) msp.FabricMSPConfig + type Network struct + Channels []*Channel + Components *Components + Consensus *Consensus + Consortiums []*Consortium + DockerClient *docker.Client + EventuallyTimeout time.Duration + MetricsProvider string + NetworkID string + OrdererCap *OrdererCapabilities + Orderers []*Orderer + Organizations []*Organization + Peers []*Peer + PortsByBrokerID map[string]Ports + PortsByOrdererID map[string]Ports + PortsByPeerID map[string]Ports + Profiles []*Profile + RootDir string + StartPort uint16 + StatsdEndpoint string + SystemChannel *SystemChannel + Templates *Templates + func New(c *Config, rootDir string, client *docker.Client, startPort int, ...) *Network + func (n *Network) AnchorsForChannel(chanName string) []*Peer + func (n *Network) AnchorsInOrg(orgName string) []*Peer + func (n *Network) Bootstrap() + func (n *Network) BrokerAddresses(portName PortName) []string + func (n *Network) BrokerGroupRunner() ifrit.Runner + func (n *Network) BrokerRunner(id int, zookeepers []string) *runner.Kafka + func (n *Network) CACertsBundlePath() string + func (n *Network) Cleanup() + func (n *Network) ConcatenateTLSCACertificates() + func (n *Network) ConfigTxConfigPath() string + func (n *Network) ConfigTxGen(command Command) (*gexec.Session, error) + func (n *Network) Consortium(name string) *Consortium + func (n *Network) CreateAndJoinChannel(o *Orderer, channelName string) + func (n *Network) CreateAndJoinChannels(o *Orderer) + func (n *Network) CreateChannel(channelName string, o *Orderer, p *Peer, additionalSigners ...interface{}) + func (n *Network) CreateChannelFail(channelName string, o *Orderer, p *Peer, additionalSigners ...interface{}) + func (n *Network) CreateChannelTxPath(channelName string) string + func (n *Network) CryptoConfigPath() string + func (n *Network) CryptoPath() string + func (n *Network) Cryptogen(command Command) (*gexec.Session, error) + func (n *Network) Discover(command Command) (*gexec.Session, error) + func (n *Network) DiscoveredPeer(p *Peer, chaincodes ...string) DiscoveredPeer + func (n *Network) GenerateConfigTree() + func (n *Network) GenerateConfigTxConfig() + func (n *Network) GenerateCoreConfig(p *Peer) + func (n *Network) GenerateCryptoConfig() + func (n *Network) GenerateOrdererConfig(o *Orderer) + func (n *Network) JoinChannel(name string, o *Orderer, peers ...*Peer) + func (n *Network) NetworkGroupRunner() ifrit.Runner + func (n *Network) Orderer(name string) *Orderer + func (n *Network) OrdererAddress(o *Orderer, portName PortName) string + func (n *Network) OrdererAdminSession(o *Orderer, p *Peer, command Command) (*gexec.Session, error) + func (n *Network) OrdererConfigPath(o *Orderer) string + func (n *Network) OrdererDir(o *Orderer) string + func (n *Network) OrdererGroupRunner() ifrit.Runner + func (n *Network) OrdererLocalCryptoDir(o *Orderer, cryptoType string) string + func (n *Network) OrdererLocalMSPDir(o *Orderer) string + func (n *Network) OrdererLocalTLSDir(o *Orderer) string + func (n *Network) OrdererOrgMSPDir(o *Organization) string + func (n *Network) OrdererOrgs() []*Organization + func (n *Network) OrdererPort(o *Orderer, portName PortName) uint16 + func (n *Network) OrdererRunner(o *Orderer) *ginkgomon.Runner + func (n *Network) OrdererUserCert(o *Orderer, user string) string + func (n *Network) OrdererUserKey(o *Orderer, user string) string + func (n *Network) OrdererUserMSPDir(o *Orderer, user string) string + func (n *Network) OrderersInOrg(orgName string) []*Orderer + func (n *Network) Organization(orgName string) *Organization + func (n *Network) OrgsForOrderers(ordererNames []string) []*Organization + func (n *Network) OutputBlockPath(channelName string) string + func (n *Network) Peer(orgName, peerName string) *Peer + func (n *Network) PeerAddress(p *Peer, portName PortName) string + func (n *Network) PeerAdminSession(p *Peer, command Command) (*gexec.Session, error) + func (n *Network) PeerCert(p *Peer) string + func (n *Network) PeerConfigPath(p *Peer) string + func (n *Network) PeerDir(p *Peer) string + func (n *Network) PeerGroupRunner() ifrit.Runner + func (n *Network) PeerLocalMSPDir(p *Peer) string + func (n *Network) PeerLocalTLSDir(p *Peer) string + func (n *Network) PeerOrgMSPDir(org *Organization) string + func (n *Network) PeerOrgs() []*Organization + func (n *Network) PeerPort(p *Peer, portName PortName) uint16 + func (n *Network) PeerRunner(p *Peer) *ginkgomon.Runner + func (n *Network) PeerUserCert(p *Peer, user string) string + func (n *Network) PeerUserKey(p *Peer, user string) string + func (n *Network) PeerUserMSPDir(p *Peer, user string) string + func (n *Network) PeerUserSession(p *Peer, user string, command Command) (*gexec.Session, error) + func (n *Network) PeerUserTLSDir(p *Peer, user string) string + func (n *Network) PeersInOrg(orgName string) []*Peer + func (n *Network) PeersWithChannel(chanName string) []*Peer + func (n *Network) ProfileForChannel(channelName string) string + func (n *Network) ReadConfigTxConfig() *fabricconfig.ConfigTx + func (n *Network) ReadOrdererConfig(o *Orderer) *fabricconfig.Orderer + func (n *Network) ReadPeerConfig(p *Peer) *fabricconfig.Core + func (n *Network) ReservePort() uint16 + func (n *Network) StartSession(cmd *exec.Cmd, name string) (*gexec.Session, error) + func (n *Network) UpdateChannelAnchors(o *Orderer, channelName string) + func (n *Network) WriteConfigTxConfig(config *fabricconfig.ConfigTx) + func (n *Network) WriteOrdererConfig(o *Orderer, config *fabricconfig.Orderer) + func (n *Network) WritePeerConfig(p *Peer, config *fabricconfig.Core) + func (n *Network) ZooKeeperRunner(idx int) *runner.ZooKeeper + type Orderer struct + Name string + Organization string + func (o Orderer) ID() string + type OrdererCapabilities struct + V2_0 bool + type Organization struct + CA *CA + Domain string + EnableNodeOUs bool + MSPID string + Name string + Users int + type Peer struct + Channels []*PeerChannel + Name string + Organization string + func (p *Peer) Anchor() bool + func (p *Peer) ID() string + type PeerChannel struct + Anchor bool + Name string + type PortName string + const AdminServicePort + const ChaincodePort + const ClusterPort + const EventsPort + const HostPort + const ListenPort + const OperationsPort + const ProfilePort + func BrokerPortNames() []PortName + func OrdererPortNames() []PortName + func PeerPortNames() []PortName + type Ports map[PortName]uint16 + type Profile struct + Consortium string + Name string + Orderers []string + Organizations []string + type SystemChannel struct + Name string + Profile string + type Templates struct + ConfigTx string + Core string + Crypto string + Orderer string + func (t *Templates) ConfigTxTemplate() string + func (t *Templates) CoreTemplate() string + func (t *Templates) CryptoTemplate() string + func (t *Templates) OrdererTemplate() string + type WorkingDirer interface + WorkingDir func() string