Documentation ¶
Index ¶
- type BridgeAccessor
- type ExternalAdapterClient
- type ORM
- func (_m *ORM) CreateRequest(request *functions.Request, qopts ...pg.QOpt) error
- func (_m *ORM) FindById(requestID functions.RequestID, qopts ...pg.QOpt) (*functions.Request, error)
- func (_m *ORM) FindOldestEntriesByState(state functions.RequestState, limit uint32, qopts ...pg.QOpt) ([]functions.Request, error)
- func (_m *ORM) PruneOldestRequests(maxRequestsInDB uint32, batchSize uint32, qopts ...pg.QOpt) (uint32, uint32, error)
- func (_m *ORM) SetConfirmed(requestID functions.RequestID, qopts ...pg.QOpt) error
- func (_m *ORM) SetError(requestID functions.RequestID, errorType functions.ErrType, ...) error
- func (_m *ORM) SetFinalized(requestID functions.RequestID, reportedResult []byte, reportedError []byte, ...) error
- func (_m *ORM) SetResult(requestID functions.RequestID, computationResult []byte, readyAt time.Time, ...) error
- func (_m *ORM) TimeoutExpiredResults(cutoff time.Time, limit uint32, qopts ...pg.QOpt) ([]functions.RequestID, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeAccessor ¶ added in v2.3.0
BridgeAccessor is an autogenerated mock type for the BridgeAccessor type
func NewBridgeAccessor ¶ added in v2.3.0
func NewBridgeAccessor(t mockConstructorTestingTNewBridgeAccessor) *BridgeAccessor
NewBridgeAccessor creates a new instance of BridgeAccessor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BridgeAccessor) NewExternalAdapterClient ¶ added in v2.3.0
func (_m *BridgeAccessor) NewExternalAdapterClient() (functions.ExternalAdapterClient, error)
NewExternalAdapterClient provides a mock function with given fields:
type ExternalAdapterClient ¶ added in v2.3.0
ExternalAdapterClient is an autogenerated mock type for the ExternalAdapterClient type
func NewExternalAdapterClient ¶ added in v2.3.0
func NewExternalAdapterClient(t mockConstructorTestingTNewExternalAdapterClient) *ExternalAdapterClient
NewExternalAdapterClient creates a new instance of ExternalAdapterClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ExternalAdapterClient) FetchEncryptedSecrets ¶ added in v2.3.0
func (_m *ExternalAdapterClient) FetchEncryptedSecrets(ctx context.Context, encryptedSecretsUrls []byte, requestId string, jobName string) ([]byte, []byte, error)
FetchEncryptedSecrets provides a mock function with given fields: ctx, encryptedSecretsUrls, requestId, jobName
func (*ExternalAdapterClient) RunComputation ¶ added in v2.3.0
func (_m *ExternalAdapterClient) RunComputation(ctx context.Context, requestId string, jobName string, subscriptionOwner string, subscriptionId uint64, nodeProvidedSecrets string, requestData *functions.RequestData) ([]byte, []byte, []string, error)
RunComputation provides a mock function with given fields: ctx, requestId, jobName, subscriptionOwner, subscriptionId, nodeProvidedSecrets, requestData
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶
func NewORM(t mockConstructorTestingTNewORM) *ORM
NewORM creates a new instance of ORM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ORM) CreateRequest ¶
CreateRequest provides a mock function with given fields: request, qopts
func (*ORM) FindById ¶
func (_m *ORM) FindById(requestID functions.RequestID, qopts ...pg.QOpt) (*functions.Request, error)
FindById provides a mock function with given fields: requestID, qopts
func (*ORM) FindOldestEntriesByState ¶
func (_m *ORM) FindOldestEntriesByState(state functions.RequestState, limit uint32, qopts ...pg.QOpt) ([]functions.Request, error)
FindOldestEntriesByState provides a mock function with given fields: state, limit, qopts
func (*ORM) PruneOldestRequests ¶ added in v2.3.0
func (_m *ORM) PruneOldestRequests(maxRequestsInDB uint32, batchSize uint32, qopts ...pg.QOpt) (uint32, uint32, error)
PruneOldestRequests provides a mock function with given fields: maxRequestsInDB, batchSize, qopts
func (*ORM) SetConfirmed ¶
SetConfirmed provides a mock function with given fields: requestID, qopts
func (*ORM) SetError ¶
func (_m *ORM) SetError(requestID functions.RequestID, errorType functions.ErrType, computationError []byte, readyAt time.Time, readyForProcessing bool, qopts ...pg.QOpt) error
SetError provides a mock function with given fields: requestID, errorType, computationError, readyAt, readyForProcessing, qopts
func (*ORM) SetFinalized ¶
func (_m *ORM) SetFinalized(requestID functions.RequestID, reportedResult []byte, reportedError []byte, qopts ...pg.QOpt) error
SetFinalized provides a mock function with given fields: requestID, reportedResult, reportedError, qopts