Documentation ¶
Index ¶
- type DaemonFetcher
- type FetchFn
- type Progress
- type StatusDescriber
- func (_m *StatusDescriber) Error(err error)
- func (_m *StatusDescriber) OnError(_a0 func(error) error)
- func (_m *StatusDescriber) OnSuccess(_a0 func() error)
- func (_m *StatusDescriber) OnSyncing(_a0 func() error)
- func (_m *StatusDescriber) Progress() (int, int)
- func (_m *StatusDescriber) SetProgress(current int, total int)
- func (_m *StatusDescriber) Success()
- func (_m *StatusDescriber) Syncing()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DaemonFetcher ¶
DaemonFetcher is an autogenerated mock type for the DaemonFetcher type
func NewDaemonFetcher ¶
func NewDaemonFetcher(t interface { mock.TestingT Cleanup(func()) }) *DaemonFetcher
NewDaemonFetcher creates a new instance of DaemonFetcher. 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 (*DaemonFetcher) Fetch ¶
func (_m *DaemonFetcher) Fetch(isHardRefresh bool) error
Fetch provides a mock function with given fields: isHardRefresh
func (*DaemonFetcher) Notify ¶
func (_m *DaemonFetcher) Notify(isHardRefresh bool) (chan bool, error)
Notify provides a mock function with given fields: isHardRefresh
func (*DaemonFetcher) Start ¶
func (_m *DaemonFetcher) Start(_a0 context.Context)
Start provides a mock function with given fields: _a0
func (*DaemonFetcher) Stop ¶
func (_m *DaemonFetcher) Stop()
Stop provides a mock function with given fields:
func (*DaemonFetcher) UIRefresh ¶
func (_m *DaemonFetcher) UIRefresh() chan bool
UIRefresh provides a mock function with given fields:
type FetchFn ¶
FetchFn is an autogenerated mock type for the FetchFn type
func NewFetchFn ¶
NewFetchFn creates a new instance of FetchFn. 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.
type Progress ¶
Progress is an autogenerated mock type for the Progress type
func NewProgress ¶
NewProgress creates a new instance of Progress. 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.
type StatusDescriber ¶
StatusDescriber is an autogenerated mock type for the StatusDescriber type
func NewStatusDescriber ¶
func NewStatusDescriber(t interface { mock.TestingT Cleanup(func()) }) *StatusDescriber
NewStatusDescriber creates a new instance of StatusDescriber. 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 (*StatusDescriber) Error ¶
func (_m *StatusDescriber) Error(err error)
Error provides a mock function with given fields: err
func (*StatusDescriber) OnError ¶
func (_m *StatusDescriber) OnError(_a0 func(error) error)
OnError provides a mock function with given fields: _a0
func (*StatusDescriber) OnSuccess ¶
func (_m *StatusDescriber) OnSuccess(_a0 func() error)
OnSuccess provides a mock function with given fields: _a0
func (*StatusDescriber) OnSyncing ¶
func (_m *StatusDescriber) OnSyncing(_a0 func() error)
OnSyncing provides a mock function with given fields: _a0
func (*StatusDescriber) Progress ¶
func (_m *StatusDescriber) Progress() (int, int)
Progress provides a mock function with given fields:
func (*StatusDescriber) SetProgress ¶
func (_m *StatusDescriber) SetProgress(current int, total int)
SetProgress provides a mock function with given fields: current, total
func (*StatusDescriber) Success ¶
func (_m *StatusDescriber) Success()
Success provides a mock function with given fields:
func (*StatusDescriber) Syncing ¶
func (_m *StatusDescriber) Syncing()
Syncing provides a mock function with given fields: