Documentation
¶
Index ¶
- type MockBackend
- type MockBackend_Close_Call
- type MockBackend_Expecter
- type MockBackend_Send_Call
- func (_c *MockBackend_Send_Call) Return(err error) *MockBackend_Send_Call
- func (_c *MockBackend_Send_Call) Run(run func(ctx context.Context, events []telemetry.Event)) *MockBackend_Send_Call
- func (_c *MockBackend_Send_Call) RunAndReturn(run func(ctx context.Context, events []telemetry.Event) error) *MockBackend_Send_Call
- type MockDeletionRequestor
- type MockDeletionRequestor_Expecter
- type MockDeletionRequestor_RequestDeletion_Call
- func (_c *MockDeletionRequestor_RequestDeletion_Call) Return(err error) *MockDeletionRequestor_RequestDeletion_Call
- func (_c *MockDeletionRequestor_RequestDeletion_Call) Run(run func(ctx context.Context, machineID string)) *MockDeletionRequestor_RequestDeletion_Call
- func (_c *MockDeletionRequestor_RequestDeletion_Call) RunAndReturn(run func(ctx context.Context, machineID string) error) *MockDeletionRequestor_RequestDeletion_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBackend ¶
MockBackend is an autogenerated mock type for the Backend type
func NewMockBackend ¶
func NewMockBackend(t interface {
mock.TestingT
Cleanup(func())
}) *MockBackend
NewMockBackend creates a new instance of MockBackend. 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 (*MockBackend) Close ¶
func (_mock *MockBackend) Close() error
Close provides a mock function for the type MockBackend
func (*MockBackend) EXPECT ¶
func (_m *MockBackend) EXPECT() *MockBackend_Expecter
type MockBackend_Close_Call ¶
MockBackend_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockBackend_Close_Call) Return ¶
func (_c *MockBackend_Close_Call) Return(err error) *MockBackend_Close_Call
func (*MockBackend_Close_Call) Run ¶
func (_c *MockBackend_Close_Call) Run(run func()) *MockBackend_Close_Call
func (*MockBackend_Close_Call) RunAndReturn ¶
func (_c *MockBackend_Close_Call) RunAndReturn(run func() error) *MockBackend_Close_Call
type MockBackend_Expecter ¶
type MockBackend_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBackend_Expecter) Close ¶
func (_e *MockBackend_Expecter) Close() *MockBackend_Close_Call
Close is a helper method to define mock.On call
func (*MockBackend_Expecter) Send ¶
func (_e *MockBackend_Expecter) Send(ctx interface{}, events interface{}) *MockBackend_Send_Call
Send is a helper method to define mock.On call
- ctx context.Context
- events []telemetry.Event
type MockBackend_Send_Call ¶
MockBackend_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
func (*MockBackend_Send_Call) Return ¶
func (_c *MockBackend_Send_Call) Return(err error) *MockBackend_Send_Call
func (*MockBackend_Send_Call) Run ¶
func (_c *MockBackend_Send_Call) Run(run func(ctx context.Context, events []telemetry.Event)) *MockBackend_Send_Call
func (*MockBackend_Send_Call) RunAndReturn ¶
func (_c *MockBackend_Send_Call) RunAndReturn(run func(ctx context.Context, events []telemetry.Event) error) *MockBackend_Send_Call
type MockDeletionRequestor ¶
MockDeletionRequestor is an autogenerated mock type for the DeletionRequestor type
func NewMockDeletionRequestor ¶
func NewMockDeletionRequestor(t interface {
mock.TestingT
Cleanup(func())
}) *MockDeletionRequestor
NewMockDeletionRequestor creates a new instance of MockDeletionRequestor. 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 (*MockDeletionRequestor) EXPECT ¶
func (_m *MockDeletionRequestor) EXPECT() *MockDeletionRequestor_Expecter
func (*MockDeletionRequestor) RequestDeletion ¶
func (_mock *MockDeletionRequestor) RequestDeletion(ctx context.Context, machineID string) error
RequestDeletion provides a mock function for the type MockDeletionRequestor
type MockDeletionRequestor_Expecter ¶
type MockDeletionRequestor_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDeletionRequestor_Expecter) RequestDeletion ¶
func (_e *MockDeletionRequestor_Expecter) RequestDeletion(ctx interface{}, machineID interface{}) *MockDeletionRequestor_RequestDeletion_Call
RequestDeletion is a helper method to define mock.On call
- ctx context.Context
- machineID string
type MockDeletionRequestor_RequestDeletion_Call ¶
MockDeletionRequestor_RequestDeletion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestDeletion'
func (*MockDeletionRequestor_RequestDeletion_Call) Return ¶
func (_c *MockDeletionRequestor_RequestDeletion_Call) Return(err error) *MockDeletionRequestor_RequestDeletion_Call
func (*MockDeletionRequestor_RequestDeletion_Call) Run ¶
func (_c *MockDeletionRequestor_RequestDeletion_Call) Run(run func(ctx context.Context, machineID string)) *MockDeletionRequestor_RequestDeletion_Call
func (*MockDeletionRequestor_RequestDeletion_Call) RunAndReturn ¶
func (_c *MockDeletionRequestor_RequestDeletion_Call) RunAndReturn(run func(ctx context.Context, machineID string) error) *MockDeletionRequestor_RequestDeletion_Call