Documentation ¶
Index ¶
- func GetAdmin(c fc.Client, userOrg string) (fc.User, error)
- func GetOrdererAdmin(c fc.Client) (fc.User, error)
- type BaseSetupImpl
- func (setup *BaseSetupImpl) GetDeployPath() string
- func (setup *BaseSetupImpl) InitConfig() error
- func (setup *BaseSetupImpl) Initialize() error
- func (setup *BaseSetupImpl) InstallAndInstantiateExampleCC() error
- func (setup *BaseSetupImpl) InstallCC(chainCodeID string, chainCodePath string, chainCodeVersion string, ...) error
- func (setup *BaseSetupImpl) InstantiateCC(chainCodeID string, chainID string, chainCodePath string, ...) error
- func (setup *BaseSetupImpl) MoveFunds() (string, error)
- func (setup *BaseSetupImpl) Query(chainID string, chainCodeID string, args []string) (string, error)
- func (setup *BaseSetupImpl) QueryAsset() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseSetupImpl ¶
type BaseSetupImpl struct { Client fabricClient.Client OrdererAdminClient fabricClient.Client Chain fabricClient.Chain EventHub events.EventHub ConnectEventHub bool ConfigFile string ChainID string ChainCodeID string Initialized bool ChannelConfig string }
BaseSetupImpl implementation of BaseTestSetup
func (*BaseSetupImpl) GetDeployPath ¶
func (setup *BaseSetupImpl) GetDeployPath() string
GetDeployPath ..
func (*BaseSetupImpl) Initialize ¶
func (setup *BaseSetupImpl) Initialize() error
Initialize reads configuration from file and sets up client, chain and event hub
func (*BaseSetupImpl) InstallAndInstantiateExampleCC ¶
func (setup *BaseSetupImpl) InstallAndInstantiateExampleCC() error
InstallAndInstantiateExampleCC ..
func (*BaseSetupImpl) InstallCC ¶
func (setup *BaseSetupImpl) InstallCC(chainCodeID string, chainCodePath string, chainCodeVersion string, chaincodePackage []byte) error
InstallCC ...
func (*BaseSetupImpl) InstantiateCC ¶
func (setup *BaseSetupImpl) InstantiateCC(chainCodeID string, chainID string, chainCodePath string, chainCodeVersion string, args []string) error
InstantiateCC ...
func (*BaseSetupImpl) MoveFunds ¶
func (setup *BaseSetupImpl) MoveFunds() (string, error)
MoveFunds ...
func (*BaseSetupImpl) Query ¶
func (setup *BaseSetupImpl) Query(chainID string, chainCodeID string, args []string) (string, error)
Query ...
func (*BaseSetupImpl) QueryAsset ¶
func (setup *BaseSetupImpl) QueryAsset() (string, error)
QueryAsset ...
Click to show internal directories.
Click to hide internal directories.