Documentation ¶
Overview ¶
Package mock_provider is a generated GoMock package.
Index ¶
- type MockCollector
- func (m *MockCollector) CheckReadiness() bool
- func (m *MockCollector) Collect(arg0 chan<- prometheus.Metric) error
- func (m *MockCollector) CollectMetrics(arg0 chan<- prometheus.Metric) float64
- func (m *MockCollector) Describe(arg0 chan<- *prometheus.Desc) error
- func (m *MockCollector) EXPECT() *MockCollectorMockRecorder
- func (m *MockCollector) Name() string
- func (m *MockCollector) Register(r provider.Registry) error
- type MockCollectorMockRecorder
- func (mr *MockCollectorMockRecorder) CheckReadiness() *gomock.Call
- func (mr *MockCollectorMockRecorder) Collect(arg0 any) *gomock.Call
- func (mr *MockCollectorMockRecorder) CollectMetrics(arg0 any) *gomock.Call
- func (mr *MockCollectorMockRecorder) Describe(arg0 any) *gomock.Call
- func (mr *MockCollectorMockRecorder) Name() *gomock.Call
- func (mr *MockCollectorMockRecorder) Register(r any) *gomock.Call
- type MockProvider
- type MockProviderMockRecorder
- type MockRegistry
- func (m *MockRegistry) Collect(arg0 chan<- prometheus.Metric)
- func (m *MockRegistry) Describe(arg0 chan<- *prometheus.Desc)
- func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
- func (m *MockRegistry) Gather() ([]*io_prometheus_client.MetricFamily, error)
- func (m *MockRegistry) MustRegister(arg0 ...prometheus.Collector)
- func (m *MockRegistry) Register(arg0 prometheus.Collector) error
- func (m *MockRegistry) Unregister(arg0 prometheus.Collector) bool
- type MockRegistryMockRecorder
- func (mr *MockRegistryMockRecorder) Collect(arg0 any) *gomock.Call
- func (mr *MockRegistryMockRecorder) Describe(arg0 any) *gomock.Call
- func (mr *MockRegistryMockRecorder) Gather() *gomock.Call
- func (mr *MockRegistryMockRecorder) MustRegister(arg0 ...any) *gomock.Call
- func (mr *MockRegistryMockRecorder) Register(arg0 any) *gomock.Call
- func (mr *MockRegistryMockRecorder) Unregister(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCollector ¶
type MockCollector struct {
// contains filtered or unexported fields
}
MockCollector is a mock of Collector interface.
func NewMockCollector ¶
func NewMockCollector(ctrl *gomock.Controller) *MockCollector
NewMockCollector creates a new mock instance.
func (*MockCollector) CheckReadiness ¶ added in v0.3.0
func (m *MockCollector) CheckReadiness() bool
CheckReadiness mocks base method.
func (*MockCollector) Collect ¶
func (m *MockCollector) Collect(arg0 chan<- prometheus.Metric) error
Collect mocks base method.
func (*MockCollector) CollectMetrics ¶
func (m *MockCollector) CollectMetrics(arg0 chan<- prometheus.Metric) float64
CollectMetrics mocks base method.
func (*MockCollector) Describe ¶
func (m *MockCollector) Describe(arg0 chan<- *prometheus.Desc) error
Describe mocks base method.
func (*MockCollector) EXPECT ¶
func (m *MockCollector) EXPECT() *MockCollectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCollectorMockRecorder ¶
type MockCollectorMockRecorder struct {
// contains filtered or unexported fields
}
MockCollectorMockRecorder is the mock recorder for MockCollector.
func (*MockCollectorMockRecorder) CheckReadiness ¶ added in v0.3.0
func (mr *MockCollectorMockRecorder) CheckReadiness() *gomock.Call
CheckReadiness indicates an expected call of CheckReadiness.
func (*MockCollectorMockRecorder) Collect ¶
func (mr *MockCollectorMockRecorder) Collect(arg0 any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockCollectorMockRecorder) CollectMetrics ¶
func (mr *MockCollectorMockRecorder) CollectMetrics(arg0 any) *gomock.Call
CollectMetrics indicates an expected call of CollectMetrics.
func (*MockCollectorMockRecorder) Describe ¶
func (mr *MockCollectorMockRecorder) Describe(arg0 any) *gomock.Call
Describe indicates an expected call of Describe.
func (*MockCollectorMockRecorder) Name ¶
func (mr *MockCollectorMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
type MockProvider ¶
type MockProvider struct {
// contains filtered or unexported fields
}
MockProvider is a mock of Provider interface.
func NewMockProvider ¶
func NewMockProvider(ctrl *gomock.Controller) *MockProvider
NewMockProvider creates a new mock instance.
func (*MockProvider) CheckReadiness ¶ added in v0.3.0
func (m *MockProvider) CheckReadiness() bool
CheckReadiness mocks base method.
func (*MockProvider) Collect ¶
func (m *MockProvider) Collect(arg0 chan<- prometheus.Metric)
Collect mocks base method.
func (*MockProvider) Describe ¶
func (m *MockProvider) Describe(arg0 chan<- *prometheus.Desc)
Describe mocks base method.
func (*MockProvider) EXPECT ¶
func (m *MockProvider) EXPECT() *MockProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProvider) RegisterCollectors ¶
func (m *MockProvider) RegisterCollectors(r provider.Registry) error
RegisterCollectors mocks base method.
type MockProviderMockRecorder ¶
type MockProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockProviderMockRecorder is the mock recorder for MockProvider.
func (*MockProviderMockRecorder) CheckReadiness ¶ added in v0.3.0
func (mr *MockProviderMockRecorder) CheckReadiness() *gomock.Call
CheckReadiness indicates an expected call of CheckReadiness.
func (*MockProviderMockRecorder) Collect ¶
func (mr *MockProviderMockRecorder) Collect(arg0 any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockProviderMockRecorder) Describe ¶
func (mr *MockProviderMockRecorder) Describe(arg0 any) *gomock.Call
Describe indicates an expected call of Describe.
func (*MockProviderMockRecorder) RegisterCollectors ¶
func (mr *MockProviderMockRecorder) RegisterCollectors(r any) *gomock.Call
RegisterCollectors indicates an expected call of RegisterCollectors.
type MockRegistry ¶
type MockRegistry struct {
// contains filtered or unexported fields
}
MockRegistry is a mock of Registry interface.
func NewMockRegistry ¶
func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry
NewMockRegistry creates a new mock instance.
func (*MockRegistry) Collect ¶
func (m *MockRegistry) Collect(arg0 chan<- prometheus.Metric)
Collect mocks base method.
func (*MockRegistry) Describe ¶
func (m *MockRegistry) Describe(arg0 chan<- *prometheus.Desc)
Describe mocks base method.
func (*MockRegistry) EXPECT ¶
func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRegistry) Gather ¶
func (m *MockRegistry) Gather() ([]*io_prometheus_client.MetricFamily, error)
Gather mocks base method.
func (*MockRegistry) MustRegister ¶
func (m *MockRegistry) MustRegister(arg0 ...prometheus.Collector)
MustRegister mocks base method.
func (*MockRegistry) Register ¶
func (m *MockRegistry) Register(arg0 prometheus.Collector) error
Register mocks base method.
func (*MockRegistry) Unregister ¶
func (m *MockRegistry) Unregister(arg0 prometheus.Collector) bool
Unregister mocks base method.
type MockRegistryMockRecorder ¶
type MockRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockRegistryMockRecorder is the mock recorder for MockRegistry.
func (*MockRegistryMockRecorder) Collect ¶
func (mr *MockRegistryMockRecorder) Collect(arg0 any) *gomock.Call
Collect indicates an expected call of Collect.
func (*MockRegistryMockRecorder) Describe ¶
func (mr *MockRegistryMockRecorder) Describe(arg0 any) *gomock.Call
Describe indicates an expected call of Describe.
func (*MockRegistryMockRecorder) Gather ¶
func (mr *MockRegistryMockRecorder) Gather() *gomock.Call
Gather indicates an expected call of Gather.
func (*MockRegistryMockRecorder) MustRegister ¶
func (mr *MockRegistryMockRecorder) MustRegister(arg0 ...any) *gomock.Call
MustRegister indicates an expected call of MustRegister.
func (*MockRegistryMockRecorder) Register ¶
func (mr *MockRegistryMockRecorder) Register(arg0 any) *gomock.Call
Register indicates an expected call of Register.
func (*MockRegistryMockRecorder) Unregister ¶
func (mr *MockRegistryMockRecorder) Unregister(arg0 any) *gomock.Call
Unregister indicates an expected call of Unregister.