Documentation ¶
Index ¶
- type MockContentClaimsStore
- type MockContentClaimsStore_Expecter
- type MockContentClaimsStore_Get_Call
- func (_c *MockContentClaimsStore_Get_Call) Return(_a0 delegation.Delegation, _a1 error) *MockContentClaimsStore_Get_Call
- func (_c *MockContentClaimsStore_Get_Call) Run(run func(ctx context.Context, key ipld.Link)) *MockContentClaimsStore_Get_Call
- func (_c *MockContentClaimsStore_Get_Call) RunAndReturn(run func(context.Context, ipld.Link) (delegation.Delegation, error)) *MockContentClaimsStore_Get_Call
- type MockContentClaimsStore_Put_Call
- func (_c *MockContentClaimsStore_Put_Call) Return(_a0 error) *MockContentClaimsStore_Put_Call
- func (_c *MockContentClaimsStore_Put_Call) Run(run func(ctx context.Context, key ipld.Link, value delegation.Delegation)) *MockContentClaimsStore_Put_Call
- func (_c *MockContentClaimsStore_Put_Call) RunAndReturn(run func(context.Context, ipld.Link, delegation.Delegation) error) *MockContentClaimsStore_Put_Call
- type MockContentToClaimsMapper
- type MockContentToClaimsMapper_Expecter
- type MockContentToClaimsMapper_GetClaims_Call
- func (_c *MockContentToClaimsMapper_GetClaims_Call) Return(claimsCids []cid.Cid, err error) *MockContentToClaimsMapper_GetClaims_Call
- func (_c *MockContentToClaimsMapper_GetClaims_Call) Run(run func(ctx context.Context, contentHash multihash.Multihash)) *MockContentToClaimsMapper_GetClaims_Call
- func (_c *MockContentToClaimsMapper_GetClaims_Call) RunAndReturn(run func(context.Context, multihash.Multihash) ([]cid.Cid, error)) *MockContentToClaimsMapper_GetClaims_Call
- type MockFinder
- type MockFinder_Expecter
- type MockFinder_Find_Call
- func (_c *MockFinder_Find_Call) Return(_a0 *model.FindResponse, _a1 error) *MockFinder_Find_Call
- func (_c *MockFinder_Find_Call) Run(run func(_a0 context.Context, _a1 multihash.Multihash)) *MockFinder_Find_Call
- func (_c *MockFinder_Find_Call) RunAndReturn(run func(context.Context, multihash.Multihash) (*model.FindResponse, error)) *MockFinder_Find_Call
- type MockLegacyClaimsFinder
- type MockLegacyClaimsFinder_Expecter
- type MockLegacyClaimsFinder_Find_Call
- func (_c *MockLegacyClaimsFinder_Find_Call) Return(_a0 []model.ProviderResult, _a1 error) *MockLegacyClaimsFinder_Find_Call
- func (_c *MockLegacyClaimsFinder_Find_Call) Run(run func(ctx context.Context, contentHash multihash.Multihash)) *MockLegacyClaimsFinder_Find_Call
- func (_c *MockLegacyClaimsFinder_Find_Call) RunAndReturn(run func(context.Context, multihash.Multihash) ([]model.ProviderResult, error)) *MockLegacyClaimsFinder_Find_Call
- type MockProviderStore
- func (_m *MockProviderStore) EXPECT() *MockProviderStore_Expecter
- func (_m *MockProviderStore) Get(ctx context.Context, key multihash.Multihash) ([]model.ProviderResult, error)
- func (_m *MockProviderStore) Set(ctx context.Context, key multihash.Multihash, value []model.ProviderResult, ...) error
- func (_m *MockProviderStore) SetExpirable(ctx context.Context, key multihash.Multihash, expires bool) error
- type MockProviderStore_Expecter
- func (_e *MockProviderStore_Expecter) Get(ctx interface{}, key interface{}) *MockProviderStore_Get_Call
- func (_e *MockProviderStore_Expecter) Set(ctx interface{}, key interface{}, value interface{}, expires interface{}) *MockProviderStore_Set_Call
- func (_e *MockProviderStore_Expecter) SetExpirable(ctx interface{}, key interface{}, expires interface{}) *MockProviderStore_SetExpirable_Call
- type MockProviderStore_Get_Call
- func (_c *MockProviderStore_Get_Call) Return(_a0 []model.ProviderResult, _a1 error) *MockProviderStore_Get_Call
- func (_c *MockProviderStore_Get_Call) Run(run func(ctx context.Context, key multihash.Multihash)) *MockProviderStore_Get_Call
- func (_c *MockProviderStore_Get_Call) RunAndReturn(run func(context.Context, multihash.Multihash) ([]model.ProviderResult, error)) *MockProviderStore_Get_Call
- type MockProviderStore_SetExpirable_Call
- func (_c *MockProviderStore_SetExpirable_Call) Return(_a0 error) *MockProviderStore_SetExpirable_Call
- func (_c *MockProviderStore_SetExpirable_Call) Run(run func(ctx context.Context, key multihash.Multihash, expires bool)) *MockProviderStore_SetExpirable_Call
- func (_c *MockProviderStore_SetExpirable_Call) RunAndReturn(run func(context.Context, multihash.Multihash, bool) error) *MockProviderStore_SetExpirable_Call
- type MockProviderStore_Set_Call
- type MockPublisher
- type MockPublisher_Expecter
- type MockPublisher_Publish_Call
- func (_c *MockPublisher_Publish_Call) Return(_a0 ipld.Link, _a1 error) *MockPublisher_Publish_Call
- func (_c *MockPublisher_Publish_Call) Run(run func(ctx context.Context, provider peer.AddrInfo, contextID string, ...)) *MockPublisher_Publish_Call
- func (_c *MockPublisher_Publish_Call) RunAndReturn(...) *MockPublisher_Publish_Call
- type MockQueryAPIClient
- type MockQueryAPIClient_Expecter
- type MockQueryAPIClient_Query_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContentClaimsStore ¶
MockContentClaimsStore is an autogenerated mock type for the ContentClaimsStore type
func NewMockContentClaimsStore ¶
func NewMockContentClaimsStore(t interface { mock.TestingT Cleanup(func()) }) *MockContentClaimsStore
NewMockContentClaimsStore creates a new instance of MockContentClaimsStore. 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 (*MockContentClaimsStore) EXPECT ¶
func (_m *MockContentClaimsStore) EXPECT() *MockContentClaimsStore_Expecter
func (*MockContentClaimsStore) Get ¶
func (_m *MockContentClaimsStore) Get(ctx context.Context, key ipld.Link) (delegation.Delegation, error)
Get provides a mock function with given fields: ctx, key
func (*MockContentClaimsStore) Put ¶
func (_m *MockContentClaimsStore) Put(ctx context.Context, key ipld.Link, value delegation.Delegation) error
Put provides a mock function with given fields: ctx, key, value
type MockContentClaimsStore_Expecter ¶
type MockContentClaimsStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockContentClaimsStore_Expecter) Get ¶
func (_e *MockContentClaimsStore_Expecter) Get(ctx interface{}, key interface{}) *MockContentClaimsStore_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key ipld.Link
func (*MockContentClaimsStore_Expecter) Put ¶
func (_e *MockContentClaimsStore_Expecter) Put(ctx interface{}, key interface{}, value interface{}) *MockContentClaimsStore_Put_Call
Put is a helper method to define mock.On call
- ctx context.Context
- key ipld.Link
- value delegation.Delegation
type MockContentClaimsStore_Get_Call ¶
MockContentClaimsStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockContentClaimsStore_Get_Call) Return ¶
func (_c *MockContentClaimsStore_Get_Call) Return(_a0 delegation.Delegation, _a1 error) *MockContentClaimsStore_Get_Call
func (*MockContentClaimsStore_Get_Call) Run ¶
func (_c *MockContentClaimsStore_Get_Call) Run(run func(ctx context.Context, key ipld.Link)) *MockContentClaimsStore_Get_Call
func (*MockContentClaimsStore_Get_Call) RunAndReturn ¶
func (_c *MockContentClaimsStore_Get_Call) RunAndReturn(run func(context.Context, ipld.Link) (delegation.Delegation, error)) *MockContentClaimsStore_Get_Call
type MockContentClaimsStore_Put_Call ¶
MockContentClaimsStore_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*MockContentClaimsStore_Put_Call) Return ¶
func (_c *MockContentClaimsStore_Put_Call) Return(_a0 error) *MockContentClaimsStore_Put_Call
func (*MockContentClaimsStore_Put_Call) Run ¶
func (_c *MockContentClaimsStore_Put_Call) Run(run func(ctx context.Context, key ipld.Link, value delegation.Delegation)) *MockContentClaimsStore_Put_Call
func (*MockContentClaimsStore_Put_Call) RunAndReturn ¶
func (_c *MockContentClaimsStore_Put_Call) RunAndReturn(run func(context.Context, ipld.Link, delegation.Delegation) error) *MockContentClaimsStore_Put_Call
type MockContentToClaimsMapper ¶
MockContentToClaimsMapper is an autogenerated mock type for the ContentToClaimsMapper type
func NewMockContentToClaimsMapper ¶
func NewMockContentToClaimsMapper(t interface { mock.TestingT Cleanup(func()) }) *MockContentToClaimsMapper
NewMockContentToClaimsMapper creates a new instance of MockContentToClaimsMapper. 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 (*MockContentToClaimsMapper) EXPECT ¶
func (_m *MockContentToClaimsMapper) EXPECT() *MockContentToClaimsMapper_Expecter
type MockContentToClaimsMapper_Expecter ¶
type MockContentToClaimsMapper_Expecter struct {
// contains filtered or unexported fields
}
func (*MockContentToClaimsMapper_Expecter) GetClaims ¶
func (_e *MockContentToClaimsMapper_Expecter) GetClaims(ctx interface{}, contentHash interface{}) *MockContentToClaimsMapper_GetClaims_Call
GetClaims is a helper method to define mock.On call
- ctx context.Context
- contentHash multihash.Multihash
type MockContentToClaimsMapper_GetClaims_Call ¶
MockContentToClaimsMapper_GetClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClaims'
func (*MockContentToClaimsMapper_GetClaims_Call) Return ¶
func (_c *MockContentToClaimsMapper_GetClaims_Call) Return(claimsCids []cid.Cid, err error) *MockContentToClaimsMapper_GetClaims_Call
func (*MockContentToClaimsMapper_GetClaims_Call) Run ¶
func (_c *MockContentToClaimsMapper_GetClaims_Call) Run(run func(ctx context.Context, contentHash multihash.Multihash)) *MockContentToClaimsMapper_GetClaims_Call
func (*MockContentToClaimsMapper_GetClaims_Call) RunAndReturn ¶
func (_c *MockContentToClaimsMapper_GetClaims_Call) RunAndReturn(run func(context.Context, multihash.Multihash) ([]cid.Cid, error)) *MockContentToClaimsMapper_GetClaims_Call
type MockFinder ¶
MockFinder is an autogenerated mock type for the Finder type
func NewMockFinder ¶
func NewMockFinder(t interface { mock.TestingT Cleanup(func()) }) *MockFinder
NewMockFinder creates a new instance of MockFinder. 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 (*MockFinder) EXPECT ¶
func (_m *MockFinder) EXPECT() *MockFinder_Expecter
func (*MockFinder) Find ¶
func (_m *MockFinder) Find(_a0 context.Context, _a1 multihash.Multihash) (*model.FindResponse, error)
Find provides a mock function with given fields: _a0, _a1
type MockFinder_Expecter ¶
type MockFinder_Expecter struct {
// contains filtered or unexported fields
}
func (*MockFinder_Expecter) Find ¶
func (_e *MockFinder_Expecter) Find(_a0 interface{}, _a1 interface{}) *MockFinder_Find_Call
Find is a helper method to define mock.On call
- _a0 context.Context
- _a1 multihash.Multihash
type MockFinder_Find_Call ¶
MockFinder_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockFinder_Find_Call) Return ¶
func (_c *MockFinder_Find_Call) Return(_a0 *model.FindResponse, _a1 error) *MockFinder_Find_Call
func (*MockFinder_Find_Call) Run ¶
func (_c *MockFinder_Find_Call) Run(run func(_a0 context.Context, _a1 multihash.Multihash)) *MockFinder_Find_Call
func (*MockFinder_Find_Call) RunAndReturn ¶
func (_c *MockFinder_Find_Call) RunAndReturn(run func(context.Context, multihash.Multihash) (*model.FindResponse, error)) *MockFinder_Find_Call
type MockLegacyClaimsFinder ¶
MockLegacyClaimsFinder is an autogenerated mock type for the LegacyClaimsFinder type
func NewMockLegacyClaimsFinder ¶
func NewMockLegacyClaimsFinder(t interface { mock.TestingT Cleanup(func()) }) *MockLegacyClaimsFinder
NewMockLegacyClaimsFinder creates a new instance of MockLegacyClaimsFinder. 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 (*MockLegacyClaimsFinder) EXPECT ¶
func (_m *MockLegacyClaimsFinder) EXPECT() *MockLegacyClaimsFinder_Expecter
func (*MockLegacyClaimsFinder) Find ¶
func (_m *MockLegacyClaimsFinder) Find(ctx context.Context, contentHash multihash.Multihash) ([]model.ProviderResult, error)
Find provides a mock function with given fields: ctx, contentHash
type MockLegacyClaimsFinder_Expecter ¶
type MockLegacyClaimsFinder_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLegacyClaimsFinder_Expecter) Find ¶
func (_e *MockLegacyClaimsFinder_Expecter) Find(ctx interface{}, contentHash interface{}) *MockLegacyClaimsFinder_Find_Call
Find is a helper method to define mock.On call
- ctx context.Context
- contentHash multihash.Multihash
type MockLegacyClaimsFinder_Find_Call ¶
MockLegacyClaimsFinder_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockLegacyClaimsFinder_Find_Call) Return ¶
func (_c *MockLegacyClaimsFinder_Find_Call) Return(_a0 []model.ProviderResult, _a1 error) *MockLegacyClaimsFinder_Find_Call
func (*MockLegacyClaimsFinder_Find_Call) Run ¶
func (_c *MockLegacyClaimsFinder_Find_Call) Run(run func(ctx context.Context, contentHash multihash.Multihash)) *MockLegacyClaimsFinder_Find_Call
func (*MockLegacyClaimsFinder_Find_Call) RunAndReturn ¶
func (_c *MockLegacyClaimsFinder_Find_Call) RunAndReturn(run func(context.Context, multihash.Multihash) ([]model.ProviderResult, error)) *MockLegacyClaimsFinder_Find_Call
type MockProviderStore ¶
MockProviderStore is an autogenerated mock type for the ProviderStore type
func NewMockProviderStore ¶
func NewMockProviderStore(t interface { mock.TestingT Cleanup(func()) }) *MockProviderStore
NewMockProviderStore creates a new instance of MockProviderStore. 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 (*MockProviderStore) EXPECT ¶
func (_m *MockProviderStore) EXPECT() *MockProviderStore_Expecter
func (*MockProviderStore) Get ¶
func (_m *MockProviderStore) Get(ctx context.Context, key multihash.Multihash) ([]model.ProviderResult, error)
Get provides a mock function with given fields: ctx, key
func (*MockProviderStore) Set ¶
func (_m *MockProviderStore) Set(ctx context.Context, key multihash.Multihash, value []model.ProviderResult, expires bool) error
Set provides a mock function with given fields: ctx, key, value, expires
func (*MockProviderStore) SetExpirable ¶
func (_m *MockProviderStore) SetExpirable(ctx context.Context, key multihash.Multihash, expires bool) error
SetExpirable provides a mock function with given fields: ctx, key, expires
type MockProviderStore_Expecter ¶
type MockProviderStore_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProviderStore_Expecter) Get ¶
func (_e *MockProviderStore_Expecter) Get(ctx interface{}, key interface{}) *MockProviderStore_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key multihash.Multihash
func (*MockProviderStore_Expecter) Set ¶
func (_e *MockProviderStore_Expecter) Set(ctx interface{}, key interface{}, value interface{}, expires interface{}) *MockProviderStore_Set_Call
Set is a helper method to define mock.On call
- ctx context.Context
- key multihash.Multihash
- value []model.ProviderResult
- expires bool
func (*MockProviderStore_Expecter) SetExpirable ¶
func (_e *MockProviderStore_Expecter) SetExpirable(ctx interface{}, key interface{}, expires interface{}) *MockProviderStore_SetExpirable_Call
SetExpirable is a helper method to define mock.On call
- ctx context.Context
- key multihash.Multihash
- expires bool
type MockProviderStore_Get_Call ¶
MockProviderStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockProviderStore_Get_Call) Return ¶
func (_c *MockProviderStore_Get_Call) Return(_a0 []model.ProviderResult, _a1 error) *MockProviderStore_Get_Call
func (*MockProviderStore_Get_Call) Run ¶
func (_c *MockProviderStore_Get_Call) Run(run func(ctx context.Context, key multihash.Multihash)) *MockProviderStore_Get_Call
func (*MockProviderStore_Get_Call) RunAndReturn ¶
func (_c *MockProviderStore_Get_Call) RunAndReturn(run func(context.Context, multihash.Multihash) ([]model.ProviderResult, error)) *MockProviderStore_Get_Call
type MockProviderStore_SetExpirable_Call ¶
MockProviderStore_SetExpirable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetExpirable'
func (*MockProviderStore_SetExpirable_Call) Return ¶
func (_c *MockProviderStore_SetExpirable_Call) Return(_a0 error) *MockProviderStore_SetExpirable_Call
func (*MockProviderStore_SetExpirable_Call) Run ¶
func (_c *MockProviderStore_SetExpirable_Call) Run(run func(ctx context.Context, key multihash.Multihash, expires bool)) *MockProviderStore_SetExpirable_Call
func (*MockProviderStore_SetExpirable_Call) RunAndReturn ¶
func (_c *MockProviderStore_SetExpirable_Call) RunAndReturn(run func(context.Context, multihash.Multihash, bool) error) *MockProviderStore_SetExpirable_Call
type MockProviderStore_Set_Call ¶
MockProviderStore_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*MockProviderStore_Set_Call) Return ¶
func (_c *MockProviderStore_Set_Call) Return(_a0 error) *MockProviderStore_Set_Call
func (*MockProviderStore_Set_Call) Run ¶
func (_c *MockProviderStore_Set_Call) Run(run func(ctx context.Context, key multihash.Multihash, value []model.ProviderResult, expires bool)) *MockProviderStore_Set_Call
func (*MockProviderStore_Set_Call) RunAndReturn ¶
func (_c *MockProviderStore_Set_Call) RunAndReturn(run func(context.Context, multihash.Multihash, []model.ProviderResult, bool) error) *MockProviderStore_Set_Call
type MockPublisher ¶
MockPublisher is an autogenerated mock type for the Publisher type
func NewMockPublisher ¶
func NewMockPublisher(t interface { mock.TestingT Cleanup(func()) }) *MockPublisher
NewMockPublisher creates a new instance of MockPublisher. 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 (*MockPublisher) EXPECT ¶
func (_m *MockPublisher) EXPECT() *MockPublisher_Expecter
func (*MockPublisher) Publish ¶
func (_m *MockPublisher) Publish(ctx context.Context, provider peer.AddrInfo, contextID string, digests iter.Seq[multihash.Multihash], meta metadata.Metadata) (ipld.Link, error)
Publish provides a mock function with given fields: ctx, provider, contextID, digests, meta
type MockPublisher_Expecter ¶
type MockPublisher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPublisher_Expecter) Publish ¶
func (_e *MockPublisher_Expecter) Publish(ctx interface{}, provider interface{}, contextID interface{}, digests interface{}, meta interface{}) *MockPublisher_Publish_Call
Publish is a helper method to define mock.On call
- ctx context.Context
- provider peer.AddrInfo
- contextID string
- digests iter.Seq[multihash.Multihash]
- meta metadata.Metadata
type MockPublisher_Publish_Call ¶
MockPublisher_Publish_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Publish'
func (*MockPublisher_Publish_Call) Return ¶
func (_c *MockPublisher_Publish_Call) Return(_a0 ipld.Link, _a1 error) *MockPublisher_Publish_Call
type MockQueryAPIClient ¶
MockQueryAPIClient is an autogenerated mock type for the QueryAPIClient type
func NewMockQueryAPIClient ¶
func NewMockQueryAPIClient(t interface { mock.TestingT Cleanup(func()) }) *MockQueryAPIClient
NewMockQueryAPIClient creates a new instance of MockQueryAPIClient. 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 (*MockQueryAPIClient) EXPECT ¶
func (_m *MockQueryAPIClient) EXPECT() *MockQueryAPIClient_Expecter
func (*MockQueryAPIClient) Query ¶
func (_m *MockQueryAPIClient) Query(_a0 context.Context, _a1 *dynamodb.QueryInput, _a2 ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)
Query provides a mock function with given fields: _a0, _a1, _a2
type MockQueryAPIClient_Expecter ¶
type MockQueryAPIClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockQueryAPIClient_Expecter) Query ¶
func (_e *MockQueryAPIClient_Expecter) Query(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *MockQueryAPIClient_Query_Call
Query is a helper method to define mock.On call
- _a0 context.Context
- _a1 *dynamodb.QueryInput
- _a2 ...func(*dynamodb.Options)
type MockQueryAPIClient_Query_Call ¶
MockQueryAPIClient_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*MockQueryAPIClient_Query_Call) Return ¶
func (_c *MockQueryAPIClient_Query_Call) Return(_a0 *dynamodb.QueryOutput, _a1 error) *MockQueryAPIClient_Query_Call
func (*MockQueryAPIClient_Query_Call) Run ¶
func (_c *MockQueryAPIClient_Query_Call) Run(run func(_a0 context.Context, _a1 *dynamodb.QueryInput, _a2 ...func(*dynamodb.Options))) *MockQueryAPIClient_Query_Call
func (*MockQueryAPIClient_Query_Call) RunAndReturn ¶
func (_c *MockQueryAPIClient_Query_Call) RunAndReturn(run func(context.Context, *dynamodb.QueryInput, ...func(*dynamodb.Options)) (*dynamodb.QueryOutput, error)) *MockQueryAPIClient_Query_Call