# Functions
ClearResponse clears the query response.
ClearState clears all global variables.
FindPKCS11Lib find lib based on configuration.
GenerateRandomID generates random ID.
GetAuthToken returns the authorization bearer token for the given HTTP path and HTTP method.
GetByteArgs is a utility which converts []string to [][]bytes.
GetChannelAnchorTxPath returns path to the channel anchor tx file for the given channel.
GetChannelTxPath returns path to the channel tx file for the given channel.
GetResponse returns the most recent query response.
GetVar gets the value for the given variable Returns true if the variable exists; false otherwise.
HasPrimaryPeerJoinedChannel checks whether the primary peer of a channel has already joined the channel.
HTTPGet sends a GET request to the given URL.
HTTPPost posts the given data to the given URL.
HTTPPostFile posts the contents of the given file to the given URL.
IsChaincodeInstalled Helper function to check if chaincode has been deployed.
NewBDDContext create new BDDContext.
NewChaincodePolicy parses the policy string and returns the chaincode policy.
NewCommonSteps create new CommonSteps struct.
NewComposition create a new Composition specifying the project name (for isolation) and the compose files, and brings up all containers.
NewCustomEndorsementHandler creates a new instance of CustomEndorsementHandler.
NewDockerCmdlineHelper returns a new command line DockerHelper instance.
NewDockerCompose create a new Composition specifying the project name (for isolation) and the compose files.
NewDockerSteps returns the Docker steps.
NewFabCLI returns a new FabCLI.
No description provided by the author
Resolve resolves all variables within the given arg
Example 1: Simple variable Given: vars = { "var1": "value1", "var2": "value2", } Then: "${var1}" = "value1" "X_${var1}_${var2} = "X_value1_value2
Example 2: Array variable Given: vars = { "arr1": "value1,value2,value3", } Then: "${arr1[0]_arr1[1]_arr1[2]}" = "value1_value2_value3"
.
No description provided by the author
ResolveAllVars returns a slice of strings from the given comma-separated string.
ResolveVars resolves all variables within the given value.
ResolveVars resolves all variables within the given expressions Example:
Given: var1 = "variable1" var2 = "variable2"
value1 := "This is ${var1}" value2 := "This is ${var2}
err := ResolveVarsInExpression(&value1, &value2)
Result: value1 = "This is variable1" value2 = "This is variable2".
SetAuthToken sets the authorization bearer token for the given HTTP path and HTTP method.
SetAuthTokenHeader sets the bearer token in the Authorization header if one is defined for the given request path.
SetResponse sets the query response.
SetVar sets the value for the given variable.
# Structs
BDDContext ...
CommonSteps contain BDDContext.
Composition represents a docker-compose execution and management.
CustomEndorsementHandler ignores the channel in the ClientContext and instead sends the proposal to the given channel.
DockerSteps manages Docker BDD steps.
FabCLI is used to invoke the Fabric CLI command-line tool.
No description provided by the author
PeerConfig holds the peer configuration and org ID.
StaticSelectionProviderFactory uses a static selection service that doesn't use CC policies.
# Interfaces
DockerHelper helper for docker specific functions.
# Type aliases
No description provided by the author
CollectionConfigCreator creates a collection config for the given channel.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author