{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.3.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package runner\n\n## Functions\n\n```go\nfunc VerifyAllPeersDiscovered(sd *DiscoveryService, expectedPeers []helpers.DiscoveredPeer, channel string, server string) ([]helpers.DiscoveredPeer, bool)\n```\n\n```go\nfunc VerifyConfigDiscovered(sd *DiscoveryService, expectedConfig discovery.ConfigResult, channel string, server string) bool\n```\n\n```go\nfunc VerifyEndorsersDiscovered(sd *DiscoveryService, expectedEndorsementDescriptor helpers.EndorsementDescriptor, channel string, server string, chaincodeName string, collectionName string) bool\n```\n\n## Types\n\n```go\ntype Configtxgen struct {\n\t// The location of the configtxgen executable\n\tPath string\n\t// The channel ID\n\tChannelID string\n\t// The profile used for the channel\n\tProfile string\n\t// The organization for this config channel\n\tAsOrg string\n\t// The fabric config directory\n\tConfigDir string\n\t// The fabric config directory set in the env variable\n\tEnvConfigDir string\n\t// The directory to write the block file\n\tOutput string\n}\n```\nConfigtxgen creates runners that call cryptogen functions.\n\n```go\nfunc (c *Configtxgen) OutputAnchorPeersUpdate(extraArgs ...string) *ginkgomon.Runner\n```\n\n```go\nfunc (c *Configtxgen) OutputBlock(extraArgs ...string) *ginkgomon.Runner\n```\nOutputBlock uses configtxgen to generate genesis block for fabric.\n\n```go\nfunc (c *Configtxgen) OutputCreateChannelTx(extraArgs ...string) *ginkgomon.Runner\n```\n\n```go\ntype Cryptogen struct {\n\t// The location of the cryptogen executable\n\tPath string\n\t// The location of the config file\n\tConfig string\n\t// The output directory\n\tOutput string\n}\n```\nCryptogen creates runners that call cryptogen functions.\n\n```go\nfunc (c *Cryptogen) Generate(extraArgs ...string) *ginkgomon.Runner\n```\nGenerate uses cryptogen to generate cryptographic material for fabric.\n\n```go\ntype DiscoveryService struct {\n\t// The location of the discovery service executable\n\tPath string\n\t// Path to the config file that will be generated in GenerateConfig function and will be used later in all other functions\n\tConfigFilePath string\n\t// Log level that will be used in discovery service executable\n\tLogLevel string\n}\n```\nDiscoveryService wraps sd cli and enables discovering peers, config and endorsement descriptors\n\n```go\nfunc SetupDiscoveryService(sd *DiscoveryService, org int, configFilePath string, userCert string, userKeyDir string) *DiscoveryService\n```\n\n```go\nfunc (sd *DiscoveryService) DiscoverConfig(channel string, server string, extraArgs ...string) *ginkgomon.Runner\n```\n\n```go\nfunc (sd *DiscoveryService) DiscoverEndorsers(channel string, server string, chaincodeName string, collectionName string, extraArgs ...string) *ginkgomon.Runner\n```\n\n```go\nfunc (sd *DiscoveryService) DiscoverPeers(channel string, server string, extraArgs ...string) *ginkgomon.Runner\n```\n\n```go\nfunc (sd *DiscoveryService) GenerateConfig(userCert string, userKey string, msp string, extraArgs ...string) *ginkgomon.Runner\n```\n\n```go\ntype Orderer struct {\n\tPath                        string\n\tConfigDir                   string\n\tLedgerLocation              string\n\tConfigtxOrdererKafkaBrokers string\n\tLogLevel                    string\n}\n```\n\n```go\nfunc (o *Orderer) New() *ginkgomon.Runner\n```\n\n```go\ntype Peer struct {\n\tPath          string\n\tGoPath        string\n\tExecPath      string\n\tConfigDir     string\n\tMSPConfigPath string\n\tLogLevel      string\n}\n```\n\n```go\nfunc (p *Peer) ChaincodeListInstalled() *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) ChaincodeListInstantiated(channel string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) CreateChannel(channel string, filename string, orderer string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) FetchChannel(channel string, filename string, block string, orderer string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) GetChannelInfo(channel string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) InstallChaincode(name, version, path string)\n```\n\n```go\nfunc (p *Peer) InstantiateChaincode(name, version, orderer, channel, args, policy string, collectionsConfigPath string)\n```\n\n```go\nfunc (p *Peer) InvokeChaincode(name string, channel string, args string, orderer string, extraArgs ...string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) JoinChannel(transactionFile string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) NodeStart(index int) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) QueryChaincode(name string, channel string, args string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) SetLogLevel(moduleRegExp string, level string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) SignConfigTx(transactionFile string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) UpdateChannel(transactionFile string, channel string, orderer string) *ginkgomon.Runner\n```\n\n```go\nfunc (p *Peer) UpgradeChaincode(name string, version string, orderer string, channel string, args string, policy string, collectionsConfigPath string)\n```\n\n```go\nfunc (p *Peer) VerifyChaincodeIsInstantiated(chaincodeName string, version string, channel string, timeout time.Duration)\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/integration/pvtdata/runner","name":"runner","synopsis":"","isRedistributable":true}
