Documentation ¶
Index ¶
- type MockBlobClient
- type MockBlobClient_Expecter
- type MockBlobClient_UploadBuffer_Call
- func (_c *MockBlobClient_UploadBuffer_Call) Return(_a0 error) *MockBlobClient_UploadBuffer_Call
- func (_c *MockBlobClient_UploadBuffer_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string, _a3 []byte)) *MockBlobClient_UploadBuffer_Call
- func (_c *MockBlobClient_UploadBuffer_Call) RunAndReturn(run func(context.Context, string, string, []byte) error) *MockBlobClient_UploadBuffer_Call
- type MockMarshaler
- func (_m *MockMarshaler) EXPECT() *MockMarshaler_Expecter
- func (_m *MockMarshaler) Format() string
- func (_m *MockMarshaler) MarshalLogs(ld plog.Logs) ([]byte, error)
- func (_m *MockMarshaler) MarshalMetrics(md pmetric.Metrics) ([]byte, error)
- func (_m *MockMarshaler) MarshalTraces(td ptrace.Traces) ([]byte, error)
- type MockMarshaler_Expecter
- func (_e *MockMarshaler_Expecter) Format() *MockMarshaler_Format_Call
- func (_e *MockMarshaler_Expecter) MarshalLogs(ld interface{}) *MockMarshaler_MarshalLogs_Call
- func (_e *MockMarshaler_Expecter) MarshalMetrics(md interface{}) *MockMarshaler_MarshalMetrics_Call
- func (_e *MockMarshaler_Expecter) MarshalTraces(td interface{}) *MockMarshaler_MarshalTraces_Call
- type MockMarshaler_Format_Call
- type MockMarshaler_MarshalLogs_Call
- func (_c *MockMarshaler_MarshalLogs_Call) Return(_a0 []byte, _a1 error) *MockMarshaler_MarshalLogs_Call
- func (_c *MockMarshaler_MarshalLogs_Call) Run(run func(ld plog.Logs)) *MockMarshaler_MarshalLogs_Call
- func (_c *MockMarshaler_MarshalLogs_Call) RunAndReturn(run func(plog.Logs) ([]byte, error)) *MockMarshaler_MarshalLogs_Call
- type MockMarshaler_MarshalMetrics_Call
- func (_c *MockMarshaler_MarshalMetrics_Call) Return(_a0 []byte, _a1 error) *MockMarshaler_MarshalMetrics_Call
- func (_c *MockMarshaler_MarshalMetrics_Call) Run(run func(md pmetric.Metrics)) *MockMarshaler_MarshalMetrics_Call
- func (_c *MockMarshaler_MarshalMetrics_Call) RunAndReturn(run func(pmetric.Metrics) ([]byte, error)) *MockMarshaler_MarshalMetrics_Call
- type MockMarshaler_MarshalTraces_Call
- func (_c *MockMarshaler_MarshalTraces_Call) Return(_a0 []byte, _a1 error) *MockMarshaler_MarshalTraces_Call
- func (_c *MockMarshaler_MarshalTraces_Call) Run(run func(td ptrace.Traces)) *MockMarshaler_MarshalTraces_Call
- func (_c *MockMarshaler_MarshalTraces_Call) RunAndReturn(run func(ptrace.Traces) ([]byte, error)) *MockMarshaler_MarshalTraces_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlobClient ¶
MockBlobClient is an autogenerated mock type for the blobClient type
func NewMockBlobClient ¶
func NewMockBlobClient(t interface { mock.TestingT Cleanup(func()) }) *MockBlobClient
NewMockBlobClient creates a new instance of MockBlobClient. 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 (*MockBlobClient) EXPECT ¶
func (_m *MockBlobClient) EXPECT() *MockBlobClient_Expecter
func (*MockBlobClient) UploadBuffer ¶
func (_m *MockBlobClient) UploadBuffer(_a0 context.Context, _a1 string, _a2 string, _a3 []byte) error
UploadBuffer provides a mock function with given fields: _a0, _a1, _a2, _a3
type MockBlobClient_Expecter ¶
type MockBlobClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBlobClient_Expecter) UploadBuffer ¶
func (_e *MockBlobClient_Expecter) UploadBuffer(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *MockBlobClient_UploadBuffer_Call
UploadBuffer is a helper method to define mock.On call
- _a0 context.Context
- _a1 string
- _a2 string
- _a3 []byte
type MockBlobClient_UploadBuffer_Call ¶
MockBlobClient_UploadBuffer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UploadBuffer'
func (*MockBlobClient_UploadBuffer_Call) Return ¶
func (_c *MockBlobClient_UploadBuffer_Call) Return(_a0 error) *MockBlobClient_UploadBuffer_Call
func (*MockBlobClient_UploadBuffer_Call) Run ¶
func (_c *MockBlobClient_UploadBuffer_Call) Run(run func(_a0 context.Context, _a1 string, _a2 string, _a3 []byte)) *MockBlobClient_UploadBuffer_Call
func (*MockBlobClient_UploadBuffer_Call) RunAndReturn ¶
func (_c *MockBlobClient_UploadBuffer_Call) RunAndReturn(run func(context.Context, string, string, []byte) error) *MockBlobClient_UploadBuffer_Call
type MockMarshaler ¶
MockMarshaler is an autogenerated mock type for the marshaler type
func NewMockMarshaler ¶
func NewMockMarshaler(t interface { mock.TestingT Cleanup(func()) }) *MockMarshaler
NewMockMarshaler creates a new instance of MockMarshaler. 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 (*MockMarshaler) EXPECT ¶
func (_m *MockMarshaler) EXPECT() *MockMarshaler_Expecter
func (*MockMarshaler) Format ¶
func (_m *MockMarshaler) Format() string
Format provides a mock function with no fields
func (*MockMarshaler) MarshalLogs ¶
func (_m *MockMarshaler) MarshalLogs(ld plog.Logs) ([]byte, error)
MarshalLogs provides a mock function with given fields: ld
func (*MockMarshaler) MarshalMetrics ¶
func (_m *MockMarshaler) MarshalMetrics(md pmetric.Metrics) ([]byte, error)
MarshalMetrics provides a mock function with given fields: md
func (*MockMarshaler) MarshalTraces ¶
func (_m *MockMarshaler) MarshalTraces(td ptrace.Traces) ([]byte, error)
MarshalTraces provides a mock function with given fields: td
type MockMarshaler_Expecter ¶
type MockMarshaler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMarshaler_Expecter) Format ¶
func (_e *MockMarshaler_Expecter) Format() *MockMarshaler_Format_Call
Format is a helper method to define mock.On call
func (*MockMarshaler_Expecter) MarshalLogs ¶
func (_e *MockMarshaler_Expecter) MarshalLogs(ld interface{}) *MockMarshaler_MarshalLogs_Call
MarshalLogs is a helper method to define mock.On call
- ld plog.Logs
func (*MockMarshaler_Expecter) MarshalMetrics ¶
func (_e *MockMarshaler_Expecter) MarshalMetrics(md interface{}) *MockMarshaler_MarshalMetrics_Call
MarshalMetrics is a helper method to define mock.On call
- md pmetric.Metrics
func (*MockMarshaler_Expecter) MarshalTraces ¶
func (_e *MockMarshaler_Expecter) MarshalTraces(td interface{}) *MockMarshaler_MarshalTraces_Call
MarshalTraces is a helper method to define mock.On call
- td ptrace.Traces
type MockMarshaler_Format_Call ¶
MockMarshaler_Format_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Format'
func (*MockMarshaler_Format_Call) Return ¶
func (_c *MockMarshaler_Format_Call) Return(_a0 string) *MockMarshaler_Format_Call
func (*MockMarshaler_Format_Call) Run ¶
func (_c *MockMarshaler_Format_Call) Run(run func()) *MockMarshaler_Format_Call
func (*MockMarshaler_Format_Call) RunAndReturn ¶
func (_c *MockMarshaler_Format_Call) RunAndReturn(run func() string) *MockMarshaler_Format_Call
type MockMarshaler_MarshalLogs_Call ¶
MockMarshaler_MarshalLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarshalLogs'
func (*MockMarshaler_MarshalLogs_Call) Return ¶
func (_c *MockMarshaler_MarshalLogs_Call) Return(_a0 []byte, _a1 error) *MockMarshaler_MarshalLogs_Call
func (*MockMarshaler_MarshalLogs_Call) Run ¶
func (_c *MockMarshaler_MarshalLogs_Call) Run(run func(ld plog.Logs)) *MockMarshaler_MarshalLogs_Call
func (*MockMarshaler_MarshalLogs_Call) RunAndReturn ¶
func (_c *MockMarshaler_MarshalLogs_Call) RunAndReturn(run func(plog.Logs) ([]byte, error)) *MockMarshaler_MarshalLogs_Call
type MockMarshaler_MarshalMetrics_Call ¶
MockMarshaler_MarshalMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarshalMetrics'
func (*MockMarshaler_MarshalMetrics_Call) Return ¶
func (_c *MockMarshaler_MarshalMetrics_Call) Return(_a0 []byte, _a1 error) *MockMarshaler_MarshalMetrics_Call
func (*MockMarshaler_MarshalMetrics_Call) Run ¶
func (_c *MockMarshaler_MarshalMetrics_Call) Run(run func(md pmetric.Metrics)) *MockMarshaler_MarshalMetrics_Call
func (*MockMarshaler_MarshalMetrics_Call) RunAndReturn ¶
func (_c *MockMarshaler_MarshalMetrics_Call) RunAndReturn(run func(pmetric.Metrics) ([]byte, error)) *MockMarshaler_MarshalMetrics_Call
type MockMarshaler_MarshalTraces_Call ¶
MockMarshaler_MarshalTraces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarshalTraces'
func (*MockMarshaler_MarshalTraces_Call) Return ¶
func (_c *MockMarshaler_MarshalTraces_Call) Return(_a0 []byte, _a1 error) *MockMarshaler_MarshalTraces_Call
func (*MockMarshaler_MarshalTraces_Call) Run ¶
func (_c *MockMarshaler_MarshalTraces_Call) Run(run func(td ptrace.Traces)) *MockMarshaler_MarshalTraces_Call
func (*MockMarshaler_MarshalTraces_Call) RunAndReturn ¶
func (_c *MockMarshaler_MarshalTraces_Call) RunAndReturn(run func(ptrace.Traces) ([]byte, error)) *MockMarshaler_MarshalTraces_Call