Documentation ¶
Index ¶
- type ORM
- func (_m *ORM) BridgeTypes(ctx context.Context, offset int, limit int) ([]bridges.BridgeType, int, error)
- func (_m *ORM) BulkUpsertBridgeResponse(ctx context.Context, responses []bridges.BridgeResponse) error
- func (_m *ORM) CreateBridgeType(ctx context.Context, bt *bridges.BridgeType) error
- func (_m *ORM) CreateExternalInitiator(ctx context.Context, externalInitiator *bridges.ExternalInitiator) error
- func (_m *ORM) DeleteBridgeType(ctx context.Context, bt *bridges.BridgeType) error
- func (_m *ORM) DeleteExternalInitiator(ctx context.Context, name string) error
- func (_m *ORM) ExternalInitiators(ctx context.Context, offset int, limit int) ([]bridges.ExternalInitiator, int, error)
- func (_m *ORM) FindBridge(ctx context.Context, name bridges.BridgeName) (bridges.BridgeType, error)
- func (_m *ORM) FindBridges(ctx context.Context, name []bridges.BridgeName) ([]bridges.BridgeType, error)
- func (_m *ORM) FindExternalInitiator(ctx context.Context, eia *auth.Token) (*bridges.ExternalInitiator, error)
- func (_m *ORM) FindExternalInitiatorByName(ctx context.Context, iname string) (bridges.ExternalInitiator, error)
- func (_m *ORM) GetCachedResponse(ctx context.Context, dotId string, specId int32, maxElapsed time.Duration) ([]byte, error)
- func (_m *ORM) GetCachedResponseWithFinished(ctx context.Context, dotId string, specId int32, maxElapsed time.Duration) ([]byte, time.Time, error)
- func (_m *ORM) UpdateBridgeType(ctx context.Context, bt *bridges.BridgeType, btr *bridges.BridgeTypeRequest) error
- func (_m *ORM) UpsertBridgeResponse(ctx context.Context, dotId string, specId int32, response []byte) error
- func (_m *ORM) WithDataSource(_a0 sqlutil.DataSource) bridges.ORM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ORM ¶
ORM is an autogenerated mock type for the ORM type
func NewORM ¶
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. The first argument is typically a *testing.T value.
func (*ORM) BridgeTypes ¶
func (_m *ORM) BridgeTypes(ctx context.Context, offset int, limit int) ([]bridges.BridgeType, int, error)
BridgeTypes provides a mock function with given fields: ctx, offset, limit
func (*ORM) BulkUpsertBridgeResponse ¶ added in v2.14.0
func (_m *ORM) BulkUpsertBridgeResponse(ctx context.Context, responses []bridges.BridgeResponse) error
BulkUpsertBridgeResponse provides a mock function with given fields: ctx, responses
func (*ORM) CreateBridgeType ¶
CreateBridgeType provides a mock function with given fields: ctx, bt
func (*ORM) CreateExternalInitiator ¶
func (_m *ORM) CreateExternalInitiator(ctx context.Context, externalInitiator *bridges.ExternalInitiator) error
CreateExternalInitiator provides a mock function with given fields: ctx, externalInitiator
func (*ORM) DeleteBridgeType ¶
DeleteBridgeType provides a mock function with given fields: ctx, bt
func (*ORM) DeleteExternalInitiator ¶
DeleteExternalInitiator provides a mock function with given fields: ctx, name
func (*ORM) ExternalInitiators ¶
func (_m *ORM) ExternalInitiators(ctx context.Context, offset int, limit int) ([]bridges.ExternalInitiator, int, error)
ExternalInitiators provides a mock function with given fields: ctx, offset, limit
func (*ORM) FindBridge ¶
func (_m *ORM) FindBridge(ctx context.Context, name bridges.BridgeName) (bridges.BridgeType, error)
FindBridge provides a mock function with given fields: ctx, name
func (*ORM) FindBridges ¶
func (_m *ORM) FindBridges(ctx context.Context, name []bridges.BridgeName) ([]bridges.BridgeType, error)
FindBridges provides a mock function with given fields: ctx, name
func (*ORM) FindExternalInitiator ¶
func (_m *ORM) FindExternalInitiator(ctx context.Context, eia *auth.Token) (*bridges.ExternalInitiator, error)
FindExternalInitiator provides a mock function with given fields: ctx, eia
func (*ORM) FindExternalInitiatorByName ¶
func (_m *ORM) FindExternalInitiatorByName(ctx context.Context, iname string) (bridges.ExternalInitiator, error)
FindExternalInitiatorByName provides a mock function with given fields: ctx, iname
func (*ORM) GetCachedResponse ¶
func (_m *ORM) GetCachedResponse(ctx context.Context, dotId string, specId int32, maxElapsed time.Duration) ([]byte, error)
GetCachedResponse provides a mock function with given fields: ctx, dotId, specId, maxElapsed
func (*ORM) GetCachedResponseWithFinished ¶ added in v2.14.0
func (_m *ORM) GetCachedResponseWithFinished(ctx context.Context, dotId string, specId int32, maxElapsed time.Duration) ([]byte, time.Time, error)
GetCachedResponseWithFinished provides a mock function with given fields: ctx, dotId, specId, maxElapsed
func (*ORM) UpdateBridgeType ¶
func (_m *ORM) UpdateBridgeType(ctx context.Context, bt *bridges.BridgeType, btr *bridges.BridgeTypeRequest) error
UpdateBridgeType provides a mock function with given fields: ctx, bt, btr
func (*ORM) UpsertBridgeResponse ¶
func (_m *ORM) UpsertBridgeResponse(ctx context.Context, dotId string, specId int32, response []byte) error
UpsertBridgeResponse provides a mock function with given fields: ctx, dotId, specId, response
func (*ORM) WithDataSource ¶ added in v2.12.0
func (_m *ORM) WithDataSource(_a0 sqlutil.DataSource) bridges.ORM
WithDataSource provides a mock function with given fields: _a0