Documentation ¶
Index ¶
- type CapacityClient
- type IncrementalCache
- func (_m *IncrementalCache) Get(repo string, since time.Time, maxCommits int) (*incremental.Update, error)
- func (_m *IncrementalCache) GetAll(repo string, maxCommits int) (*incremental.Update, error)
- func (_m *IncrementalCache) GetRange(repo string, from time.Time, to time.Time, maxCommits int) (*incremental.Update, error)
- func (_m *IncrementalCache) Update(ctx context.Context, reset bool) error
- func (_m *IncrementalCache) UpdateLoop(ctx context.Context, frequency time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapacityClient ¶
CapacityClient is an autogenerated mock type for the CapacityClient type
func NewCapacityClient ¶
func NewCapacityClient(t interface { mock.TestingT Cleanup(func()) }) *CapacityClient
NewCapacityClient creates a new instance of CapacityClient. 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 (*CapacityClient) CapacityMetrics ¶
func (_m *CapacityClient) CapacityMetrics() map[string]capacity.BotConfig
CapacityMetrics provides a mock function with given fields:
func (*CapacityClient) QueryAll ¶
func (_m *CapacityClient) QueryAll(ctx context.Context) error
QueryAll provides a mock function with given fields: ctx
func (*CapacityClient) StartLoading ¶
func (_m *CapacityClient) StartLoading(ctx context.Context, interval time.Duration)
StartLoading provides a mock function with given fields: ctx, interval
type IncrementalCache ¶
IncrementalCache is an autogenerated mock type for the IncrementalCache type
func NewIncrementalCache ¶
func NewIncrementalCache(t interface { mock.TestingT Cleanup(func()) }) *IncrementalCache
NewIncrementalCache creates a new instance of IncrementalCache. 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 (*IncrementalCache) Get ¶
func (_m *IncrementalCache) Get(repo string, since time.Time, maxCommits int) (*incremental.Update, error)
Get provides a mock function with given fields: repo, since, maxCommits
func (*IncrementalCache) GetAll ¶
func (_m *IncrementalCache) GetAll(repo string, maxCommits int) (*incremental.Update, error)
GetAll provides a mock function with given fields: repo, maxCommits
func (*IncrementalCache) GetRange ¶
func (_m *IncrementalCache) GetRange(repo string, from time.Time, to time.Time, maxCommits int) (*incremental.Update, error)
GetRange provides a mock function with given fields: repo, from, to, maxCommits
func (*IncrementalCache) Update ¶
func (_m *IncrementalCache) Update(ctx context.Context, reset bool) error
Update provides a mock function with given fields: ctx, reset
func (*IncrementalCache) UpdateLoop ¶
func (_m *IncrementalCache) UpdateLoop(ctx context.Context, frequency time.Duration)
UpdateLoop provides a mock function with given fields: ctx, frequency