Documentation
¶
Index ¶
- type MockAgent
- func (_mock *MockAgent) Addr() string
- func (_m *MockAgent) EXPECT() *MockAgent_Expecter
- func (_mock *MockAgent) Exec(ctx context.Context, bin string, args []string, stdin string) executor.ExecResult
- func (_mock *MockAgent) FailureReason() executor.FailureReason
- func (_mock *MockAgent) Prepare(ctx context.Context) error
- func (_mock *MockAgent) Remove(ctx context.Context) error
- func (_mock *MockAgent) Run(ctx context.Context) error
- func (_mock *MockAgent) Runtime() *executor.Runtime
- func (_mock *MockAgent) Start(ctx context.Context) error
- func (_mock *MockAgent) Status() executor.Status
- func (_mock *MockAgent) StatusTracker() *executor.StatusTracker
- func (_mock *MockAgent) Stop(ctx context.Context) error
- func (_mock *MockAgent) SubscribeStatus() (<-chan executor.Status, func())
- func (_mock *MockAgent) UUID() uuid.UUID
- type MockAgent_Addr_Call
- type MockAgent_Exec_Call
- type MockAgent_Expecter
- func (_e *MockAgent_Expecter) Addr() *MockAgent_Addr_Call
- func (_e *MockAgent_Expecter) Exec(ctx any, bin any, args any, stdin any) *MockAgent_Exec_Call
- func (_e *MockAgent_Expecter) FailureReason() *MockAgent_FailureReason_Call
- func (_e *MockAgent_Expecter) Prepare(ctx any) *MockAgent_Prepare_Call
- func (_e *MockAgent_Expecter) Remove(ctx any) *MockAgent_Remove_Call
- func (_e *MockAgent_Expecter) Run(ctx any) *MockAgent_Run_Call
- func (_e *MockAgent_Expecter) Runtime() *MockAgent_Runtime_Call
- func (_e *MockAgent_Expecter) Start(ctx any) *MockAgent_Start_Call
- func (_e *MockAgent_Expecter) Status() *MockAgent_Status_Call
- func (_e *MockAgent_Expecter) StatusTracker() *MockAgent_StatusTracker_Call
- func (_e *MockAgent_Expecter) Stop(ctx any) *MockAgent_Stop_Call
- func (_e *MockAgent_Expecter) SubscribeStatus() *MockAgent_SubscribeStatus_Call
- func (_e *MockAgent_Expecter) UUID() *MockAgent_UUID_Call
- type MockAgent_FailureReason_Call
- func (_c *MockAgent_FailureReason_Call) Return(failureReason executor.FailureReason) *MockAgent_FailureReason_Call
- func (_c *MockAgent_FailureReason_Call) Run(run func()) *MockAgent_FailureReason_Call
- func (_c *MockAgent_FailureReason_Call) RunAndReturn(run func() executor.FailureReason) *MockAgent_FailureReason_Call
- type MockAgent_Prepare_Call
- type MockAgent_Remove_Call
- type MockAgent_Run_Call
- type MockAgent_Runtime_Call
- type MockAgent_Start_Call
- type MockAgent_StatusTracker_Call
- func (_c *MockAgent_StatusTracker_Call) Return(statusTracker *executor.StatusTracker) *MockAgent_StatusTracker_Call
- func (_c *MockAgent_StatusTracker_Call) Run(run func()) *MockAgent_StatusTracker_Call
- func (_c *MockAgent_StatusTracker_Call) RunAndReturn(run func() *executor.StatusTracker) *MockAgent_StatusTracker_Call
- type MockAgent_Status_Call
- type MockAgent_Stop_Call
- type MockAgent_SubscribeStatus_Call
- func (_c *MockAgent_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockAgent_SubscribeStatus_Call
- func (_c *MockAgent_SubscribeStatus_Call) Run(run func()) *MockAgent_SubscribeStatus_Call
- func (_c *MockAgent_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockAgent_SubscribeStatus_Call
- type MockAgent_UUID_Call
- type MockProvider
- func (_mock *MockProvider) Create(ctx context.Context, id uuid.UUID, ref spec.Reference, opts ...spec.Override) (executor.Agent, error)
- func (_mock *MockProvider) Destroy(ctx context.Context) error
- func (_m *MockProvider) EXPECT() *MockProvider_Expecter
- func (_mock *MockProvider) Load(ctx context.Context) ([]executor.Agent, error)
- func (_mock *MockProvider) Registry() executor.Registry
- type MockProvider_Create_Call
- type MockProvider_Destroy_Call
- type MockProvider_Expecter
- func (_e *MockProvider_Expecter) Create(ctx any, id any, ref any, opts ...any) *MockProvider_Create_Call
- func (_e *MockProvider_Expecter) Destroy(ctx any) *MockProvider_Destroy_Call
- func (_e *MockProvider_Expecter) Load(ctx any) *MockProvider_Load_Call
- func (_e *MockProvider_Expecter) Registry() *MockProvider_Registry_Call
- type MockProvider_Load_Call
- func (_c *MockProvider_Load_Call) Return(agents []executor.Agent, err error) *MockProvider_Load_Call
- func (_c *MockProvider_Load_Call) Run(run func(ctx context.Context)) *MockProvider_Load_Call
- func (_c *MockProvider_Load_Call) RunAndReturn(run func(ctx context.Context) ([]executor.Agent, error)) *MockProvider_Load_Call
- type MockProvider_Registry_Call
- type MockStatusObserver
- type MockStatusObserver_Expecter
- type MockStatusObserver_FailureReason_Call
- func (_c *MockStatusObserver_FailureReason_Call) Return(failureReason executor.FailureReason) *MockStatusObserver_FailureReason_Call
- func (_c *MockStatusObserver_FailureReason_Call) Run(run func()) *MockStatusObserver_FailureReason_Call
- func (_c *MockStatusObserver_FailureReason_Call) RunAndReturn(run func() executor.FailureReason) *MockStatusObserver_FailureReason_Call
- type MockStatusObserver_Status_Call
- func (_c *MockStatusObserver_Status_Call) Return(status executor.Status) *MockStatusObserver_Status_Call
- func (_c *MockStatusObserver_Status_Call) Run(run func()) *MockStatusObserver_Status_Call
- func (_c *MockStatusObserver_Status_Call) RunAndReturn(run func() executor.Status) *MockStatusObserver_Status_Call
- type MockStatusObserver_SubscribeStatus_Call
- func (_c *MockStatusObserver_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockStatusObserver_SubscribeStatus_Call
- func (_c *MockStatusObserver_SubscribeStatus_Call) Run(run func()) *MockStatusObserver_SubscribeStatus_Call
- func (_c *MockStatusObserver_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockStatusObserver_SubscribeStatus_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgent ¶
MockAgent is an autogenerated mock type for the Agent type
func NewMockAgent ¶
NewMockAgent creates a new instance of MockAgent. 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 (*MockAgent) EXPECT ¶
func (_m *MockAgent) EXPECT() *MockAgent_Expecter
func (*MockAgent) Exec ¶
func (_mock *MockAgent) Exec(ctx context.Context, bin string, args []string, stdin string) executor.ExecResult
Exec provides a mock function for the type MockAgent
func (*MockAgent) FailureReason ¶
func (_mock *MockAgent) FailureReason() executor.FailureReason
FailureReason provides a mock function for the type MockAgent
func (*MockAgent) StatusTracker ¶
func (_mock *MockAgent) StatusTracker() *executor.StatusTracker
StatusTracker provides a mock function for the type MockAgent
func (*MockAgent) SubscribeStatus ¶
SubscribeStatus provides a mock function for the type MockAgent
type MockAgent_Addr_Call ¶
MockAgent_Addr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Addr'
func (*MockAgent_Addr_Call) Return ¶
func (_c *MockAgent_Addr_Call) Return(s string) *MockAgent_Addr_Call
func (*MockAgent_Addr_Call) Run ¶
func (_c *MockAgent_Addr_Call) Run(run func()) *MockAgent_Addr_Call
func (*MockAgent_Addr_Call) RunAndReturn ¶
func (_c *MockAgent_Addr_Call) RunAndReturn(run func() string) *MockAgent_Addr_Call
type MockAgent_Exec_Call ¶
MockAgent_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockAgent_Exec_Call) Return ¶
func (_c *MockAgent_Exec_Call) Return(execResult executor.ExecResult) *MockAgent_Exec_Call
func (*MockAgent_Exec_Call) Run ¶
func (_c *MockAgent_Exec_Call) Run(run func(ctx context.Context, bin string, args []string, stdin string)) *MockAgent_Exec_Call
func (*MockAgent_Exec_Call) RunAndReturn ¶
func (_c *MockAgent_Exec_Call) RunAndReturn(run func(ctx context.Context, bin string, args []string, stdin string) executor.ExecResult) *MockAgent_Exec_Call
type MockAgent_Expecter ¶
type MockAgent_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAgent_Expecter) Addr ¶
func (_e *MockAgent_Expecter) Addr() *MockAgent_Addr_Call
Addr is a helper method to define mock.On call
func (*MockAgent_Expecter) Exec ¶
func (_e *MockAgent_Expecter) Exec(ctx any, bin any, args any, stdin any) *MockAgent_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- bin string
- args []string
- stdin string
func (*MockAgent_Expecter) FailureReason ¶
func (_e *MockAgent_Expecter) FailureReason() *MockAgent_FailureReason_Call
FailureReason is a helper method to define mock.On call
func (*MockAgent_Expecter) Prepare ¶
func (_e *MockAgent_Expecter) Prepare(ctx any) *MockAgent_Prepare_Call
Prepare is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Remove ¶
func (_e *MockAgent_Expecter) Remove(ctx any) *MockAgent_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Run ¶
func (_e *MockAgent_Expecter) Run(ctx any) *MockAgent_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Runtime ¶
func (_e *MockAgent_Expecter) Runtime() *MockAgent_Runtime_Call
Runtime is a helper method to define mock.On call
func (*MockAgent_Expecter) Start ¶
func (_e *MockAgent_Expecter) Start(ctx any) *MockAgent_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Status ¶
func (_e *MockAgent_Expecter) Status() *MockAgent_Status_Call
Status is a helper method to define mock.On call
func (*MockAgent_Expecter) StatusTracker ¶
func (_e *MockAgent_Expecter) StatusTracker() *MockAgent_StatusTracker_Call
StatusTracker is a helper method to define mock.On call
func (*MockAgent_Expecter) Stop ¶
func (_e *MockAgent_Expecter) Stop(ctx any) *MockAgent_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) SubscribeStatus ¶
func (_e *MockAgent_Expecter) SubscribeStatus() *MockAgent_SubscribeStatus_Call
SubscribeStatus is a helper method to define mock.On call
func (*MockAgent_Expecter) UUID ¶
func (_e *MockAgent_Expecter) UUID() *MockAgent_UUID_Call
UUID is a helper method to define mock.On call
type MockAgent_FailureReason_Call ¶
MockAgent_FailureReason_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FailureReason'
func (*MockAgent_FailureReason_Call) Return ¶
func (_c *MockAgent_FailureReason_Call) Return(failureReason executor.FailureReason) *MockAgent_FailureReason_Call
func (*MockAgent_FailureReason_Call) Run ¶
func (_c *MockAgent_FailureReason_Call) Run(run func()) *MockAgent_FailureReason_Call
func (*MockAgent_FailureReason_Call) RunAndReturn ¶
func (_c *MockAgent_FailureReason_Call) RunAndReturn(run func() executor.FailureReason) *MockAgent_FailureReason_Call
type MockAgent_Prepare_Call ¶
MockAgent_Prepare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prepare'
func (*MockAgent_Prepare_Call) Return ¶
func (_c *MockAgent_Prepare_Call) Return(err error) *MockAgent_Prepare_Call
func (*MockAgent_Prepare_Call) Run ¶
func (_c *MockAgent_Prepare_Call) Run(run func(ctx context.Context)) *MockAgent_Prepare_Call
func (*MockAgent_Prepare_Call) RunAndReturn ¶
func (_c *MockAgent_Prepare_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Prepare_Call
type MockAgent_Remove_Call ¶
MockAgent_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*MockAgent_Remove_Call) Return ¶
func (_c *MockAgent_Remove_Call) Return(err error) *MockAgent_Remove_Call
func (*MockAgent_Remove_Call) Run ¶
func (_c *MockAgent_Remove_Call) Run(run func(ctx context.Context)) *MockAgent_Remove_Call
func (*MockAgent_Remove_Call) RunAndReturn ¶
func (_c *MockAgent_Remove_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Remove_Call
type MockAgent_Run_Call ¶
MockAgent_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockAgent_Run_Call) Return ¶
func (_c *MockAgent_Run_Call) Return(err error) *MockAgent_Run_Call
func (*MockAgent_Run_Call) Run ¶
func (_c *MockAgent_Run_Call) Run(run func(ctx context.Context)) *MockAgent_Run_Call
func (*MockAgent_Run_Call) RunAndReturn ¶
func (_c *MockAgent_Run_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Run_Call
type MockAgent_Runtime_Call ¶
MockAgent_Runtime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Runtime'
func (*MockAgent_Runtime_Call) Return ¶
func (_c *MockAgent_Runtime_Call) Return(runtime *executor.Runtime) *MockAgent_Runtime_Call
func (*MockAgent_Runtime_Call) Run ¶
func (_c *MockAgent_Runtime_Call) Run(run func()) *MockAgent_Runtime_Call
func (*MockAgent_Runtime_Call) RunAndReturn ¶
func (_c *MockAgent_Runtime_Call) RunAndReturn(run func() *executor.Runtime) *MockAgent_Runtime_Call
type MockAgent_Start_Call ¶
MockAgent_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockAgent_Start_Call) Return ¶
func (_c *MockAgent_Start_Call) Return(err error) *MockAgent_Start_Call
func (*MockAgent_Start_Call) Run ¶
func (_c *MockAgent_Start_Call) Run(run func(ctx context.Context)) *MockAgent_Start_Call
func (*MockAgent_Start_Call) RunAndReturn ¶
func (_c *MockAgent_Start_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Start_Call
type MockAgent_StatusTracker_Call ¶
MockAgent_StatusTracker_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StatusTracker'
func (*MockAgent_StatusTracker_Call) Return ¶
func (_c *MockAgent_StatusTracker_Call) Return(statusTracker *executor.StatusTracker) *MockAgent_StatusTracker_Call
func (*MockAgent_StatusTracker_Call) Run ¶
func (_c *MockAgent_StatusTracker_Call) Run(run func()) *MockAgent_StatusTracker_Call
func (*MockAgent_StatusTracker_Call) RunAndReturn ¶
func (_c *MockAgent_StatusTracker_Call) RunAndReturn(run func() *executor.StatusTracker) *MockAgent_StatusTracker_Call
type MockAgent_Status_Call ¶
MockAgent_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockAgent_Status_Call) Return ¶
func (_c *MockAgent_Status_Call) Return(status executor.Status) *MockAgent_Status_Call
func (*MockAgent_Status_Call) Run ¶
func (_c *MockAgent_Status_Call) Run(run func()) *MockAgent_Status_Call
func (*MockAgent_Status_Call) RunAndReturn ¶
func (_c *MockAgent_Status_Call) RunAndReturn(run func() executor.Status) *MockAgent_Status_Call
type MockAgent_Stop_Call ¶
MockAgent_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*MockAgent_Stop_Call) Return ¶
func (_c *MockAgent_Stop_Call) Return(err error) *MockAgent_Stop_Call
func (*MockAgent_Stop_Call) Run ¶
func (_c *MockAgent_Stop_Call) Run(run func(ctx context.Context)) *MockAgent_Stop_Call
func (*MockAgent_Stop_Call) RunAndReturn ¶
func (_c *MockAgent_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Stop_Call
type MockAgent_SubscribeStatus_Call ¶
MockAgent_SubscribeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeStatus'
func (*MockAgent_SubscribeStatus_Call) Return ¶
func (_c *MockAgent_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockAgent_SubscribeStatus_Call
func (*MockAgent_SubscribeStatus_Call) Run ¶
func (_c *MockAgent_SubscribeStatus_Call) Run(run func()) *MockAgent_SubscribeStatus_Call
func (*MockAgent_SubscribeStatus_Call) RunAndReturn ¶
func (_c *MockAgent_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockAgent_SubscribeStatus_Call
type MockAgent_UUID_Call ¶
MockAgent_UUID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UUID'
func (*MockAgent_UUID_Call) Return ¶
func (_c *MockAgent_UUID_Call) Return(uUID uuid.UUID) *MockAgent_UUID_Call
func (*MockAgent_UUID_Call) Run ¶
func (_c *MockAgent_UUID_Call) Run(run func()) *MockAgent_UUID_Call
func (*MockAgent_UUID_Call) RunAndReturn ¶
func (_c *MockAgent_UUID_Call) RunAndReturn(run func() uuid.UUID) *MockAgent_UUID_Call
type MockProvider ¶
MockProvider is an autogenerated mock type for the Provider type
func NewMockProvider ¶
func NewMockProvider(t interface {
mock.TestingT
Cleanup(func())
}) *MockProvider
NewMockProvider creates a new instance of MockProvider. 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 (*MockProvider) Create ¶
func (_mock *MockProvider) Create(ctx context.Context, id uuid.UUID, ref spec.Reference, opts ...spec.Override) (executor.Agent, error)
Create provides a mock function for the type MockProvider
func (*MockProvider) Destroy ¶
func (_mock *MockProvider) Destroy(ctx context.Context) error
Destroy provides a mock function for the type MockProvider
func (*MockProvider) EXPECT ¶
func (_m *MockProvider) EXPECT() *MockProvider_Expecter
func (*MockProvider) Registry ¶
func (_mock *MockProvider) Registry() executor.Registry
Registry provides a mock function for the type MockProvider
type MockProvider_Create_Call ¶
MockProvider_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockProvider_Create_Call) Return ¶
func (_c *MockProvider_Create_Call) Return(agent executor.Agent, err error) *MockProvider_Create_Call
func (*MockProvider_Create_Call) Run ¶
func (_c *MockProvider_Create_Call) Run(run func(ctx context.Context, id uuid.UUID, ref spec.Reference, opts ...spec.Override)) *MockProvider_Create_Call
func (*MockProvider_Create_Call) RunAndReturn ¶
type MockProvider_Destroy_Call ¶
MockProvider_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
func (*MockProvider_Destroy_Call) Return ¶
func (_c *MockProvider_Destroy_Call) Return(err error) *MockProvider_Destroy_Call
func (*MockProvider_Destroy_Call) Run ¶
func (_c *MockProvider_Destroy_Call) Run(run func(ctx context.Context)) *MockProvider_Destroy_Call
func (*MockProvider_Destroy_Call) RunAndReturn ¶
func (_c *MockProvider_Destroy_Call) RunAndReturn(run func(ctx context.Context) error) *MockProvider_Destroy_Call
type MockProvider_Expecter ¶
type MockProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProvider_Expecter) Create ¶
func (_e *MockProvider_Expecter) Create(ctx any, id any, ref any, opts ...any) *MockProvider_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- ref spec.Reference
- opts ...spec.Override
func (*MockProvider_Expecter) Destroy ¶
func (_e *MockProvider_Expecter) Destroy(ctx any) *MockProvider_Destroy_Call
Destroy is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) Load ¶
func (_e *MockProvider_Expecter) Load(ctx any) *MockProvider_Load_Call
Load is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) Registry ¶
func (_e *MockProvider_Expecter) Registry() *MockProvider_Registry_Call
Registry is a helper method to define mock.On call
type MockProvider_Load_Call ¶
MockProvider_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*MockProvider_Load_Call) Return ¶
func (_c *MockProvider_Load_Call) Return(agents []executor.Agent, err error) *MockProvider_Load_Call
func (*MockProvider_Load_Call) Run ¶
func (_c *MockProvider_Load_Call) Run(run func(ctx context.Context)) *MockProvider_Load_Call
func (*MockProvider_Load_Call) RunAndReturn ¶
func (_c *MockProvider_Load_Call) RunAndReturn(run func(ctx context.Context) ([]executor.Agent, error)) *MockProvider_Load_Call
type MockProvider_Registry_Call ¶
MockProvider_Registry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Registry'
func (*MockProvider_Registry_Call) Return ¶
func (_c *MockProvider_Registry_Call) Return(registry executor.Registry) *MockProvider_Registry_Call
func (*MockProvider_Registry_Call) Run ¶
func (_c *MockProvider_Registry_Call) Run(run func()) *MockProvider_Registry_Call
func (*MockProvider_Registry_Call) RunAndReturn ¶
func (_c *MockProvider_Registry_Call) RunAndReturn(run func() executor.Registry) *MockProvider_Registry_Call
type MockStatusObserver ¶
MockStatusObserver is an autogenerated mock type for the StatusObserver type
func NewMockStatusObserver ¶
func NewMockStatusObserver(t interface {
mock.TestingT
Cleanup(func())
}) *MockStatusObserver
NewMockStatusObserver creates a new instance of MockStatusObserver. 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 (*MockStatusObserver) EXPECT ¶
func (_m *MockStatusObserver) EXPECT() *MockStatusObserver_Expecter
func (*MockStatusObserver) FailureReason ¶
func (_mock *MockStatusObserver) FailureReason() executor.FailureReason
FailureReason provides a mock function for the type MockStatusObserver
func (*MockStatusObserver) Status ¶
func (_mock *MockStatusObserver) Status() executor.Status
Status provides a mock function for the type MockStatusObserver
func (*MockStatusObserver) SubscribeStatus ¶
func (_mock *MockStatusObserver) SubscribeStatus() (<-chan executor.Status, func())
SubscribeStatus provides a mock function for the type MockStatusObserver
type MockStatusObserver_Expecter ¶
type MockStatusObserver_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStatusObserver_Expecter) FailureReason ¶
func (_e *MockStatusObserver_Expecter) FailureReason() *MockStatusObserver_FailureReason_Call
FailureReason is a helper method to define mock.On call
func (*MockStatusObserver_Expecter) Status ¶
func (_e *MockStatusObserver_Expecter) Status() *MockStatusObserver_Status_Call
Status is a helper method to define mock.On call
func (*MockStatusObserver_Expecter) SubscribeStatus ¶
func (_e *MockStatusObserver_Expecter) SubscribeStatus() *MockStatusObserver_SubscribeStatus_Call
SubscribeStatus is a helper method to define mock.On call
type MockStatusObserver_FailureReason_Call ¶
MockStatusObserver_FailureReason_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FailureReason'
func (*MockStatusObserver_FailureReason_Call) Return ¶
func (_c *MockStatusObserver_FailureReason_Call) Return(failureReason executor.FailureReason) *MockStatusObserver_FailureReason_Call
func (*MockStatusObserver_FailureReason_Call) Run ¶
func (_c *MockStatusObserver_FailureReason_Call) Run(run func()) *MockStatusObserver_FailureReason_Call
func (*MockStatusObserver_FailureReason_Call) RunAndReturn ¶
func (_c *MockStatusObserver_FailureReason_Call) RunAndReturn(run func() executor.FailureReason) *MockStatusObserver_FailureReason_Call
type MockStatusObserver_Status_Call ¶
MockStatusObserver_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockStatusObserver_Status_Call) Return ¶
func (_c *MockStatusObserver_Status_Call) Return(status executor.Status) *MockStatusObserver_Status_Call
func (*MockStatusObserver_Status_Call) Run ¶
func (_c *MockStatusObserver_Status_Call) Run(run func()) *MockStatusObserver_Status_Call
func (*MockStatusObserver_Status_Call) RunAndReturn ¶
func (_c *MockStatusObserver_Status_Call) RunAndReturn(run func() executor.Status) *MockStatusObserver_Status_Call
type MockStatusObserver_SubscribeStatus_Call ¶
MockStatusObserver_SubscribeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeStatus'
func (*MockStatusObserver_SubscribeStatus_Call) Return ¶
func (_c *MockStatusObserver_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockStatusObserver_SubscribeStatus_Call
func (*MockStatusObserver_SubscribeStatus_Call) Run ¶
func (_c *MockStatusObserver_SubscribeStatus_Call) Run(run func()) *MockStatusObserver_SubscribeStatus_Call
func (*MockStatusObserver_SubscribeStatus_Call) RunAndReturn ¶
func (_c *MockStatusObserver_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockStatusObserver_SubscribeStatus_Call