 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type MockExporter
- type MockExporter_Expecter
- type MockExporter_Flush_Call
- type MockExporter_Send_Call
- func (_c *MockExporter_Send_Call) Return(_a0 error) *MockExporter_Send_Call
- func (_c *MockExporter_Send_Call) Run(run func(tenant string, series []prompb.TimeSeries)) *MockExporter_Send_Call
- func (_c *MockExporter_Send_Call) RunAndReturn(run func(string, []prompb.TimeSeries) error) *MockExporter_Send_Call
 
- type MockRuler
- type MockRuler_Expecter
- type MockRuler_RecordingRules_Call
- func (_c *MockRuler_RecordingRules_Call) Return(_a0 []*model.RecordingRule) *MockRuler_RecordingRules_Call
- func (_c *MockRuler_RecordingRules_Call) Run(run func(tenant string)) *MockRuler_RecordingRules_Call
- func (_c *MockRuler_RecordingRules_Call) RunAndReturn(run func(string) []*model.RecordingRule) *MockRuler_RecordingRules_Call
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExporter ¶
MockExporter is an autogenerated mock type for the Exporter type
func NewMockExporter ¶
func NewMockExporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExporter
    NewMockExporter creates a new instance of MockExporter. 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 (*MockExporter) EXPECT ¶
func (_m *MockExporter) EXPECT() *MockExporter_Expecter
func (*MockExporter) Flush ¶
func (_m *MockExporter) Flush()
Flush provides a mock function with no fields
func (*MockExporter) Send ¶
func (_m *MockExporter) Send(tenant string, series []prompb.TimeSeries) error
Send provides a mock function with given fields: tenant, series
type MockExporter_Expecter ¶
type MockExporter_Expecter struct {
	// contains filtered or unexported fields
}
    func (*MockExporter_Expecter) Flush ¶
func (_e *MockExporter_Expecter) Flush() *MockExporter_Flush_Call
Flush is a helper method to define mock.On call
func (*MockExporter_Expecter) Send ¶
func (_e *MockExporter_Expecter) Send(tenant interface{}, series interface{}) *MockExporter_Send_Call
Send is a helper method to define mock.On call
- tenant string
- series []prompb.TimeSeries
type MockExporter_Flush_Call ¶
MockExporter_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
func (*MockExporter_Flush_Call) Return ¶
func (_c *MockExporter_Flush_Call) Return() *MockExporter_Flush_Call
func (*MockExporter_Flush_Call) Run ¶
func (_c *MockExporter_Flush_Call) Run(run func()) *MockExporter_Flush_Call
func (*MockExporter_Flush_Call) RunAndReturn ¶
func (_c *MockExporter_Flush_Call) RunAndReturn(run func()) *MockExporter_Flush_Call
type MockExporter_Send_Call ¶
MockExporter_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'
func (*MockExporter_Send_Call) Return ¶
func (_c *MockExporter_Send_Call) Return(_a0 error) *MockExporter_Send_Call
func (*MockExporter_Send_Call) Run ¶
func (_c *MockExporter_Send_Call) Run(run func(tenant string, series []prompb.TimeSeries)) *MockExporter_Send_Call
func (*MockExporter_Send_Call) RunAndReturn ¶
func (_c *MockExporter_Send_Call) RunAndReturn(run func(string, []prompb.TimeSeries) error) *MockExporter_Send_Call
type MockRuler ¶
MockRuler is an autogenerated mock type for the Ruler type
func NewMockRuler ¶
NewMockRuler creates a new instance of MockRuler. 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 (*MockRuler) EXPECT ¶
func (_m *MockRuler) EXPECT() *MockRuler_Expecter
func (*MockRuler) RecordingRules ¶
func (_m *MockRuler) RecordingRules(tenant string) []*model.RecordingRule
RecordingRules provides a mock function with given fields: tenant
type MockRuler_Expecter ¶
type MockRuler_Expecter struct {
	// contains filtered or unexported fields
}
    func (*MockRuler_Expecter) RecordingRules ¶
func (_e *MockRuler_Expecter) RecordingRules(tenant interface{}) *MockRuler_RecordingRules_Call
RecordingRules is a helper method to define mock.On call
- tenant string
type MockRuler_RecordingRules_Call ¶
MockRuler_RecordingRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordingRules'
func (*MockRuler_RecordingRules_Call) Return ¶
func (_c *MockRuler_RecordingRules_Call) Return(_a0 []*model.RecordingRule) *MockRuler_RecordingRules_Call
func (*MockRuler_RecordingRules_Call) Run ¶
func (_c *MockRuler_RecordingRules_Call) Run(run func(tenant string)) *MockRuler_RecordingRules_Call
func (*MockRuler_RecordingRules_Call) RunAndReturn ¶
func (_c *MockRuler_RecordingRules_Call) RunAndReturn(run func(string) []*model.RecordingRule) *MockRuler_RecordingRules_Call