Documentation ¶
Overview ¶
Package mock_metrics is a generated GoMock package.
Index ¶
- type MockMetrics
- func (m *MockMetrics) CountResult(arg0 v1alpha1.Result)
- func (m *MockMetrics) CountStart()
- func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
- func (m *MockMetrics) ObserveDurationByState(state *v1alpha1.StateItem) error
- func (m *MockMetrics) ObserveOngoingStateDuration(state *v1alpha1.PipelineRun) error
- func (m *MockMetrics) ObserveUpdateDurationByType(kind string, duration time.Duration)
- func (m *MockMetrics) SetQueueCount(arg0 int)
- func (m *MockMetrics) StartServer()
- type MockMetricsMockRecorder
- func (mr *MockMetricsMockRecorder) CountResult(arg0 interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) CountStart() *gomock.Call
- func (mr *MockMetricsMockRecorder) ObserveDurationByState(state interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) ObserveOngoingStateDuration(state interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) ObserveUpdateDurationByType(kind, duration interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) SetQueueCount(arg0 interface{}) *gomock.Call
- func (mr *MockMetricsMockRecorder) StartServer() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetrics ¶
type MockMetrics struct {
// contains filtered or unexported fields
}
MockMetrics is a mock of Metrics interface
func NewMockMetrics ¶
func NewMockMetrics(ctrl *gomock.Controller) *MockMetrics
NewMockMetrics creates a new mock instance
func (*MockMetrics) CountResult ¶
func (m *MockMetrics) CountResult(arg0 v1alpha1.Result)
CountResult mocks base method
func (*MockMetrics) EXPECT ¶
func (m *MockMetrics) EXPECT() *MockMetricsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMetrics) ObserveDurationByState ¶
func (m *MockMetrics) ObserveDurationByState(state *v1alpha1.StateItem) error
ObserveDurationByState mocks base method
func (*MockMetrics) ObserveOngoingStateDuration ¶
func (m *MockMetrics) ObserveOngoingStateDuration(state *v1alpha1.PipelineRun) error
ObserveOngoingStateDuration mocks base method
func (*MockMetrics) ObserveUpdateDurationByType ¶
func (m *MockMetrics) ObserveUpdateDurationByType(kind string, duration time.Duration)
ObserveUpdateDurationByType mocks base method
func (*MockMetrics) SetQueueCount ¶
func (m *MockMetrics) SetQueueCount(arg0 int)
SetQueueCount mocks base method
type MockMetricsMockRecorder ¶
type MockMetricsMockRecorder struct {
// contains filtered or unexported fields
}
MockMetricsMockRecorder is the mock recorder for MockMetrics
func (*MockMetricsMockRecorder) CountResult ¶
func (mr *MockMetricsMockRecorder) CountResult(arg0 interface{}) *gomock.Call
CountResult indicates an expected call of CountResult
func (*MockMetricsMockRecorder) CountStart ¶
func (mr *MockMetricsMockRecorder) CountStart() *gomock.Call
CountStart indicates an expected call of CountStart
func (*MockMetricsMockRecorder) ObserveDurationByState ¶
func (mr *MockMetricsMockRecorder) ObserveDurationByState(state interface{}) *gomock.Call
ObserveDurationByState indicates an expected call of ObserveDurationByState
func (*MockMetricsMockRecorder) ObserveOngoingStateDuration ¶
func (mr *MockMetricsMockRecorder) ObserveOngoingStateDuration(state interface{}) *gomock.Call
ObserveOngoingStateDuration indicates an expected call of ObserveOngoingStateDuration
func (*MockMetricsMockRecorder) ObserveUpdateDurationByType ¶
func (mr *MockMetricsMockRecorder) ObserveUpdateDurationByType(kind, duration interface{}) *gomock.Call
ObserveUpdateDurationByType indicates an expected call of ObserveUpdateDurationByType
func (*MockMetricsMockRecorder) SetQueueCount ¶
func (mr *MockMetricsMockRecorder) SetQueueCount(arg0 interface{}) *gomock.Call
SetQueueCount indicates an expected call of SetQueueCount
func (*MockMetricsMockRecorder) StartServer ¶
func (mr *MockMetricsMockRecorder) StartServer() *gomock.Call
StartServer indicates an expected call of StartServer