telemetry

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBackend

type MockBackend struct {
	mock.Mock
}

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

func (*MockBackend) Send

func (_mock *MockBackend) Send(ctx context.Context, events []telemetry.Event) error

Send provides a mock function for the type MockBackend

type MockBackend_Close_Call

type MockBackend_Close_Call struct {
	*mock.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 (*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

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

type MockBackend_Send_Call struct {
	*mock.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 (*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

type MockDeletionRequestor struct {
	mock.Mock
}

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 (*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

type MockDeletionRequestor_RequestDeletion_Call struct {
	*mock.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 (*MockDeletionRequestor_RequestDeletion_Call) Run

func (*MockDeletionRequestor_RequestDeletion_Call) RunAndReturn

Jump to

Keyboard shortcuts

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