Documentation ¶
Index ¶
- type Callbacks
- type Plugin
- func (_m *Plugin) AddContractListener(ctx context.Context, subscription *core.ContractListener) error
- func (_m *Plugin) AddFireflySubscription(ctx context.Context, namespace *core.Namespace, ...) (string, error)
- func (_m *Plugin) Capabilities() *blockchain.Capabilities
- func (_m *Plugin) DeleteContractListener(ctx context.Context, subscription *core.ContractListener, okNotFound bool) error
- func (_m *Plugin) DeployContract(ctx context.Context, nsOpID string, signingKey string, ...) (bool, error)
- func (_m *Plugin) GenerateErrorSignature(ctx context.Context, errorDef *fftypes.FFIErrorDefinition) string
- func (_m *Plugin) GenerateEventSignature(ctx context.Context, event *fftypes.FFIEventDefinition) string
- func (_m *Plugin) GenerateFFI(ctx context.Context, generationRequest *fftypes.FFIGenerationRequest) (*fftypes.FFI, error)
- func (_m *Plugin) GetAndConvertDeprecatedContractConfig(ctx context.Context) (*fftypes.JSONAny, string, error)
- func (_m *Plugin) GetContractListenerStatus(ctx context.Context, namespace string, subID string, okNotFound bool) (bool, interface{}, error)
- func (_m *Plugin) GetFFIParamValidator(ctx context.Context) (fftypes.FFIParamValidator, error)
- func (_m *Plugin) GetNetworkVersion(ctx context.Context, location *fftypes.JSONAny) (int, error)
- func (_m *Plugin) GetTransactionStatus(ctx context.Context, operation *core.Operation) (interface{}, error)
- func (_m *Plugin) Init(ctx context.Context, cancelCtx context.CancelFunc, _a2 config.Section, ...) error
- func (_m *Plugin) InitConfig(_a0 config.Section)
- func (_m *Plugin) InvokeContract(ctx context.Context, nsOpID string, signingKey string, ...) (bool, error)
- func (_m *Plugin) Name() string
- func (_m *Plugin) NormalizeContractLocation(ctx context.Context, ntype blockchain.NormalizeType, location *fftypes.JSONAny) (*fftypes.JSONAny, error)
- func (_m *Plugin) ParseInterface(ctx context.Context, method *fftypes.FFIMethod, errors []*fftypes.FFIError) (interface{}, error)
- func (_m *Plugin) QueryContract(ctx context.Context, signingKey string, location *fftypes.JSONAny, ...) (interface{}, error)
- func (_m *Plugin) RemoveFireflySubscription(ctx context.Context, subID string)
- func (_m *Plugin) ResolveSigningKey(ctx context.Context, keyRef string, intent blockchain.ResolveKeyIntent) (string, error)
- func (_m *Plugin) SetHandler(namespace string, handler blockchain.Callbacks)
- func (_m *Plugin) SetOperationHandler(namespace string, handler core.OperationCallbacks)
- func (_m *Plugin) StartNamespace(ctx context.Context, namespace string) error
- func (_m *Plugin) StopNamespace(ctx context.Context, namespace string) error
- func (_m *Plugin) SubmitBatchPin(ctx context.Context, nsOpID string, networkNamespace string, signingKey string, ...) error
- func (_m *Plugin) SubmitNetworkAction(ctx context.Context, nsOpID string, signingKey string, action fftypes.FFEnum, ...) error
- func (_m *Plugin) ValidateInvokeRequest(ctx context.Context, parsedMethod interface{}, input map[string]interface{}, ...) error
- func (_m *Plugin) VerifierType() fftypes.FFEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Callbacks ¶
Callbacks is an autogenerated mock type for the Callbacks type
func NewCallbacks ¶ added in v1.1.2
NewCallbacks creates a new instance of Callbacks. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Callbacks) BlockchainEventBatch ¶ added in v1.3.0
func (_m *Callbacks) BlockchainEventBatch(batch []*blockchain.EventToDispatch) error
BlockchainEventBatch provides a mock function with given fields: batch
type Plugin ¶
Plugin is an autogenerated mock type for the Plugin type
func NewPlugin ¶ added in v1.1.2
NewPlugin creates a new instance of Plugin. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Plugin) AddContractListener ¶ added in v0.14.0
func (_m *Plugin) AddContractListener(ctx context.Context, subscription *core.ContractListener) error
AddContractListener provides a mock function with given fields: ctx, subscription
func (*Plugin) AddFireflySubscription ¶ added in v1.1.0
func (_m *Plugin) AddFireflySubscription(ctx context.Context, namespace *core.Namespace, contract *blockchain.MultipartyContract) (string, error)
AddFireflySubscription provides a mock function with given fields: ctx, namespace, contract
func (*Plugin) Capabilities ¶
func (_m *Plugin) Capabilities() *blockchain.Capabilities
Capabilities provides a mock function with given fields:
func (*Plugin) DeleteContractListener ¶ added in v0.14.0
func (_m *Plugin) DeleteContractListener(ctx context.Context, subscription *core.ContractListener, okNotFound bool) error
DeleteContractListener provides a mock function with given fields: ctx, subscription, okNotFound
func (*Plugin) DeployContract ¶ added in v1.1.2
func (_m *Plugin) DeployContract(ctx context.Context, nsOpID string, signingKey string, definition *fftypes.JSONAny, contract *fftypes.JSONAny, input []interface{}, options map[string]interface{}) (bool, error)
DeployContract provides a mock function with given fields: ctx, nsOpID, signingKey, definition, contract, input, options
func (*Plugin) GenerateErrorSignature ¶ added in v1.1.3
func (_m *Plugin) GenerateErrorSignature(ctx context.Context, errorDef *fftypes.FFIErrorDefinition) string
GenerateErrorSignature provides a mock function with given fields: ctx, errorDef
func (*Plugin) GenerateEventSignature ¶ added in v1.0.0
func (_m *Plugin) GenerateEventSignature(ctx context.Context, event *fftypes.FFIEventDefinition) string
GenerateEventSignature provides a mock function with given fields: ctx, event
func (*Plugin) GenerateFFI ¶ added in v0.13.1
func (_m *Plugin) GenerateFFI(ctx context.Context, generationRequest *fftypes.FFIGenerationRequest) (*fftypes.FFI, error)
GenerateFFI provides a mock function with given fields: ctx, generationRequest
func (*Plugin) GetAndConvertDeprecatedContractConfig ¶ added in v1.1.0
func (_m *Plugin) GetAndConvertDeprecatedContractConfig(ctx context.Context) (*fftypes.JSONAny, string, error)
GetAndConvertDeprecatedContractConfig provides a mock function with given fields: ctx
func (*Plugin) GetContractListenerStatus ¶ added in v1.1.0
func (_m *Plugin) GetContractListenerStatus(ctx context.Context, namespace string, subID string, okNotFound bool) (bool, interface{}, error)
GetContractListenerStatus provides a mock function with given fields: ctx, namespace, subID, okNotFound
func (*Plugin) GetFFIParamValidator ¶ added in v0.12.0
GetFFIParamValidator provides a mock function with given fields: ctx
func (*Plugin) GetNetworkVersion ¶ added in v1.1.0
GetNetworkVersion provides a mock function with given fields: ctx, location
func (*Plugin) GetTransactionStatus ¶ added in v1.1.3
func (_m *Plugin) GetTransactionStatus(ctx context.Context, operation *core.Operation) (interface{}, error)
GetTransactionStatus provides a mock function with given fields: ctx, operation
func (*Plugin) Init ¶
func (_m *Plugin) Init(ctx context.Context, cancelCtx context.CancelFunc, _a2 config.Section, _a3 metrics.Manager, cacheManager cache.Manager) error
Init provides a mock function with given fields: ctx, cancelCtx, _a2, _a3, cacheManager
func (*Plugin) InitConfig ¶ added in v1.1.0
InitConfig provides a mock function with given fields: _a0
func (*Plugin) InvokeContract ¶ added in v0.12.0
func (_m *Plugin) InvokeContract(ctx context.Context, nsOpID string, signingKey string, location *fftypes.JSONAny, parsedMethod interface{}, input map[string]interface{}, options map[string]interface{}, batch *blockchain.BatchPin) (bool, error)
InvokeContract provides a mock function with given fields: ctx, nsOpID, signingKey, location, parsedMethod, input, options, batch
func (*Plugin) NormalizeContractLocation ¶ added in v1.0.0
func (_m *Plugin) NormalizeContractLocation(ctx context.Context, ntype blockchain.NormalizeType, location *fftypes.JSONAny) (*fftypes.JSONAny, error)
NormalizeContractLocation provides a mock function with given fields: ctx, ntype, location
func (*Plugin) ParseInterface ¶ added in v1.3.0
func (_m *Plugin) ParseInterface(ctx context.Context, method *fftypes.FFIMethod, errors []*fftypes.FFIError) (interface{}, error)
ParseInterface provides a mock function with given fields: ctx, method, errors
func (*Plugin) QueryContract ¶ added in v0.12.0
func (_m *Plugin) QueryContract(ctx context.Context, signingKey string, location *fftypes.JSONAny, parsedMethod interface{}, input map[string]interface{}, options map[string]interface{}) (interface{}, error)
QueryContract provides a mock function with given fields: ctx, signingKey, location, parsedMethod, input, options
func (*Plugin) RemoveFireflySubscription ¶ added in v1.1.0
RemoveFireflySubscription provides a mock function with given fields: ctx, subID
func (*Plugin) ResolveSigningKey ¶
func (_m *Plugin) ResolveSigningKey(ctx context.Context, keyRef string, intent blockchain.ResolveKeyIntent) (string, error)
ResolveSigningKey provides a mock function with given fields: ctx, keyRef, intent
func (*Plugin) SetHandler ¶ added in v1.1.0
func (_m *Plugin) SetHandler(namespace string, handler blockchain.Callbacks)
SetHandler provides a mock function with given fields: namespace, handler
func (*Plugin) SetOperationHandler ¶ added in v1.1.0
func (_m *Plugin) SetOperationHandler(namespace string, handler core.OperationCallbacks)
SetOperationHandler provides a mock function with given fields: namespace, handler
func (*Plugin) StartNamespace ¶ added in v1.3.0
StartNamespace provides a mock function with given fields: ctx, namespace
func (*Plugin) StopNamespace ¶ added in v1.3.0
StopNamespace provides a mock function with given fields: ctx, namespace
func (*Plugin) SubmitBatchPin ¶
func (_m *Plugin) SubmitBatchPin(ctx context.Context, nsOpID string, networkNamespace string, signingKey string, batch *blockchain.BatchPin, location *fftypes.JSONAny) error
SubmitBatchPin provides a mock function with given fields: ctx, nsOpID, networkNamespace, signingKey, batch, location
func (*Plugin) SubmitNetworkAction ¶ added in v1.1.0
func (_m *Plugin) SubmitNetworkAction(ctx context.Context, nsOpID string, signingKey string, action fftypes.FFEnum, location *fftypes.JSONAny) error
SubmitNetworkAction provides a mock function with given fields: ctx, nsOpID, signingKey, action, location
func (*Plugin) ValidateInvokeRequest ¶ added in v1.3.0
func (_m *Plugin) ValidateInvokeRequest(ctx context.Context, parsedMethod interface{}, input map[string]interface{}, hasMessage bool) error
ValidateInvokeRequest provides a mock function with given fields: ctx, parsedMethod, input, hasMessage
func (*Plugin) VerifierType ¶ added in v0.14.0
VerifierType provides a mock function with given fields: