Versions in this module Expand all Collapse all v0 v0.0.2 Jan 22, 2021 v0.0.1 Jan 22, 2021 Changes in this version + const AdminUser + const ConfigPathSingleOrg + const ExampleCCInitB + const ExampleCCUpgradeB + const OrdererOrgName + var ConfigBackend = fetchConfigBackend(configPath, entityMatcherLocal) + func AddLocalEntityMapping(configProvider core.ConfigProvider) core.ConfigProvider + func ApproveExampleChaincode(orgs []*OrgContext, channelID, ccID, ccVersion, packageID, ccPolicyStr string, ...) error + func CheckCCCommitReadiness(mc []*OrgContext, packageID string, ccName, ccVersion string, sequence int64, ...) error + func CleanupTestPath(t *testing.T, storePath string) + func CleanupUserData(t *testing.T, sdk *fabsdk.FabricSDK) + func CommitExampleChaincode(orgs []*OrgContext, channelID, ccID, ccVersion, ccPolicyStr string, ...) error + func CreateChannelAndUpdateAnchorPeers(t *testing.T, sdk *fabsdk.FabricSDK, channelID string, ...) error + func DiscoverLocalPeers(ctxProvider contextAPI.ClientProvider, expectedPeers int) ([]fabAPI.Peer, error) + func EnsureChannelCreatedAndPeersJoined(t *testing.T, sdk *fabsdk.FabricSDK, channelID string, channelTxFile string, ...) error + func ExampleCCDefaultQueryArgs() [][]byte + func ExampleCCDefaultTxArgs() [][]byte + func ExampleCCInitArgs() [][]byte + func ExampleCCInitArgsLc() [][]byte + func ExampleCCQueryArgs(key string) [][]byte + func ExampleCCTxArgs(from, to, val string) [][]byte + func ExampleCCTxRandomSetArgs() [][]byte + func ExampleCCTxSetArgs(key, value string) [][]byte + func ExampleCCUpgradeArgs() [][]byte + func ExampleCCUpgradeArgsLc() [][]byte + func FilterTargetsJoinedChannel(sdk *fabsdk.FabricSDK, orgID string, channelID string, targets []string) ([]string, error) + func GenerateExampleID(randomize bool) string + func GenerateExampleJavaID(randomize bool) string + func GenerateExampleNodeID(randomize bool) string + func GenerateExamplePvtID(randomize bool) string + func GenerateRandomID() string + func GetChannelConfigTxPath(filename string) string + func GetConfigOverridesPath(filename string) string + func GetConfigPath(filename string) string + func GetCryptoConfigPath(filename string) string + func GetDeployPath() string + func GetJavaDeployPath() string + func GetKeyName(t *testing.T) string + func GetLcDeployPath() string + func GetLcPvtDeployPath() string + func GetNodeDeployPath() string + func HasPeerJoinedChannel(client *resmgmt.Client, target string, channel string) (bool, error) + func InitExampleChaincode(sdk *fabsdk.FabricSDK, channelID, ccID string, orgName string) error + func InitializeChannel(sdk *fabsdk.FabricSDK, orgID string, req resmgmt.SaveChannelRequest, ...) error + func InstallChaincode(resMgmt *resmgmt.Client, ccPkg *resource.CCPackage, ...) error + func InstallChaincodeWithOrgContexts(orgs []*OrgContext, ccPkg *resource.CCPackage, ccPath, ccID, ccVersion string) error + func InstallExampleChaincode(orgs []*OrgContext, ccID string) error + func InstallExampleChaincodeLc(orgs []*OrgContext, ccID, ccVersion string) (string, error) + func InstallExampleJavaChaincode(orgs []*OrgContext, ccID string) error + func InstallExampleNodeChaincode(orgs []*OrgContext, ccID string) error + func InstallExamplePvtChaincode(orgs []*OrgContext, ccID string) error + func InstallExamplePvtChaincodeLc(orgs []*OrgContext, ccID, ccVersion string) (string, error) + func InstantiateChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ...) (resmgmt.InstantiateCCResponse, error) + func InstantiateExampleChaincode(orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func InstantiateExampleChaincodeLc(sdk *fabsdk.FabricSDK, orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func InstantiateExampleJavaChaincode(orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func InstantiateExampleNodeChaincode(orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func InstantiateExamplePvtChaincode(orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func InstantiateJavaChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ...) (resmgmt.InstantiateCCResponse, error) + func InstantiateNodeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ...) (resmgmt.InstantiateCCResponse, error) + func InstantiatePvtExampleChaincodeLc(sdk *fabsdk.FabricSDK, orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func IsDynamicDiscoverySupported() bool + func IsJoinedChannel(channelID string, resMgmtClient *resmgmt.Client, peer fabAPI.Peer) (bool, error) + func IsLocal() bool + func JoinChannel(sdk *fabsdk.FabricSDK, name, orgID string, targets []string) (bool, error) + func JoinPeersToChannel(channelID string, orgsContext []*OrgContext) error + func OrgTargetPeers(orgs []string, configBackend ...core.ConfigBackend) ([]string, error) + func PrepareExampleCC(sdk *fabsdk.FabricSDK, user fabsdk.ContextOption, orgName string, ...) error + func PrepareExampleCCLc(sdk *fabsdk.FabricSDK, user fabsdk.ContextOption, orgName string, ...) error + func QueryApprovedCC(mc []*OrgContext, ccName string, sequence int64, channelID string) error + func QueryCommittedCC(mc []*OrgContext, ccName string, channelID string, sequence int64) error + func ResetKeys(t *testing.T, ctx contextAPI.ChannelProvider, chaincodeID, value string, ...) + func SaveChannel(sdk *fabsdk.FabricSDK, req resmgmt.SaveChannelRequest) (bool, error) + func UpgradeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ...) (resmgmt.UpgradeCCResponse, error) + func UpgradeExampleJavaChaincode(orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func UpgradeExampleNodeChaincode(orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func UpgradeExamplePvtChaincode(orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func UpgradeExamplePvtChaincodeLc(sdk *fabsdk.FabricSDK, orgs []*OrgContext, channelID, ccID, ccPolicy string, ...) error + func UpgradeJavaChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ...) (resmgmt.UpgradeCCResponse, error) + func UpgradeNodeChaincode(resMgmt *resmgmt.Client, channelID, ccName, ccPath, ccVersion string, ...) (resmgmt.UpgradeCCResponse, error) + func WaitForOrdererConfigUpdate(t *testing.T, client *resmgmt.Client, channelID string, genesis bool, ...) uint64 + type BaseSetupImpl struct + ChannelConfigTxFile string + ChannelID string + ConfigFile string + Identity msp.Identity + OrgID string + Targets []string + func (setup *BaseSetupImpl) Initialize(sdk *fabsdk.FabricSDK) error + type OrgContext struct + AnchorPeerConfigFile string + CtxProvider contextAPI.ClientProvider + OrgID string + Peers []fabAPI.Peer + ResMgmt *resmgmt.Client + SigningIdentity msp.SigningIdentity + func SetupMultiOrgContext(sdk *fabsdk.FabricSDK, org1Name string, org2Name string, org1AdminUser string, ...) ([]*OrgContext, error)