controls

package
v1.10.5 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockChannelProvider

type MockChannelProvider struct {
	mock.Mock
}

MockChannelProvider is an autogenerated mock type for the ChannelProvider type

func NewMockChannelProvider

func NewMockChannelProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockChannelProvider

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

func (*MockChannelProvider) Errors

func (_mock *MockChannelProvider) Errors() chan error

Errors provides a mock function for the type MockChannelProvider

func (*MockChannelProvider) Health

func (_mock *MockChannelProvider) Health() chan controls.HealthMessage

Health provides a mock function for the type MockChannelProvider

func (*MockChannelProvider) Messages

func (_mock *MockChannelProvider) Messages() chan controls.Message

Messages provides a mock function for the type MockChannelProvider

func (*MockChannelProvider) Signals

func (_mock *MockChannelProvider) Signals() chan os.Signal

Signals provides a mock function for the type MockChannelProvider

type MockChannelProvider_Errors_Call

type MockChannelProvider_Errors_Call struct {
	*mock.Call
}

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

func (*MockChannelProvider_Errors_Call) Return

func (*MockChannelProvider_Errors_Call) Run

func (*MockChannelProvider_Errors_Call) RunAndReturn

func (_c *MockChannelProvider_Errors_Call) RunAndReturn(run func() chan error) *MockChannelProvider_Errors_Call

type MockChannelProvider_Expecter

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

func (*MockChannelProvider_Expecter) Errors

Errors is a helper method to define mock.On call

func (*MockChannelProvider_Expecter) Health

Health is a helper method to define mock.On call

func (*MockChannelProvider_Expecter) Messages

Messages is a helper method to define mock.On call

func (*MockChannelProvider_Expecter) Signals

Signals is a helper method to define mock.On call

type MockChannelProvider_Health_Call

type MockChannelProvider_Health_Call struct {
	*mock.Call
}

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

func (*MockChannelProvider_Health_Call) Return

func (*MockChannelProvider_Health_Call) Run

func (*MockChannelProvider_Health_Call) RunAndReturn

type MockChannelProvider_Messages_Call

type MockChannelProvider_Messages_Call struct {
	*mock.Call
}

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

func (*MockChannelProvider_Messages_Call) Return

func (*MockChannelProvider_Messages_Call) Run

func (*MockChannelProvider_Messages_Call) RunAndReturn

type MockChannelProvider_Signals_Call

type MockChannelProvider_Signals_Call struct {
	*mock.Call
}

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

func (*MockChannelProvider_Signals_Call) Return

func (*MockChannelProvider_Signals_Call) Run

func (*MockChannelProvider_Signals_Call) RunAndReturn

type MockConfigurable

type MockConfigurable struct {
	mock.Mock
}

MockConfigurable is an autogenerated mock type for the Configurable type

func NewMockConfigurable

func NewMockConfigurable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigurable

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

func (*MockConfigurable) SetErrorsChannel

func (_mock *MockConfigurable) SetErrorsChannel(errs chan error)

SetErrorsChannel provides a mock function for the type MockConfigurable

func (*MockConfigurable) SetHealthChannel

func (_mock *MockConfigurable) SetHealthChannel(health chan controls.HealthMessage)

SetHealthChannel provides a mock function for the type MockConfigurable

func (*MockConfigurable) SetLogger

func (_mock *MockConfigurable) SetLogger(l logger.Logger)

SetLogger provides a mock function for the type MockConfigurable

func (*MockConfigurable) SetMessageChannel

func (_mock *MockConfigurable) SetMessageChannel(control chan controls.Message)

SetMessageChannel provides a mock function for the type MockConfigurable

func (*MockConfigurable) SetShutdownTimeout

func (_mock *MockConfigurable) SetShutdownTimeout(d time.Duration)

SetShutdownTimeout provides a mock function for the type MockConfigurable

func (*MockConfigurable) SetSignalsChannel

func (_mock *MockConfigurable) SetSignalsChannel(sigs chan os.Signal)

SetSignalsChannel provides a mock function for the type MockConfigurable

func (*MockConfigurable) SetWaitGroup

func (_mock *MockConfigurable) SetWaitGroup(wg *sync.WaitGroup)

SetWaitGroup provides a mock function for the type MockConfigurable

type MockConfigurable_Expecter

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

func (*MockConfigurable_Expecter) SetErrorsChannel

func (_e *MockConfigurable_Expecter) SetErrorsChannel(errs interface{}) *MockConfigurable_SetErrorsChannel_Call

SetErrorsChannel is a helper method to define mock.On call

  • errs chan error

func (*MockConfigurable_Expecter) SetHealthChannel

func (_e *MockConfigurable_Expecter) SetHealthChannel(health interface{}) *MockConfigurable_SetHealthChannel_Call

SetHealthChannel is a helper method to define mock.On call

  • health chan controls.HealthMessage

func (*MockConfigurable_Expecter) SetLogger

func (_e *MockConfigurable_Expecter) SetLogger(l interface{}) *MockConfigurable_SetLogger_Call

SetLogger is a helper method to define mock.On call

  • l logger.Logger

func (*MockConfigurable_Expecter) SetMessageChannel

func (_e *MockConfigurable_Expecter) SetMessageChannel(control interface{}) *MockConfigurable_SetMessageChannel_Call

SetMessageChannel is a helper method to define mock.On call

  • control chan controls.Message

func (*MockConfigurable_Expecter) SetShutdownTimeout

func (_e *MockConfigurable_Expecter) SetShutdownTimeout(d interface{}) *MockConfigurable_SetShutdownTimeout_Call

SetShutdownTimeout is a helper method to define mock.On call

  • d time.Duration

func (*MockConfigurable_Expecter) SetSignalsChannel

func (_e *MockConfigurable_Expecter) SetSignalsChannel(sigs interface{}) *MockConfigurable_SetSignalsChannel_Call

SetSignalsChannel is a helper method to define mock.On call

  • sigs chan os.Signal

func (*MockConfigurable_Expecter) SetWaitGroup

func (_e *MockConfigurable_Expecter) SetWaitGroup(wg interface{}) *MockConfigurable_SetWaitGroup_Call

SetWaitGroup is a helper method to define mock.On call

  • wg *sync.WaitGroup

type MockConfigurable_SetErrorsChannel_Call

type MockConfigurable_SetErrorsChannel_Call struct {
	*mock.Call
}

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

func (*MockConfigurable_SetErrorsChannel_Call) Return

func (*MockConfigurable_SetErrorsChannel_Call) Run

func (*MockConfigurable_SetErrorsChannel_Call) RunAndReturn

type MockConfigurable_SetHealthChannel_Call

type MockConfigurable_SetHealthChannel_Call struct {
	*mock.Call
}

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

func (*MockConfigurable_SetHealthChannel_Call) Return

func (*MockConfigurable_SetHealthChannel_Call) Run

func (*MockConfigurable_SetHealthChannel_Call) RunAndReturn

type MockConfigurable_SetLogger_Call

type MockConfigurable_SetLogger_Call struct {
	*mock.Call
}

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

func (*MockConfigurable_SetLogger_Call) Return

func (*MockConfigurable_SetLogger_Call) Run

func (*MockConfigurable_SetLogger_Call) RunAndReturn

type MockConfigurable_SetMessageChannel_Call

type MockConfigurable_SetMessageChannel_Call struct {
	*mock.Call
}

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

func (*MockConfigurable_SetMessageChannel_Call) Return

func (*MockConfigurable_SetMessageChannel_Call) Run

func (*MockConfigurable_SetMessageChannel_Call) RunAndReturn

type MockConfigurable_SetShutdownTimeout_Call

type MockConfigurable_SetShutdownTimeout_Call struct {
	*mock.Call
}

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

func (*MockConfigurable_SetShutdownTimeout_Call) Return

func (*MockConfigurable_SetShutdownTimeout_Call) Run

func (*MockConfigurable_SetShutdownTimeout_Call) RunAndReturn

type MockConfigurable_SetSignalsChannel_Call

type MockConfigurable_SetSignalsChannel_Call struct {
	*mock.Call
}

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

func (*MockConfigurable_SetSignalsChannel_Call) Return

func (*MockConfigurable_SetSignalsChannel_Call) Run

func (*MockConfigurable_SetSignalsChannel_Call) RunAndReturn

type MockConfigurable_SetWaitGroup_Call

type MockConfigurable_SetWaitGroup_Call struct {
	*mock.Call
}

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

func (*MockConfigurable_SetWaitGroup_Call) Return

func (*MockConfigurable_SetWaitGroup_Call) Run

func (*MockConfigurable_SetWaitGroup_Call) RunAndReturn

type MockControllable

type MockControllable struct {
	mock.Mock
}

MockControllable is an autogenerated mock type for the Controllable type

func NewMockControllable

func NewMockControllable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockControllable

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

func (*MockControllable) Errors

func (_mock *MockControllable) Errors() chan error

Errors provides a mock function for the type MockControllable

func (*MockControllable) GetContext

func (_mock *MockControllable) GetContext() context.Context

GetContext provides a mock function for the type MockControllable

func (*MockControllable) GetLogger

func (_mock *MockControllable) GetLogger() logger.Logger

GetLogger provides a mock function for the type MockControllable

func (*MockControllable) GetServiceInfo added in v1.6.2

func (_mock *MockControllable) GetServiceInfo(name string) (controls.ServiceInfo, bool)

GetServiceInfo provides a mock function for the type MockControllable

func (*MockControllable) GetState

func (_mock *MockControllable) GetState() controls.State

GetState provides a mock function for the type MockControllable

func (*MockControllable) Health

func (_mock *MockControllable) Health() chan controls.HealthMessage

Health provides a mock function for the type MockControllable

func (*MockControllable) IsRunning

func (_mock *MockControllable) IsRunning() bool

IsRunning provides a mock function for the type MockControllable

func (*MockControllable) IsStopped

func (_mock *MockControllable) IsStopped() bool

IsStopped provides a mock function for the type MockControllable

func (*MockControllable) IsStopping

func (_mock *MockControllable) IsStopping() bool

IsStopping provides a mock function for the type MockControllable

func (*MockControllable) Liveness added in v1.6.2

func (_mock *MockControllable) Liveness() controls.HealthReport

Liveness provides a mock function for the type MockControllable

func (*MockControllable) Messages

func (_mock *MockControllable) Messages() chan controls.Message

Messages provides a mock function for the type MockControllable

func (*MockControllable) Readiness added in v1.6.2

func (_mock *MockControllable) Readiness() controls.HealthReport

Readiness provides a mock function for the type MockControllable

func (*MockControllable) Register

func (_mock *MockControllable) Register(id string, opts ...controls.ServiceOption)

Register provides a mock function for the type MockControllable

func (*MockControllable) SetErrorsChannel

func (_mock *MockControllable) SetErrorsChannel(errs chan error)

SetErrorsChannel provides a mock function for the type MockControllable

func (*MockControllable) SetHealthChannel

func (_mock *MockControllable) SetHealthChannel(health chan controls.HealthMessage)

SetHealthChannel provides a mock function for the type MockControllable

func (*MockControllable) SetLogger

func (_mock *MockControllable) SetLogger(l logger.Logger)

SetLogger provides a mock function for the type MockControllable

func (*MockControllable) SetMessageChannel

func (_mock *MockControllable) SetMessageChannel(control chan controls.Message)

SetMessageChannel provides a mock function for the type MockControllable

func (*MockControllable) SetShutdownTimeout

func (_mock *MockControllable) SetShutdownTimeout(d time.Duration)

SetShutdownTimeout provides a mock function for the type MockControllable

func (*MockControllable) SetSignalsChannel

func (_mock *MockControllable) SetSignalsChannel(sigs chan os.Signal)

SetSignalsChannel provides a mock function for the type MockControllable

func (*MockControllable) SetState

func (_mock *MockControllable) SetState(state controls.State)

SetState provides a mock function for the type MockControllable

func (*MockControllable) SetWaitGroup

func (_mock *MockControllable) SetWaitGroup(wg *sync.WaitGroup)

SetWaitGroup provides a mock function for the type MockControllable

func (*MockControllable) Signals

func (_mock *MockControllable) Signals() chan os.Signal

Signals provides a mock function for the type MockControllable

func (*MockControllable) Start

func (_mock *MockControllable) Start()

Start provides a mock function for the type MockControllable

func (*MockControllable) Status added in v1.6.2

func (_mock *MockControllable) Status() controls.HealthReport

Status provides a mock function for the type MockControllable

func (*MockControllable) Stop

func (_mock *MockControllable) Stop()

Stop provides a mock function for the type MockControllable

type MockControllable_Errors_Call

type MockControllable_Errors_Call struct {
	*mock.Call
}

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

func (*MockControllable_Errors_Call) Return

func (*MockControllable_Errors_Call) Run

func (*MockControllable_Errors_Call) RunAndReturn

func (_c *MockControllable_Errors_Call) RunAndReturn(run func() chan error) *MockControllable_Errors_Call

type MockControllable_Expecter

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

func (*MockControllable_Expecter) Errors

Errors is a helper method to define mock.On call

func (*MockControllable_Expecter) GetContext

GetContext is a helper method to define mock.On call

func (*MockControllable_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*MockControllable_Expecter) GetServiceInfo added in v1.6.2

func (_e *MockControllable_Expecter) GetServiceInfo(name interface{}) *MockControllable_GetServiceInfo_Call

GetServiceInfo is a helper method to define mock.On call

  • name string

func (*MockControllable_Expecter) GetState

GetState is a helper method to define mock.On call

func (*MockControllable_Expecter) Health

Health is a helper method to define mock.On call

func (*MockControllable_Expecter) IsRunning

IsRunning is a helper method to define mock.On call

func (*MockControllable_Expecter) IsStopped

IsStopped is a helper method to define mock.On call

func (*MockControllable_Expecter) IsStopping

IsStopping is a helper method to define mock.On call

func (*MockControllable_Expecter) Liveness added in v1.6.2

Liveness is a helper method to define mock.On call

func (*MockControllable_Expecter) Messages

Messages is a helper method to define mock.On call

func (*MockControllable_Expecter) Readiness added in v1.6.2

Readiness is a helper method to define mock.On call

func (*MockControllable_Expecter) Register

func (_e *MockControllable_Expecter) Register(id interface{}, opts ...interface{}) *MockControllable_Register_Call

Register is a helper method to define mock.On call

  • id string
  • opts ...controls.ServiceOption

func (*MockControllable_Expecter) SetErrorsChannel

func (_e *MockControllable_Expecter) SetErrorsChannel(errs interface{}) *MockControllable_SetErrorsChannel_Call

SetErrorsChannel is a helper method to define mock.On call

  • errs chan error

func (*MockControllable_Expecter) SetHealthChannel

func (_e *MockControllable_Expecter) SetHealthChannel(health interface{}) *MockControllable_SetHealthChannel_Call

SetHealthChannel is a helper method to define mock.On call

  • health chan controls.HealthMessage

func (*MockControllable_Expecter) SetLogger

func (_e *MockControllable_Expecter) SetLogger(l interface{}) *MockControllable_SetLogger_Call

SetLogger is a helper method to define mock.On call

  • l logger.Logger

func (*MockControllable_Expecter) SetMessageChannel

func (_e *MockControllable_Expecter) SetMessageChannel(control interface{}) *MockControllable_SetMessageChannel_Call

SetMessageChannel is a helper method to define mock.On call

  • control chan controls.Message

func (*MockControllable_Expecter) SetShutdownTimeout

func (_e *MockControllable_Expecter) SetShutdownTimeout(d interface{}) *MockControllable_SetShutdownTimeout_Call

SetShutdownTimeout is a helper method to define mock.On call

  • d time.Duration

func (*MockControllable_Expecter) SetSignalsChannel

func (_e *MockControllable_Expecter) SetSignalsChannel(sigs interface{}) *MockControllable_SetSignalsChannel_Call

SetSignalsChannel is a helper method to define mock.On call

  • sigs chan os.Signal

func (*MockControllable_Expecter) SetState

func (_e *MockControllable_Expecter) SetState(state interface{}) *MockControllable_SetState_Call

SetState is a helper method to define mock.On call

  • state controls.State

func (*MockControllable_Expecter) SetWaitGroup

func (_e *MockControllable_Expecter) SetWaitGroup(wg interface{}) *MockControllable_SetWaitGroup_Call

SetWaitGroup is a helper method to define mock.On call

  • wg *sync.WaitGroup

func (*MockControllable_Expecter) Signals

Signals is a helper method to define mock.On call

func (*MockControllable_Expecter) Start

Start is a helper method to define mock.On call

func (*MockControllable_Expecter) Status added in v1.6.2

Status is a helper method to define mock.On call

func (*MockControllable_Expecter) Stop

Stop is a helper method to define mock.On call

type MockControllable_GetContext_Call

type MockControllable_GetContext_Call struct {
	*mock.Call
}

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

func (*MockControllable_GetContext_Call) Return

func (*MockControllable_GetContext_Call) Run

func (*MockControllable_GetContext_Call) RunAndReturn

type MockControllable_GetLogger_Call

type MockControllable_GetLogger_Call struct {
	*mock.Call
}

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

func (*MockControllable_GetLogger_Call) Return

func (*MockControllable_GetLogger_Call) Run

func (*MockControllable_GetLogger_Call) RunAndReturn

type MockControllable_GetServiceInfo_Call added in v1.6.2

type MockControllable_GetServiceInfo_Call struct {
	*mock.Call
}

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

func (*MockControllable_GetServiceInfo_Call) Return added in v1.6.2

func (*MockControllable_GetServiceInfo_Call) Run added in v1.6.2

func (*MockControllable_GetServiceInfo_Call) RunAndReturn added in v1.6.2

type MockControllable_GetState_Call

type MockControllable_GetState_Call struct {
	*mock.Call
}

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

func (*MockControllable_GetState_Call) Return

func (*MockControllable_GetState_Call) Run

func (*MockControllable_GetState_Call) RunAndReturn

type MockControllable_Health_Call

type MockControllable_Health_Call struct {
	*mock.Call
}

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

func (*MockControllable_Health_Call) Return

func (*MockControllable_Health_Call) Run

func (*MockControllable_Health_Call) RunAndReturn

type MockControllable_IsRunning_Call

type MockControllable_IsRunning_Call struct {
	*mock.Call
}

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

func (*MockControllable_IsRunning_Call) Return

func (*MockControllable_IsRunning_Call) Run

func (*MockControllable_IsRunning_Call) RunAndReturn

type MockControllable_IsStopped_Call

type MockControllable_IsStopped_Call struct {
	*mock.Call
}

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

func (*MockControllable_IsStopped_Call) Return

func (*MockControllable_IsStopped_Call) Run

func (*MockControllable_IsStopped_Call) RunAndReturn

type MockControllable_IsStopping_Call

type MockControllable_IsStopping_Call struct {
	*mock.Call
}

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

func (*MockControllable_IsStopping_Call) Return

func (*MockControllable_IsStopping_Call) Run

func (*MockControllable_IsStopping_Call) RunAndReturn

type MockControllable_Liveness_Call added in v1.6.2

type MockControllable_Liveness_Call struct {
	*mock.Call
}

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

func (*MockControllable_Liveness_Call) Return added in v1.6.2

func (*MockControllable_Liveness_Call) Run added in v1.6.2

func (*MockControllable_Liveness_Call) RunAndReturn added in v1.6.2

type MockControllable_Messages_Call

type MockControllable_Messages_Call struct {
	*mock.Call
}

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

func (*MockControllable_Messages_Call) Return

func (*MockControllable_Messages_Call) Run

func (*MockControllable_Messages_Call) RunAndReturn

type MockControllable_Readiness_Call added in v1.6.2

type MockControllable_Readiness_Call struct {
	*mock.Call
}

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

func (*MockControllable_Readiness_Call) Return added in v1.6.2

func (*MockControllable_Readiness_Call) Run added in v1.6.2

func (*MockControllable_Readiness_Call) RunAndReturn added in v1.6.2

type MockControllable_Register_Call

type MockControllable_Register_Call struct {
	*mock.Call
}

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

func (*MockControllable_Register_Call) Return

func (*MockControllable_Register_Call) Run

func (*MockControllable_Register_Call) RunAndReturn

type MockControllable_SetErrorsChannel_Call

type MockControllable_SetErrorsChannel_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetErrorsChannel_Call) Return

func (*MockControllable_SetErrorsChannel_Call) Run

func (*MockControllable_SetErrorsChannel_Call) RunAndReturn

type MockControllable_SetHealthChannel_Call

type MockControllable_SetHealthChannel_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetHealthChannel_Call) Return

func (*MockControllable_SetHealthChannel_Call) Run

func (*MockControllable_SetHealthChannel_Call) RunAndReturn

type MockControllable_SetLogger_Call

type MockControllable_SetLogger_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetLogger_Call) Return

func (*MockControllable_SetLogger_Call) Run

func (*MockControllable_SetLogger_Call) RunAndReturn

type MockControllable_SetMessageChannel_Call

type MockControllable_SetMessageChannel_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetMessageChannel_Call) Return

func (*MockControllable_SetMessageChannel_Call) Run

func (*MockControllable_SetMessageChannel_Call) RunAndReturn

type MockControllable_SetShutdownTimeout_Call

type MockControllable_SetShutdownTimeout_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetShutdownTimeout_Call) Return

func (*MockControllable_SetShutdownTimeout_Call) Run

func (*MockControllable_SetShutdownTimeout_Call) RunAndReturn

type MockControllable_SetSignalsChannel_Call

type MockControllable_SetSignalsChannel_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetSignalsChannel_Call) Return

func (*MockControllable_SetSignalsChannel_Call) Run

func (*MockControllable_SetSignalsChannel_Call) RunAndReturn

type MockControllable_SetState_Call

type MockControllable_SetState_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetState_Call) Return

func (*MockControllable_SetState_Call) Run

func (*MockControllable_SetState_Call) RunAndReturn

type MockControllable_SetWaitGroup_Call

type MockControllable_SetWaitGroup_Call struct {
	*mock.Call
}

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

func (*MockControllable_SetWaitGroup_Call) Return

func (*MockControllable_SetWaitGroup_Call) Run

func (*MockControllable_SetWaitGroup_Call) RunAndReturn

type MockControllable_Signals_Call

type MockControllable_Signals_Call struct {
	*mock.Call
}

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

func (*MockControllable_Signals_Call) Return

func (*MockControllable_Signals_Call) Run

func (*MockControllable_Signals_Call) RunAndReturn

func (_c *MockControllable_Signals_Call) RunAndReturn(run func() chan os.Signal) *MockControllable_Signals_Call

type MockControllable_Start_Call

type MockControllable_Start_Call struct {
	*mock.Call
}

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

func (*MockControllable_Start_Call) Return

func (*MockControllable_Start_Call) Run

func (*MockControllable_Start_Call) RunAndReturn

func (_c *MockControllable_Start_Call) RunAndReturn(run func()) *MockControllable_Start_Call

type MockControllable_Status_Call added in v1.6.2

type MockControllable_Status_Call struct {
	*mock.Call
}

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

func (*MockControllable_Status_Call) Return added in v1.6.2

func (*MockControllable_Status_Call) Run added in v1.6.2

func (*MockControllable_Status_Call) RunAndReturn added in v1.6.2

type MockControllable_Stop_Call

type MockControllable_Stop_Call struct {
	*mock.Call
}

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

func (*MockControllable_Stop_Call) Return

func (*MockControllable_Stop_Call) Run

func (*MockControllable_Stop_Call) RunAndReturn

func (_c *MockControllable_Stop_Call) RunAndReturn(run func()) *MockControllable_Stop_Call

type MockHealthCheckReporter added in v1.8.0

type MockHealthCheckReporter struct {
	mock.Mock
}

MockHealthCheckReporter is an autogenerated mock type for the HealthCheckReporter type

func NewMockHealthCheckReporter added in v1.8.0

func NewMockHealthCheckReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthCheckReporter

NewMockHealthCheckReporter creates a new instance of MockHealthCheckReporter. 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 (*MockHealthCheckReporter) EXPECT added in v1.8.0

func (*MockHealthCheckReporter) GetCheckResult added in v1.8.0

func (_mock *MockHealthCheckReporter) GetCheckResult(name string) (controls.CheckResult, bool)

GetCheckResult provides a mock function for the type MockHealthCheckReporter

func (*MockHealthCheckReporter) GetServiceInfo added in v1.8.0

func (_mock *MockHealthCheckReporter) GetServiceInfo(name string) (controls.ServiceInfo, bool)

GetServiceInfo provides a mock function for the type MockHealthCheckReporter

func (*MockHealthCheckReporter) Liveness added in v1.8.0

func (_mock *MockHealthCheckReporter) Liveness() controls.HealthReport

Liveness provides a mock function for the type MockHealthCheckReporter

func (*MockHealthCheckReporter) Readiness added in v1.8.0

func (_mock *MockHealthCheckReporter) Readiness() controls.HealthReport

Readiness provides a mock function for the type MockHealthCheckReporter

func (*MockHealthCheckReporter) Status added in v1.8.0

Status provides a mock function for the type MockHealthCheckReporter

type MockHealthCheckReporter_Expecter added in v1.8.0

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

func (*MockHealthCheckReporter_Expecter) GetCheckResult added in v1.8.0

GetCheckResult is a helper method to define mock.On call

  • name string

func (*MockHealthCheckReporter_Expecter) GetServiceInfo added in v1.8.0

GetServiceInfo is a helper method to define mock.On call

  • name string

func (*MockHealthCheckReporter_Expecter) Liveness added in v1.8.0

Liveness is a helper method to define mock.On call

func (*MockHealthCheckReporter_Expecter) Readiness added in v1.8.0

Readiness is a helper method to define mock.On call

func (*MockHealthCheckReporter_Expecter) Status added in v1.8.0

Status is a helper method to define mock.On call

type MockHealthCheckReporter_GetCheckResult_Call added in v1.8.0

type MockHealthCheckReporter_GetCheckResult_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckReporter_GetCheckResult_Call) Return added in v1.8.0

func (*MockHealthCheckReporter_GetCheckResult_Call) Run added in v1.8.0

func (*MockHealthCheckReporter_GetCheckResult_Call) RunAndReturn added in v1.8.0

type MockHealthCheckReporter_GetServiceInfo_Call added in v1.8.0

type MockHealthCheckReporter_GetServiceInfo_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckReporter_GetServiceInfo_Call) Return added in v1.8.0

func (*MockHealthCheckReporter_GetServiceInfo_Call) Run added in v1.8.0

func (*MockHealthCheckReporter_GetServiceInfo_Call) RunAndReturn added in v1.8.0

type MockHealthCheckReporter_Liveness_Call added in v1.8.0

type MockHealthCheckReporter_Liveness_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckReporter_Liveness_Call) Return added in v1.8.0

func (*MockHealthCheckReporter_Liveness_Call) Run added in v1.8.0

func (*MockHealthCheckReporter_Liveness_Call) RunAndReturn added in v1.8.0

type MockHealthCheckReporter_Readiness_Call added in v1.8.0

type MockHealthCheckReporter_Readiness_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckReporter_Readiness_Call) Return added in v1.8.0

func (*MockHealthCheckReporter_Readiness_Call) Run added in v1.8.0

func (*MockHealthCheckReporter_Readiness_Call) RunAndReturn added in v1.8.0

type MockHealthCheckReporter_Status_Call added in v1.8.0

type MockHealthCheckReporter_Status_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckReporter_Status_Call) Return added in v1.8.0

func (*MockHealthCheckReporter_Status_Call) Run added in v1.8.0

func (*MockHealthCheckReporter_Status_Call) RunAndReturn added in v1.8.0

type MockHealthReporter added in v1.6.2

type MockHealthReporter struct {
	mock.Mock
}

MockHealthReporter is an autogenerated mock type for the HealthReporter type

func NewMockHealthReporter added in v1.6.2

func NewMockHealthReporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthReporter

NewMockHealthReporter creates a new instance of MockHealthReporter. 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 (*MockHealthReporter) EXPECT added in v1.6.2

func (*MockHealthReporter) GetServiceInfo added in v1.6.2

func (_mock *MockHealthReporter) GetServiceInfo(name string) (controls.ServiceInfo, bool)

GetServiceInfo provides a mock function for the type MockHealthReporter

func (*MockHealthReporter) Liveness added in v1.6.2

func (_mock *MockHealthReporter) Liveness() controls.HealthReport

Liveness provides a mock function for the type MockHealthReporter

func (*MockHealthReporter) Readiness added in v1.6.2

func (_mock *MockHealthReporter) Readiness() controls.HealthReport

Readiness provides a mock function for the type MockHealthReporter

func (*MockHealthReporter) Status added in v1.6.2

func (_mock *MockHealthReporter) Status() controls.HealthReport

Status provides a mock function for the type MockHealthReporter

type MockHealthReporter_Expecter added in v1.6.2

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

func (*MockHealthReporter_Expecter) GetServiceInfo added in v1.6.2

func (_e *MockHealthReporter_Expecter) GetServiceInfo(name interface{}) *MockHealthReporter_GetServiceInfo_Call

GetServiceInfo is a helper method to define mock.On call

  • name string

func (*MockHealthReporter_Expecter) Liveness added in v1.6.2

Liveness is a helper method to define mock.On call

func (*MockHealthReporter_Expecter) Readiness added in v1.6.2

Readiness is a helper method to define mock.On call

func (*MockHealthReporter_Expecter) Status added in v1.6.2

Status is a helper method to define mock.On call

type MockHealthReporter_GetServiceInfo_Call added in v1.6.2

type MockHealthReporter_GetServiceInfo_Call struct {
	*mock.Call
}

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

func (*MockHealthReporter_GetServiceInfo_Call) Return added in v1.6.2

func (*MockHealthReporter_GetServiceInfo_Call) Run added in v1.6.2

func (*MockHealthReporter_GetServiceInfo_Call) RunAndReturn added in v1.6.2

type MockHealthReporter_Liveness_Call added in v1.6.2

type MockHealthReporter_Liveness_Call struct {
	*mock.Call
}

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

func (*MockHealthReporter_Liveness_Call) Return added in v1.6.2

func (*MockHealthReporter_Liveness_Call) Run added in v1.6.2

func (*MockHealthReporter_Liveness_Call) RunAndReturn added in v1.6.2

type MockHealthReporter_Readiness_Call added in v1.6.2

type MockHealthReporter_Readiness_Call struct {
	*mock.Call
}

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

func (*MockHealthReporter_Readiness_Call) Return added in v1.6.2

func (*MockHealthReporter_Readiness_Call) Run added in v1.6.2

func (*MockHealthReporter_Readiness_Call) RunAndReturn added in v1.6.2

type MockHealthReporter_Status_Call added in v1.6.2

type MockHealthReporter_Status_Call struct {
	*mock.Call
}

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

func (*MockHealthReporter_Status_Call) Return added in v1.6.2

func (*MockHealthReporter_Status_Call) Run added in v1.6.2

func (*MockHealthReporter_Status_Call) RunAndReturn added in v1.6.2

type MockRunner

type MockRunner struct {
	mock.Mock
}

MockRunner is an autogenerated mock type for the Runner type

func NewMockRunner

func NewMockRunner(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRunner

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

func (_m *MockRunner) EXPECT() *MockRunner_Expecter

func (*MockRunner) IsRunning

func (_mock *MockRunner) IsRunning() bool

IsRunning provides a mock function for the type MockRunner

func (*MockRunner) IsStopped

func (_mock *MockRunner) IsStopped() bool

IsStopped provides a mock function for the type MockRunner

func (*MockRunner) IsStopping

func (_mock *MockRunner) IsStopping() bool

IsStopping provides a mock function for the type MockRunner

func (*MockRunner) Register

func (_mock *MockRunner) Register(id string, opts ...controls.ServiceOption)

Register provides a mock function for the type MockRunner

func (*MockRunner) Start

func (_mock *MockRunner) Start()

Start provides a mock function for the type MockRunner

func (*MockRunner) Stop

func (_mock *MockRunner) Stop()

Stop provides a mock function for the type MockRunner

type MockRunner_Expecter

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

func (*MockRunner_Expecter) IsRunning

IsRunning is a helper method to define mock.On call

func (*MockRunner_Expecter) IsStopped

IsStopped is a helper method to define mock.On call

func (*MockRunner_Expecter) IsStopping

IsStopping is a helper method to define mock.On call

func (*MockRunner_Expecter) Register

func (_e *MockRunner_Expecter) Register(id interface{}, opts ...interface{}) *MockRunner_Register_Call

Register is a helper method to define mock.On call

  • id string
  • opts ...controls.ServiceOption

func (*MockRunner_Expecter) Start

Start is a helper method to define mock.On call

func (*MockRunner_Expecter) Stop

Stop is a helper method to define mock.On call

type MockRunner_IsRunning_Call

type MockRunner_IsRunning_Call struct {
	*mock.Call
}

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

func (*MockRunner_IsRunning_Call) Return

func (*MockRunner_IsRunning_Call) Run

func (*MockRunner_IsRunning_Call) RunAndReturn

func (_c *MockRunner_IsRunning_Call) RunAndReturn(run func() bool) *MockRunner_IsRunning_Call

type MockRunner_IsStopped_Call

type MockRunner_IsStopped_Call struct {
	*mock.Call
}

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

func (*MockRunner_IsStopped_Call) Return

func (*MockRunner_IsStopped_Call) Run

func (*MockRunner_IsStopped_Call) RunAndReturn

func (_c *MockRunner_IsStopped_Call) RunAndReturn(run func() bool) *MockRunner_IsStopped_Call

type MockRunner_IsStopping_Call

type MockRunner_IsStopping_Call struct {
	*mock.Call
}

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

func (*MockRunner_IsStopping_Call) Return

func (*MockRunner_IsStopping_Call) Run

func (*MockRunner_IsStopping_Call) RunAndReturn

func (_c *MockRunner_IsStopping_Call) RunAndReturn(run func() bool) *MockRunner_IsStopping_Call

type MockRunner_Register_Call

type MockRunner_Register_Call struct {
	*mock.Call
}

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

func (*MockRunner_Register_Call) Return

func (*MockRunner_Register_Call) Run

func (*MockRunner_Register_Call) RunAndReturn

func (_c *MockRunner_Register_Call) RunAndReturn(run func(id string, opts ...controls.ServiceOption)) *MockRunner_Register_Call

type MockRunner_Start_Call

type MockRunner_Start_Call struct {
	*mock.Call
}

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

func (*MockRunner_Start_Call) Return

func (*MockRunner_Start_Call) Run

func (_c *MockRunner_Start_Call) Run(run func()) *MockRunner_Start_Call

func (*MockRunner_Start_Call) RunAndReturn

func (_c *MockRunner_Start_Call) RunAndReturn(run func()) *MockRunner_Start_Call

type MockRunner_Stop_Call

type MockRunner_Stop_Call struct {
	*mock.Call
}

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

func (*MockRunner_Stop_Call) Return

func (*MockRunner_Stop_Call) Run

func (_c *MockRunner_Stop_Call) Run(run func()) *MockRunner_Stop_Call

func (*MockRunner_Stop_Call) RunAndReturn

func (_c *MockRunner_Stop_Call) RunAndReturn(run func()) *MockRunner_Stop_Call

type MockStateAccessor

type MockStateAccessor struct {
	mock.Mock
}

MockStateAccessor is an autogenerated mock type for the StateAccessor type

func NewMockStateAccessor

func NewMockStateAccessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStateAccessor

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

func (*MockStateAccessor) GetContext

func (_mock *MockStateAccessor) GetContext() context.Context

GetContext provides a mock function for the type MockStateAccessor

func (*MockStateAccessor) GetLogger

func (_mock *MockStateAccessor) GetLogger() logger.Logger

GetLogger provides a mock function for the type MockStateAccessor

func (*MockStateAccessor) GetState

func (_mock *MockStateAccessor) GetState() controls.State

GetState provides a mock function for the type MockStateAccessor

func (*MockStateAccessor) SetState

func (_mock *MockStateAccessor) SetState(state controls.State)

SetState provides a mock function for the type MockStateAccessor

type MockStateAccessor_Expecter

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

func (*MockStateAccessor_Expecter) GetContext

GetContext is a helper method to define mock.On call

func (*MockStateAccessor_Expecter) GetLogger

GetLogger is a helper method to define mock.On call

func (*MockStateAccessor_Expecter) GetState

GetState is a helper method to define mock.On call

func (*MockStateAccessor_Expecter) SetState

func (_e *MockStateAccessor_Expecter) SetState(state interface{}) *MockStateAccessor_SetState_Call

SetState is a helper method to define mock.On call

  • state controls.State

type MockStateAccessor_GetContext_Call

type MockStateAccessor_GetContext_Call struct {
	*mock.Call
}

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

func (*MockStateAccessor_GetContext_Call) Return

func (*MockStateAccessor_GetContext_Call) Run

func (*MockStateAccessor_GetContext_Call) RunAndReturn

type MockStateAccessor_GetLogger_Call

type MockStateAccessor_GetLogger_Call struct {
	*mock.Call
}

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

func (*MockStateAccessor_GetLogger_Call) Return

func (*MockStateAccessor_GetLogger_Call) Run

func (*MockStateAccessor_GetLogger_Call) RunAndReturn

type MockStateAccessor_GetState_Call

type MockStateAccessor_GetState_Call struct {
	*mock.Call
}

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

func (*MockStateAccessor_GetState_Call) Return

func (*MockStateAccessor_GetState_Call) Run

func (*MockStateAccessor_GetState_Call) RunAndReturn

type MockStateAccessor_SetState_Call

type MockStateAccessor_SetState_Call struct {
	*mock.Call
}

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

func (*MockStateAccessor_SetState_Call) Return

func (*MockStateAccessor_SetState_Call) Run

func (*MockStateAccessor_SetState_Call) RunAndReturn

Jump to

Keyboard shortcuts

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