{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.1.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bddtests\n\n## Functions\n\n```go\nfunc FeatureContextBootstrap(bddCtx *BDDContext, s *godog.Suite)\n```\nFeatureContextBootstrap setup the FeatureContext  for bootstrap steps\n\n```go\nfunc NewGrpcClient(peerAddress string) (*grpc.ClientConn, error)\n```\nNewGrpcClient return a new GRPC client connection for the specified peer address\n\n## Types\n\n```go\ntype BDDContext struct {\n\t// contains filtered or unexported fields\n}\n```\nBDDContext represents the current context for the executing scenario.  Commensurate concept of 'context' from behave testing.\n\n```go\nfunc (b *BDDContext) GetArgsForUser(cells []*gherkin.TableCell, userRegistration *UserRegistration) (args []string, err error)\n```\nGetArgsForUser will return an arg slice of string allowing for replacement of parameterized values based upon tags for userRegistration\n\n```go\nfunc (b *BDDContext) GetUserRegistration(enrollID string) (*UserRegistration, error)\n```\nGetUserRegistration return the UserRegistration for a given enrollID\n\n```go\ntype Composition struct {\n\t// contains filtered or unexported fields\n}\n```\nComposition represents a docker-compose execution and management\n\n```go\nfunc NewComposition(projectName string, composeFilesYaml string) (composition *Composition, err error)\n```\nNewComposition create a new Composition specifying the project name (for isolation) and the compose files.\n\n```go\nfunc (c *Composition) Decompose() (output string, err error)\n```\nDecompose decompose the composition.  Will also remove any containers with the same projectName prefix (eg. chaincode containers)\n\n```go\nfunc (c *Composition) GetAPIContainerForComposeService(composeService string) (apiContainer *docker.APIContainers, err error)\n```\nGetAPIContainerForComposeService return the docker.APIContainers with the supplied composeService name.\n\n```go\nfunc (c *Composition) GetContainerIDs() (containerIDs []string, err error)\n```\nGetContainerIDs returns the container IDs for the composition (NOTE: does NOT include those defined outside composition, eg. chaincode containers)\n\n```go\nfunc (c *Composition) GetIPAddressForComposeService(composeService string) (ipAddress string, err error)\n```\nGetIPAddressForComposeService returns the IPAddress of the container with the supplied composeService name.\n\n```go\ntype DockerHelper interface {\n\tGetIPAddress(containerID string) (string, error)\n\tRemoveContainersWithNamePrefix(namePrefix string) error\n}\n```\nDockerHelper helper for docker specific functions\n\n```go\nfunc NewDockerCmdlineHelper() (DockerHelper, error)\n```\nNewDockerCmdlineHelper returns a new command line DockerHelper instance\n\n```go\ntype KeyedProposalResponse struct {\n\t// contains filtered or unexported fields\n}\n```\nKeyedProposalResponse the response for an endorsement for internal usage in maps\n\n```go\ntype KeyedProposalResponseMap map[string]*KeyedProposalResponse\n```\nKeyedProposalResponseMap map of composeServices to KeyedProposalResponse\n\n```go\ntype UserRegistration struct {\n\t// contains filtered or unexported fields\n}\n```\nUserRegistration represents a user in the peer network\n\n```go\nfunc (u *UserRegistration) GetChaincodeDeploymentSpec(tagName string) (spec *pb.ChaincodeDeploymentSpec, err error)\n```\nGetChaincodeDeploymentSpec returns a ChaincodeDeploymentSpec for the supplied tag name (uses type assertion).  Fails if not of expected type.\n\n```go\nfunc (u *UserRegistration) GetChaincodeSpec(tagName string) (ccSpec *pb.ChaincodeSpec, err error)\n```\nGetChaincodeSpec returns a chaincode spec for the supplied tag name (uses type assertion).  Fails if not of expected type.\n\n```go\nfunc (u *UserRegistration) GetKeyedProposalResponseDict(tagName string) (result KeyedProposalResponseMap, err error)\n```\nGetKeyedProposalResponseDict returns a KeyedProposalResponseMap for the supplied tag name (uses type assertion).  Fails if not of expected type.\n\n```go\nfunc (u *UserRegistration) GetProposal(tagName string) (result *pb.Proposal, err error)\n```\nGetProposal returns a Proposal for the supplied tag name (uses type assertion).  Fails if not of expected type.\n\n```go\nfunc (u *UserRegistration) GetTagValue(tagName string) (interface{}, error)\n```\nGetTagValue returns a tag value for the user given the supplied tag name\n\n```go\nfunc (u *UserRegistration) SetTagValue(tagName string, tagValue interface{}) (interface{}, error)\n```\nSetTagValue sets the tag value for the user given the supplied tag name. Fails if tag name already used.\n\n","path":"github.com/eric-erki/https-hyperledger.org/bddtests","name":"bddtests","synopsis":"","isRedistributable":true}
