{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.2.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package world\n\nCopyright IBM Corp All Rights Reserved.\n\nSPDX-License-Identifier: Apache-2.0\n\n## Variables\n\n```go\nvar RequiredImages = []string{\n\t\"hyperledger/fabric-ccenv:latest\",\n\trunner.CouchDBDefaultImage,\n\trunner.KafkaDefaultImage,\n\trunner.ZooKeeperDefaultImage,\n}\n```\n\n## Types\n\n```go\ntype Chaincode struct {\n\tName     string\n\tPath     string\n\tVersion  string\n\tGoPath   string\n\tExecPath string\n}\n```\n\n```go\ntype Components struct {\n\tPaths map[string]string\n}\n```\n\n```go\nfunc (c *Components) Build(args ...string)\n```\n\n```go\nfunc (c *Components) Cleanup()\n```\n\n```go\nfunc (c *Components) Configtxgen() *runner.Configtxgen\n```\n\n```go\nfunc (c *Components) Cryptogen() *runner.Cryptogen\n```\n\n```go\nfunc (c *Components) Idemixgen() *runner.Idemixgen\n```\n\n```go\nfunc (c *Components) Kafka(id int, network *docker.Network) *runner.Kafka\n```\n\n```go\nfunc (c *Components) Orderer() *runner.Orderer\n```\n\n```go\nfunc (c *Components) Peer() *runner.Peer\n```\n\n```go\nfunc (c *Components) ZooKeeper(id int, network *docker.Network) *runner.ZooKeeper\n```\n\n```go\ntype Deployment struct {\n\tChaincode Chaincode\n\tChannel   string\n\tInitArgs  string\n\tPolicy    string\n\tOrderer   string\n}\n```\n\n```go\ntype OrdererConfig struct {\n\tOrganizationName              string\n\tDomain                        string\n\tOrdererNames                  []string\n\tBrokerCount                   int // 0 is solo\n\tZooKeeperCount                int\n\tKafkaMinInsyncReplicas        int\n\tKafkaDefaultReplicationFactor int\n}\n```\n\n```go\ntype PeerOrgConfig struct {\n\tOrganizationName string\n\tDomain           string\n\tEnableNodeOUs    bool\n\tUserCount        int\n\tPeerCount        int\n}\n```\n\n```go\ntype Profile struct {\n\tProfiles map[string]localconfig.Profile `yaml:\"Profiles\"`\n}\n```\n\n```go\ntype Stopper interface {\n\tStop() error\n}\n```\n\n```go\ntype World struct {\n\tRootpath           string\n\tComponents         *Components\n\tNetwork            *docker.Network\n\tOrdererProfileName string\n\tChannelProfileName string\n\tOrdererOrgs        []OrdererConfig\n\tPeerOrgs           []PeerOrgConfig\n\tProfiles           map[string]localconfig.Profile\n\tCryptogen          runner.Cryptogen\n\tIdemixgen          runner.Idemixgen\n\tSystemChannel      string\n\n\tDockerClient  *docker.Client\n\tLocalStoppers []Stopper\n\tLocalProcess  []ifrit.Process\n}\n```\n\n```go\nfunc GenerateBasicConfig(ordererType string, numPeers, numPeerOrgs int, testDir string, components *Components) (w *World)\n```\n\n```go\nfunc (w *World) BootstrapNetwork(channel string)\n```\n\n```go\nfunc (w *World) BuildNetwork()\n```\n\n```go\nfunc (w *World) Close(deployments ...Deployment)\n```\n\n```go\nfunc (w *World) Construct()\n```\n\n```go\nfunc (w *World) CopyPeerConfigs(fixtureDir string)\n```\n\n```go\nfunc (w *World) PeerIDs() []string\n```\n\n```go\nfunc (w *World) SetupChannel(d Deployment, peers []string)\n```\n\n```go\nfunc (w *World) SetupWorld(d Deployment)\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/integration/world","name":"world","synopsis":"","isRedistributable":true}
