Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockMetricClient
- func (m *MockMetricClient) Close() error
- func (m *MockMetricClient) CreateMetricDescriptor(arg0 context.Context, arg1 *v3.CreateMetricDescriptorRequest) (*metric.MetricDescriptor, error)
- func (m *MockMetricClient) CreateTimeSeries(arg0 context.Context, arg1 *v3.CreateTimeSeriesRequest) error
- func (m *MockMetricClient) DeleteMetricDescriptor(arg0 context.Context, arg1 *v3.DeleteMetricDescriptorRequest) error
- func (m *MockMetricClient) EXPECT() *MockMetricClientMockRecorder
- func (m *MockMetricClient) GetMetricDescriptor(arg0 context.Context, arg1 *v3.GetMetricDescriptorRequest) (*metric.MetricDescriptor, error)
- func (m *MockMetricClient) ListTimeSeries(arg0 context.Context, arg1 *v3.ListTimeSeriesRequest) ([]*v3.TimeSeries, error)
- type MockMetricClientMockRecorder
- func (mr *MockMetricClientMockRecorder) Close() *gomock.Call
- func (mr *MockMetricClientMockRecorder) CreateMetricDescriptor(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMetricClientMockRecorder) CreateTimeSeries(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMetricClientMockRecorder) DeleteMetricDescriptor(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMetricClientMockRecorder) GetMetricDescriptor(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMetricClientMockRecorder) ListTimeSeries(arg0, arg1 interface{}) *gomock.Call
- type MockMetricRecord
- func (m *MockMetricRecord) EXPECT() *MockMetricRecordMockRecorder
- func (m *MockMetricRecord) GetCounterStartTime() time.Time
- func (m *MockMetricRecord) GetLastUpdate() time.Time
- func (m *MockMetricRecord) SetCounterStartTime(arg0 context.Context, arg1 time.Time) error
- func (m *MockMetricRecord) UpdateError(arg0 context.Context, arg1 error) error
- func (m *MockMetricRecord) UpdateSuccess(arg0 context.Context, arg1 int, arg2 string) error
- type MockMetricRecordMockRecorder
- func (mr *MockMetricRecordMockRecorder) GetCounterStartTime() *gomock.Call
- func (mr *MockMetricRecordMockRecorder) GetLastUpdate() *gomock.Call
- func (mr *MockMetricRecordMockRecorder) SetCounterStartTime(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMetricRecordMockRecorder) UpdateError(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockMetricRecordMockRecorder) UpdateSuccess(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockSourceMetric
- func (m *MockSourceMetric) EXPECT() *MockSourceMetricMockRecorder
- func (m *MockSourceMetric) Query() string
- func (m *MockSourceMetric) StackdriverData(arg0 context.Context, arg1 time.Time, arg2 record.MetricRecord) (*metric.MetricDescriptor, []*v3.TimeSeries, error)
- func (m *MockSourceMetric) StackdriverName() string
- type MockSourceMetricMockRecorder
- type MockStackdriverAdapter
- func (m *MockStackdriverAdapter) Close() error
- func (m *MockStackdriverAdapter) CreateTimeseries(arg0 context.Context, arg1, arg2 string, arg3 *metric.MetricDescriptor, ...) error
- func (m *MockStackdriverAdapter) EXPECT() *MockStackdriverAdapterMockRecorder
- func (m *MockStackdriverAdapter) LatestTimestamp(arg0 context.Context, arg1, arg2 string) (time.Time, error)
- type MockStackdriverAdapterMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetricClient ¶
type MockMetricClient struct {
// contains filtered or unexported fields
}
MockMetricClient is a mock of MetricClient interface
func NewMockMetricClient ¶
func NewMockMetricClient(ctrl *gomock.Controller) *MockMetricClient
NewMockMetricClient creates a new mock instance
func (*MockMetricClient) CreateMetricDescriptor ¶
func (m *MockMetricClient) CreateMetricDescriptor(arg0 context.Context, arg1 *v3.CreateMetricDescriptorRequest) (*metric.MetricDescriptor, error)
CreateMetricDescriptor mocks base method
func (*MockMetricClient) CreateTimeSeries ¶
func (m *MockMetricClient) CreateTimeSeries(arg0 context.Context, arg1 *v3.CreateTimeSeriesRequest) error
CreateTimeSeries mocks base method
func (*MockMetricClient) DeleteMetricDescriptor ¶
func (m *MockMetricClient) DeleteMetricDescriptor(arg0 context.Context, arg1 *v3.DeleteMetricDescriptorRequest) error
DeleteMetricDescriptor mocks base method
func (*MockMetricClient) EXPECT ¶
func (m *MockMetricClient) EXPECT() *MockMetricClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMetricClient) GetMetricDescriptor ¶
func (m *MockMetricClient) GetMetricDescriptor(arg0 context.Context, arg1 *v3.GetMetricDescriptorRequest) (*metric.MetricDescriptor, error)
GetMetricDescriptor mocks base method
func (*MockMetricClient) ListTimeSeries ¶
func (m *MockMetricClient) ListTimeSeries(arg0 context.Context, arg1 *v3.ListTimeSeriesRequest) ([]*v3.TimeSeries, error)
ListTimeSeries mocks base method
type MockMetricClientMockRecorder ¶
type MockMetricClientMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricClientMockRecorder is the mock recorder for MockMetricClient
func (*MockMetricClientMockRecorder) Close ¶
func (mr *MockMetricClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockMetricClientMockRecorder) CreateMetricDescriptor ¶
func (mr *MockMetricClientMockRecorder) CreateMetricDescriptor(arg0, arg1 interface{}) *gomock.Call
CreateMetricDescriptor indicates an expected call of CreateMetricDescriptor
func (*MockMetricClientMockRecorder) CreateTimeSeries ¶
func (mr *MockMetricClientMockRecorder) CreateTimeSeries(arg0, arg1 interface{}) *gomock.Call
CreateTimeSeries indicates an expected call of CreateTimeSeries
func (*MockMetricClientMockRecorder) DeleteMetricDescriptor ¶
func (mr *MockMetricClientMockRecorder) DeleteMetricDescriptor(arg0, arg1 interface{}) *gomock.Call
DeleteMetricDescriptor indicates an expected call of DeleteMetricDescriptor
func (*MockMetricClientMockRecorder) GetMetricDescriptor ¶
func (mr *MockMetricClientMockRecorder) GetMetricDescriptor(arg0, arg1 interface{}) *gomock.Call
GetMetricDescriptor indicates an expected call of GetMetricDescriptor
func (*MockMetricClientMockRecorder) ListTimeSeries ¶
func (mr *MockMetricClientMockRecorder) ListTimeSeries(arg0, arg1 interface{}) *gomock.Call
ListTimeSeries indicates an expected call of ListTimeSeries
type MockMetricRecord ¶
type MockMetricRecord struct {
// contains filtered or unexported fields
}
MockMetricRecord is a mock of MetricRecord interface
func NewMockMetricRecord ¶
func NewMockMetricRecord(ctrl *gomock.Controller) *MockMetricRecord
NewMockMetricRecord creates a new mock instance
func (*MockMetricRecord) EXPECT ¶
func (m *MockMetricRecord) EXPECT() *MockMetricRecordMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMetricRecord) GetCounterStartTime ¶
func (m *MockMetricRecord) GetCounterStartTime() time.Time
GetCounterStartTime mocks base method
func (*MockMetricRecord) GetLastUpdate ¶
func (m *MockMetricRecord) GetLastUpdate() time.Time
GetLastUpdate mocks base method
func (*MockMetricRecord) SetCounterStartTime ¶
SetCounterStartTime mocks base method
func (*MockMetricRecord) UpdateError ¶
func (m *MockMetricRecord) UpdateError(arg0 context.Context, arg1 error) error
UpdateError mocks base method
func (*MockMetricRecord) UpdateSuccess ¶
UpdateSuccess mocks base method
type MockMetricRecordMockRecorder ¶
type MockMetricRecordMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricRecordMockRecorder is the mock recorder for MockMetricRecord
func (*MockMetricRecordMockRecorder) GetCounterStartTime ¶
func (mr *MockMetricRecordMockRecorder) GetCounterStartTime() *gomock.Call
GetCounterStartTime indicates an expected call of GetCounterStartTime
func (*MockMetricRecordMockRecorder) GetLastUpdate ¶
func (mr *MockMetricRecordMockRecorder) GetLastUpdate() *gomock.Call
GetLastUpdate indicates an expected call of GetLastUpdate
func (*MockMetricRecordMockRecorder) SetCounterStartTime ¶
func (mr *MockMetricRecordMockRecorder) SetCounterStartTime(arg0, arg1 interface{}) *gomock.Call
SetCounterStartTime indicates an expected call of SetCounterStartTime
func (*MockMetricRecordMockRecorder) UpdateError ¶
func (mr *MockMetricRecordMockRecorder) UpdateError(arg0, arg1 interface{}) *gomock.Call
UpdateError indicates an expected call of UpdateError
func (*MockMetricRecordMockRecorder) UpdateSuccess ¶
func (mr *MockMetricRecordMockRecorder) UpdateSuccess(arg0, arg1, arg2 interface{}) *gomock.Call
UpdateSuccess indicates an expected call of UpdateSuccess
type MockSourceMetric ¶
type MockSourceMetric struct {
// contains filtered or unexported fields
}
MockSourceMetric is a mock of SourceMetric interface
func NewMockSourceMetric ¶
func NewMockSourceMetric(ctrl *gomock.Controller) *MockSourceMetric
NewMockSourceMetric creates a new mock instance
func (*MockSourceMetric) EXPECT ¶
func (m *MockSourceMetric) EXPECT() *MockSourceMetricMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockSourceMetric) StackdriverData ¶
func (m *MockSourceMetric) StackdriverData(arg0 context.Context, arg1 time.Time, arg2 record.MetricRecord) (*metric.MetricDescriptor, []*v3.TimeSeries, error)
StackdriverData mocks base method
func (*MockSourceMetric) StackdriverName ¶
func (m *MockSourceMetric) StackdriverName() string
StackdriverName mocks base method
type MockSourceMetricMockRecorder ¶
type MockSourceMetricMockRecorder struct {
// contains filtered or unexported fields
}
MockSourceMetricMockRecorder is the mock recorder for MockSourceMetric
func (*MockSourceMetricMockRecorder) Query ¶
func (mr *MockSourceMetricMockRecorder) Query() *gomock.Call
Query indicates an expected call of Query
func (*MockSourceMetricMockRecorder) StackdriverData ¶
func (mr *MockSourceMetricMockRecorder) StackdriverData(arg0, arg1, arg2 interface{}) *gomock.Call
StackdriverData indicates an expected call of StackdriverData
func (*MockSourceMetricMockRecorder) StackdriverName ¶
func (mr *MockSourceMetricMockRecorder) StackdriverName() *gomock.Call
StackdriverName indicates an expected call of StackdriverName
type MockStackdriverAdapter ¶
type MockStackdriverAdapter struct {
// contains filtered or unexported fields
}
MockStackdriverAdapter is a mock of StackdriverAdapter interface
func NewMockStackdriverAdapter ¶
func NewMockStackdriverAdapter(ctrl *gomock.Controller) *MockStackdriverAdapter
NewMockStackdriverAdapter creates a new mock instance
func (*MockStackdriverAdapter) Close ¶
func (m *MockStackdriverAdapter) Close() error
Close mocks base method
func (*MockStackdriverAdapter) CreateTimeseries ¶
func (m *MockStackdriverAdapter) CreateTimeseries(arg0 context.Context, arg1, arg2 string, arg3 *metric.MetricDescriptor, arg4 []*v3.TimeSeries) error
CreateTimeseries mocks base method
func (*MockStackdriverAdapter) EXPECT ¶
func (m *MockStackdriverAdapter) EXPECT() *MockStackdriverAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStackdriverAdapter) LatestTimestamp ¶
func (m *MockStackdriverAdapter) LatestTimestamp(arg0 context.Context, arg1, arg2 string) (time.Time, error)
LatestTimestamp mocks base method
type MockStackdriverAdapterMockRecorder ¶
type MockStackdriverAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockStackdriverAdapterMockRecorder is the mock recorder for MockStackdriverAdapter
func (*MockStackdriverAdapterMockRecorder) Close ¶
func (mr *MockStackdriverAdapterMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockStackdriverAdapterMockRecorder) CreateTimeseries ¶
func (mr *MockStackdriverAdapterMockRecorder) CreateTimeseries(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
CreateTimeseries indicates an expected call of CreateTimeseries
func (*MockStackdriverAdapterMockRecorder) LatestTimestamp ¶
func (mr *MockStackdriverAdapterMockRecorder) LatestTimestamp(arg0, arg1, arg2 interface{}) *gomock.Call
LatestTimestamp indicates an expected call of LatestTimestamp