sync

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback added in v0.10.0

type Callback struct {
	mock.Mock
}

Callback is an autogenerated mock type for the Callback type

func NewCallback added in v0.10.0

func NewCallback(t interface {
	mock.TestingT
	Cleanup(func())
}) *Callback

NewCallback creates a new instance of Callback. 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 (*Callback) EXPECT added in v0.10.0

func (_m *Callback) EXPECT() *Callback_Expecter

func (*Callback) OnFailure added in v0.10.0

func (_mock *Callback) OnFailure(err error)

OnFailure provides a mock function for the type Callback

func (*Callback) OnSuccess added in v0.10.0

func (_mock *Callback) OnSuccess()

OnSuccess provides a mock function for the type Callback

type Callback_Expecter added in v0.10.0

type Callback_Expecter struct {
	// contains filtered or unexported fields
}

func (*Callback_Expecter) OnFailure added in v0.10.0

func (_e *Callback_Expecter) OnFailure(err interface{}) *Callback_OnFailure_Call

OnFailure is a helper method to define mock.On call

  • err

func (*Callback_Expecter) OnSuccess added in v0.10.0

func (_e *Callback_Expecter) OnSuccess() *Callback_OnSuccess_Call

OnSuccess is a helper method to define mock.On call

type Callback_OnFailure_Call added in v0.10.0

type Callback_OnFailure_Call struct {
	*mock.Call
}

Callback_OnFailure_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnFailure'

func (*Callback_OnFailure_Call) Return added in v0.10.0

func (*Callback_OnFailure_Call) Run added in v0.10.0

func (_c *Callback_OnFailure_Call) Run(run func(err error)) *Callback_OnFailure_Call

func (*Callback_OnFailure_Call) RunAndReturn added in v0.10.0

func (_c *Callback_OnFailure_Call) RunAndReturn(run func(err error)) *Callback_OnFailure_Call

type Callback_OnSuccess_Call added in v0.10.0

type Callback_OnSuccess_Call struct {
	*mock.Call
}

Callback_OnSuccess_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnSuccess'

func (*Callback_OnSuccess_Call) Return added in v0.10.0

func (*Callback_OnSuccess_Call) Run added in v0.10.0

func (_c *Callback_OnSuccess_Call) Run(run func()) *Callback_OnSuccess_Call

func (*Callback_OnSuccess_Call) RunAndReturn added in v0.10.0

func (_c *Callback_OnSuccess_Call) RunAndReturn(run func()) *Callback_OnSuccess_Call

type Target

type Target struct {
	mock.Mock
}

Target is an autogenerated mock type for the Target type

func NewTarget

func NewTarget(t interface {
	mock.TestingT
	Cleanup(func())
}) *Target

NewTarget creates a new instance of Target. 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 (*Target) EXPECT

func (_m *Target) EXPECT() *Target_Expecter

func (*Target) FullSync

func (_mock *Target) FullSync(sync *config.Sync) error

FullSync provides a mock function for the type Target

func (*Target) SelectiveSync added in v0.6.0

func (_mock *Target) SelectiveSync(sync *config.Sync) error

SelectiveSync provides a mock function for the type Target

type Target_Expecter

type Target_Expecter struct {
	// contains filtered or unexported fields
}

func (*Target_Expecter) FullSync

func (_e *Target_Expecter) FullSync(sync interface{}) *Target_FullSync_Call

FullSync is a helper method to define mock.On call

  • sync

func (*Target_Expecter) SelectiveSync added in v0.6.0

func (_e *Target_Expecter) SelectiveSync(sync interface{}) *Target_SelectiveSync_Call

SelectiveSync is a helper method to define mock.On call

  • sync

type Target_FullSync_Call

type Target_FullSync_Call struct {
	*mock.Call
}

Target_FullSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FullSync'

func (*Target_FullSync_Call) Return

func (*Target_FullSync_Call) Run

func (_c *Target_FullSync_Call) Run(run func(sync *config.Sync)) *Target_FullSync_Call

func (*Target_FullSync_Call) RunAndReturn

func (_c *Target_FullSync_Call) RunAndReturn(run func(sync *config.Sync) error) *Target_FullSync_Call

type Target_SelectiveSync_Call added in v0.6.0

type Target_SelectiveSync_Call struct {
	*mock.Call
}

Target_SelectiveSync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SelectiveSync'

func (*Target_SelectiveSync_Call) Return added in v0.6.0

func (*Target_SelectiveSync_Call) Run added in v0.6.0

func (*Target_SelectiveSync_Call) RunAndReturn added in v0.6.0

func (_c *Target_SelectiveSync_Call) RunAndReturn(run func(sync *config.Sync) error) *Target_SelectiveSync_Call

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL