Documentation ¶
Overview ¶
Package mock_metriccache is a generated GoMock package.
Package mock_metriccache is a generated GoMock package.
Package mock_metriccache is a generated GoMock package.
Package mock_metriccache is a generated GoMock package.
Index ¶
- type MockAggregateResult
- func (m *MockAggregateResult) AddSeries(arg0 storage.Series) error
- func (m *MockAggregateResult) Count() int
- func (m *MockAggregateResult) EXPECT() *MockAggregateResultMockRecorder
- func (m *MockAggregateResult) GetKind() string
- func (m *MockAggregateResult) GetProperties() map[string]string
- func (m *MockAggregateResult) TimeRangeDuration() time.Duration
- func (m *MockAggregateResult) Value(t metriccache.AggregationType) (float64, error)
- type MockAggregateResultFactory
- type MockAggregateResultFactoryMockRecorder
- type MockAggregateResultMockRecorder
- func (mr *MockAggregateResultMockRecorder) AddSeries(arg0 interface{}) *gomock.Call
- func (mr *MockAggregateResultMockRecorder) Count() *gomock.Call
- func (mr *MockAggregateResultMockRecorder) GetKind() *gomock.Call
- func (mr *MockAggregateResultMockRecorder) GetProperties() *gomock.Call
- func (mr *MockAggregateResultMockRecorder) TimeRangeDuration() *gomock.Call
- func (mr *MockAggregateResultMockRecorder) Value(t interface{}) *gomock.Call
- type MockAppendable
- type MockAppendableMockRecorder
- type MockAppender
- type MockAppenderMockRecorder
- type MockKVStorage
- type MockKVStorageMockRecorder
- type MockMetricCache
- func (m *MockMetricCache) Appender() metriccache.Appender
- func (m *MockMetricCache) Close() error
- func (m *MockMetricCache) EXPECT() *MockMetricCacheMockRecorder
- func (m *MockMetricCache) Get(key interface{}) (interface{}, bool)
- func (m *MockMetricCache) Querier(startTime, endTime time.Time) (metriccache.Querier, error)
- func (m *MockMetricCache) Run(stopCh <-chan struct{}) error
- func (m *MockMetricCache) Set(key, value interface{})
- type MockMetricCacheMockRecorder
- func (mr *MockMetricCacheMockRecorder) Appender() *gomock.Call
- func (mr *MockMetricCacheMockRecorder) Close() *gomock.Call
- func (mr *MockMetricCacheMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) Querier(startTime, endTime interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) Run(stopCh interface{}) *gomock.Call
- func (mr *MockMetricCacheMockRecorder) Set(key, value interface{}) *gomock.Call
- type MockMetricResult
- type MockMetricResultMockRecorder
- type MockQuerier
- type MockQuerierMockRecorder
- type MockQueryable
- type MockQueryableMockRecorder
- type MockTSDBStorage
- type MockTSDBStorageMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAggregateResult ¶ added in v1.3.0
type MockAggregateResult struct {
// contains filtered or unexported fields
}
MockAggregateResult is a mock of AggregateResult interface.
func NewMockAggregateResult ¶ added in v1.3.0
func NewMockAggregateResult(ctrl *gomock.Controller) *MockAggregateResult
NewMockAggregateResult creates a new mock instance.
func (*MockAggregateResult) AddSeries ¶ added in v1.3.0
func (m *MockAggregateResult) AddSeries(arg0 storage.Series) error
AddSeries mocks base method.
func (*MockAggregateResult) Count ¶ added in v1.3.0
func (m *MockAggregateResult) Count() int
Count mocks base method.
func (*MockAggregateResult) EXPECT ¶ added in v1.3.0
func (m *MockAggregateResult) EXPECT() *MockAggregateResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAggregateResult) GetKind ¶ added in v1.3.0
func (m *MockAggregateResult) GetKind() string
GetKind mocks base method.
func (*MockAggregateResult) GetProperties ¶ added in v1.3.0
func (m *MockAggregateResult) GetProperties() map[string]string
GetProperties mocks base method.
func (*MockAggregateResult) TimeRangeDuration ¶ added in v1.3.0
func (m *MockAggregateResult) TimeRangeDuration() time.Duration
TimeRangeDuration mocks base method.
func (*MockAggregateResult) Value ¶ added in v1.3.0
func (m *MockAggregateResult) Value(t metriccache.AggregationType) (float64, error)
Value mocks base method.
type MockAggregateResultFactory ¶ added in v1.3.0
type MockAggregateResultFactory struct {
// contains filtered or unexported fields
}
MockAggregateResultFactory is a mock of AggregateResultFactory interface.
func NewMockAggregateResultFactory ¶ added in v1.3.0
func NewMockAggregateResultFactory(ctrl *gomock.Controller) *MockAggregateResultFactory
NewMockAggregateResultFactory creates a new mock instance.
func (*MockAggregateResultFactory) EXPECT ¶ added in v1.3.0
func (m *MockAggregateResultFactory) EXPECT() *MockAggregateResultFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAggregateResultFactory) New ¶ added in v1.3.0
func (m *MockAggregateResultFactory) New(meta metriccache.MetricMeta) metriccache.AggregateResult
New mocks base method.
type MockAggregateResultFactoryMockRecorder ¶ added in v1.3.0
type MockAggregateResultFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockAggregateResultFactoryMockRecorder is the mock recorder for MockAggregateResultFactory.
func (*MockAggregateResultFactoryMockRecorder) New ¶ added in v1.3.0
func (mr *MockAggregateResultFactoryMockRecorder) New(meta interface{}) *gomock.Call
New indicates an expected call of New.
type MockAggregateResultMockRecorder ¶ added in v1.3.0
type MockAggregateResultMockRecorder struct {
// contains filtered or unexported fields
}
MockAggregateResultMockRecorder is the mock recorder for MockAggregateResult.
func (*MockAggregateResultMockRecorder) AddSeries ¶ added in v1.3.0
func (mr *MockAggregateResultMockRecorder) AddSeries(arg0 interface{}) *gomock.Call
AddSeries indicates an expected call of AddSeries.
func (*MockAggregateResultMockRecorder) Count ¶ added in v1.3.0
func (mr *MockAggregateResultMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*MockAggregateResultMockRecorder) GetKind ¶ added in v1.3.0
func (mr *MockAggregateResultMockRecorder) GetKind() *gomock.Call
GetKind indicates an expected call of GetKind.
func (*MockAggregateResultMockRecorder) GetProperties ¶ added in v1.3.0
func (mr *MockAggregateResultMockRecorder) GetProperties() *gomock.Call
GetProperties indicates an expected call of GetProperties.
func (*MockAggregateResultMockRecorder) TimeRangeDuration ¶ added in v1.3.0
func (mr *MockAggregateResultMockRecorder) TimeRangeDuration() *gomock.Call
TimeRangeDuration indicates an expected call of TimeRangeDuration.
func (*MockAggregateResultMockRecorder) Value ¶ added in v1.3.0
func (mr *MockAggregateResultMockRecorder) Value(t interface{}) *gomock.Call
Value indicates an expected call of Value.
type MockAppendable ¶ added in v1.3.0
type MockAppendable struct {
// contains filtered or unexported fields
}
MockAppendable is a mock of Appendable interface.
func NewMockAppendable ¶ added in v1.3.0
func NewMockAppendable(ctrl *gomock.Controller) *MockAppendable
NewMockAppendable creates a new mock instance.
func (*MockAppendable) Appender ¶ added in v1.3.0
func (m *MockAppendable) Appender() metriccache.Appender
Appender mocks base method.
func (*MockAppendable) EXPECT ¶ added in v1.3.0
func (m *MockAppendable) EXPECT() *MockAppendableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAppendableMockRecorder ¶ added in v1.3.0
type MockAppendableMockRecorder struct {
// contains filtered or unexported fields
}
MockAppendableMockRecorder is the mock recorder for MockAppendable.
func (*MockAppendableMockRecorder) Appender ¶ added in v1.3.0
func (mr *MockAppendableMockRecorder) Appender() *gomock.Call
Appender indicates an expected call of Appender.
type MockAppender ¶ added in v1.3.0
type MockAppender struct {
// contains filtered or unexported fields
}
MockAppender is a mock of Appender interface.
func NewMockAppender ¶ added in v1.3.0
func NewMockAppender(ctrl *gomock.Controller) *MockAppender
NewMockAppender creates a new mock instance.
func (*MockAppender) Append ¶ added in v1.3.0
func (m *MockAppender) Append(s []metriccache.MetricSample) error
Append mocks base method.
func (*MockAppender) Commit ¶ added in v1.3.0
func (m *MockAppender) Commit() error
Commit mocks base method.
func (*MockAppender) EXPECT ¶ added in v1.3.0
func (m *MockAppender) EXPECT() *MockAppenderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAppenderMockRecorder ¶ added in v1.3.0
type MockAppenderMockRecorder struct {
// contains filtered or unexported fields
}
MockAppenderMockRecorder is the mock recorder for MockAppender.
func (*MockAppenderMockRecorder) Append ¶ added in v1.3.0
func (mr *MockAppenderMockRecorder) Append(s interface{}) *gomock.Call
Append indicates an expected call of Append.
func (*MockAppenderMockRecorder) Commit ¶ added in v1.3.0
func (mr *MockAppenderMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
type MockKVStorage ¶ added in v1.3.0
type MockKVStorage struct {
// contains filtered or unexported fields
}
MockKVStorage is a mock of KVStorage interface.
func NewMockKVStorage ¶ added in v1.3.0
func NewMockKVStorage(ctrl *gomock.Controller) *MockKVStorage
NewMockKVStorage creates a new mock instance.
func (*MockKVStorage) EXPECT ¶ added in v1.3.0
func (m *MockKVStorage) EXPECT() *MockKVStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockKVStorage) Get ¶ added in v1.3.0
func (m *MockKVStorage) Get(key interface{}) (interface{}, bool)
Get mocks base method.
func (*MockKVStorage) Set ¶ added in v1.3.0
func (m *MockKVStorage) Set(key, value interface{})
Set mocks base method.
type MockKVStorageMockRecorder ¶ added in v1.3.0
type MockKVStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockKVStorageMockRecorder is the mock recorder for MockKVStorage.
func (*MockKVStorageMockRecorder) Get ¶ added in v1.3.0
func (mr *MockKVStorageMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockKVStorageMockRecorder) Set ¶ added in v1.3.0
func (mr *MockKVStorageMockRecorder) Set(key, value interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockMetricCache ¶
type MockMetricCache struct {
// contains filtered or unexported fields
}
MockMetricCache is a mock of MetricCache interface.
func NewMockMetricCache ¶
func NewMockMetricCache(ctrl *gomock.Controller) *MockMetricCache
NewMockMetricCache creates a new mock instance.
func (*MockMetricCache) Appender ¶ added in v1.3.0
func (m *MockMetricCache) Appender() metriccache.Appender
Appender mocks base method.
func (*MockMetricCache) Close ¶ added in v1.3.0
func (m *MockMetricCache) Close() error
Close mocks base method.
func (*MockMetricCache) EXPECT ¶
func (m *MockMetricCache) EXPECT() *MockMetricCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetricCache) Get ¶ added in v1.3.0
func (m *MockMetricCache) Get(key interface{}) (interface{}, bool)
Get mocks base method.
func (*MockMetricCache) Querier ¶ added in v1.3.0
func (m *MockMetricCache) Querier(startTime, endTime time.Time) (metriccache.Querier, error)
Querier mocks base method.
func (*MockMetricCache) Run ¶
func (m *MockMetricCache) Run(stopCh <-chan struct{}) error
Run mocks base method.
func (*MockMetricCache) Set ¶ added in v1.3.0
func (m *MockMetricCache) Set(key, value interface{})
Set mocks base method.
type MockMetricCacheMockRecorder ¶
type MockMetricCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricCacheMockRecorder is the mock recorder for MockMetricCache.
func (*MockMetricCacheMockRecorder) Appender ¶ added in v1.3.0
func (mr *MockMetricCacheMockRecorder) Appender() *gomock.Call
Appender indicates an expected call of Appender.
func (*MockMetricCacheMockRecorder) Close ¶ added in v1.3.0
func (mr *MockMetricCacheMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockMetricCacheMockRecorder) Get ¶ added in v1.3.0
func (mr *MockMetricCacheMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockMetricCacheMockRecorder) Querier ¶ added in v1.3.0
func (mr *MockMetricCacheMockRecorder) Querier(startTime, endTime interface{}) *gomock.Call
Querier indicates an expected call of Querier.
func (*MockMetricCacheMockRecorder) Run ¶
func (mr *MockMetricCacheMockRecorder) Run(stopCh interface{}) *gomock.Call
Run indicates an expected call of Run.
func (*MockMetricCacheMockRecorder) Set ¶ added in v1.3.0
func (mr *MockMetricCacheMockRecorder) Set(key, value interface{}) *gomock.Call
Set indicates an expected call of Set.
type MockMetricResult ¶ added in v1.3.0
type MockMetricResult struct {
// contains filtered or unexported fields
}
MockMetricResult is a mock of MetricResult interface.
func NewMockMetricResult ¶ added in v1.3.0
func NewMockMetricResult(ctrl *gomock.Controller) *MockMetricResult
NewMockMetricResult creates a new mock instance.
func (*MockMetricResult) AddSeries ¶ added in v1.3.0
func (m *MockMetricResult) AddSeries(arg0 storage.Series) error
AddSeries mocks base method.
func (*MockMetricResult) EXPECT ¶ added in v1.3.0
func (m *MockMetricResult) EXPECT() *MockMetricResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetricResult) GetKind ¶ added in v1.3.0
func (m *MockMetricResult) GetKind() string
GetKind mocks base method.
func (*MockMetricResult) GetProperties ¶ added in v1.3.0
func (m *MockMetricResult) GetProperties() map[string]string
GetProperties mocks base method.
type MockMetricResultMockRecorder ¶ added in v1.3.0
type MockMetricResultMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricResultMockRecorder is the mock recorder for MockMetricResult.
func (*MockMetricResultMockRecorder) AddSeries ¶ added in v1.3.0
func (mr *MockMetricResultMockRecorder) AddSeries(arg0 interface{}) *gomock.Call
AddSeries indicates an expected call of AddSeries.
func (*MockMetricResultMockRecorder) GetKind ¶ added in v1.3.0
func (mr *MockMetricResultMockRecorder) GetKind() *gomock.Call
GetKind indicates an expected call of GetKind.
func (*MockMetricResultMockRecorder) GetProperties ¶ added in v1.3.0
func (mr *MockMetricResultMockRecorder) GetProperties() *gomock.Call
GetProperties indicates an expected call of GetProperties.
type MockQuerier ¶ added in v1.3.0
type MockQuerier struct {
// contains filtered or unexported fields
}
MockQuerier is a mock of Querier interface.
func NewMockQuerier ¶ added in v1.3.0
func NewMockQuerier(ctrl *gomock.Controller) *MockQuerier
NewMockQuerier creates a new mock instance.
func (*MockQuerier) EXPECT ¶ added in v1.3.0
func (m *MockQuerier) EXPECT() *MockQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuerier) Query ¶ added in v1.3.0
func (m *MockQuerier) Query(meta metriccache.MetricMeta, hints *metriccache.QueryHints, result metriccache.MetricResult) error
Query mocks base method.
type MockQuerierMockRecorder ¶ added in v1.3.0
type MockQuerierMockRecorder struct {
// contains filtered or unexported fields
}
MockQuerierMockRecorder is the mock recorder for MockQuerier.
func (*MockQuerierMockRecorder) Query ¶ added in v1.3.0
func (mr *MockQuerierMockRecorder) Query(meta, hints, result interface{}) *gomock.Call
Query indicates an expected call of Query.
type MockQueryable ¶ added in v1.3.0
type MockQueryable struct {
// contains filtered or unexported fields
}
MockQueryable is a mock of Queryable interface.
func NewMockQueryable ¶ added in v1.3.0
func NewMockQueryable(ctrl *gomock.Controller) *MockQueryable
NewMockQueryable creates a new mock instance.
func (*MockQueryable) EXPECT ¶ added in v1.3.0
func (m *MockQueryable) EXPECT() *MockQueryableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueryable) Querier ¶ added in v1.3.0
func (m *MockQueryable) Querier(startTime, endTime time.Time) (metriccache.Querier, error)
Querier mocks base method.
type MockQueryableMockRecorder ¶ added in v1.3.0
type MockQueryableMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryableMockRecorder is the mock recorder for MockQueryable.
func (*MockQueryableMockRecorder) Querier ¶ added in v1.3.0
func (mr *MockQueryableMockRecorder) Querier(startTime, endTime interface{}) *gomock.Call
Querier indicates an expected call of Querier.
type MockTSDBStorage ¶ added in v1.3.0
type MockTSDBStorage struct {
// contains filtered or unexported fields
}
MockTSDBStorage is a mock of TSDBStorage interface.
func NewMockTSDBStorage ¶ added in v1.3.0
func NewMockTSDBStorage(ctrl *gomock.Controller) *MockTSDBStorage
NewMockTSDBStorage creates a new mock instance.
func (*MockTSDBStorage) Appender ¶ added in v1.3.0
func (m *MockTSDBStorage) Appender() metriccache.Appender
Appender mocks base method.
func (*MockTSDBStorage) Close ¶ added in v1.3.0
func (m *MockTSDBStorage) Close() error
Close mocks base method.
func (*MockTSDBStorage) EXPECT ¶ added in v1.3.0
func (m *MockTSDBStorage) EXPECT() *MockTSDBStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTSDBStorage) Querier ¶ added in v1.3.0
func (m *MockTSDBStorage) Querier(startTime, endTime time.Time) (metriccache.Querier, error)
Querier mocks base method.
type MockTSDBStorageMockRecorder ¶ added in v1.3.0
type MockTSDBStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockTSDBStorageMockRecorder is the mock recorder for MockTSDBStorage.
func (*MockTSDBStorageMockRecorder) Appender ¶ added in v1.3.0
func (mr *MockTSDBStorageMockRecorder) Appender() *gomock.Call
Appender indicates an expected call of Appender.
func (*MockTSDBStorageMockRecorder) Close ¶ added in v1.3.0
func (mr *MockTSDBStorageMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTSDBStorageMockRecorder) Querier ¶ added in v1.3.0
func (mr *MockTSDBStorageMockRecorder) Querier(startTime, endTime interface{}) *gomock.Call
Querier indicates an expected call of Querier.