{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.3.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package helpers\n\n## Functions\n\n```go\nfunc AssertImagesExist(imageNames ...string)\n```\n\n```go\nfunc CheckConfigContainsExpectedConfig(expectedConfig discovery.ConfigResult, actualConfig discovery.ConfigResult) bool\n```\nVerifies that discovery service expectedConfig can be found in actualConfig. The check is done by comparing orderers (name, host and port) and by comparing msps(only name)\n\n```go\nfunc CheckEndorsementContainsExpectedEndorsement(expectedEndorsement EndorsementDescriptor, actualEndorsement EndorsementDescriptor) bool\n```\nVerifies that actualEndorsement contains expectedEndorsement. The check is done by comparing the following fields: - Chaincode - identical in both endorsement descriptors - EndorsersByGroups - each group of DiscoveredPeer in expectedEndorsement can be found also in actualEndorsement. different calls to discovery service might generate different groups names - Layouts - all layouts that exist in expectedEndorsement can be found also in actualEndorsement. the function takes care of different names also in this check\n\n```go\nfunc CheckPeersContainsExpectedPeers(expectedPeers []DiscoveredPeer, actualPeers []DiscoveredPeer) bool\n```\nVerifies that each DiscveredPeer in expectedPeers exist in actualPeers. The check is done by comparing peer endpoint and mspid and ignores ledger height, identity and chaincodes.\n\n```go\nfunc Contains(list []string, value string) bool\n```\n\n```go\nfunc CopyFile(src, dest string)\n```\n\n```go\nfunc Execute(r ifrit.Runner) (err error)\n```\n\n```go\nfunc StartSession(cmd *exec.Cmd, name, ansiColorCode string) (*gexec.Session, error)\n```\n\n```go\nfunc UniqueName() string\n```\nUniqueName generates base-32 enocded UUIDs for container names.\n\n## Types\n\n```go\ntype DiscoveredPeer struct {\n\tMSPID        string\n\tLedgerHeight uint64\n\tEndpoint     string\n\tIdentity     string\n\tChaincodes   []string\n}\n```\n\n```go\ntype EndorsementDescriptor struct {\n\tChaincode         string\n\tEndorsersByGroups map[string][]DiscoveredPeer\n\tLayouts           []*discovery.Layout\n}\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/integration/pvtdata/helpers","name":"helpers","synopsis":"","isRedistributable":true}
