Documentation ¶
Index ¶
- type Collector
- func (_m *Collector) Collect(_a0 chan<- prometheus.Metric) error
- func (_m *Collector) CollectMetrics(_a0 chan<- prometheus.Metric) float64
- func (_m *Collector) Describe(_a0 chan<- *prometheus.Desc) error
- func (_m *Collector) EXPECT() *Collector_Expecter
- func (_m *Collector) Name() string
- func (_m *Collector) Register(r Registry) error
- type Collector_CollectMetrics_Call
- func (_c *Collector_CollectMetrics_Call) Return(_a0 float64) *Collector_CollectMetrics_Call
- func (_c *Collector_CollectMetrics_Call) Run(run func(_a0 chan<- prometheus.Metric)) *Collector_CollectMetrics_Call
- func (_c *Collector_CollectMetrics_Call) RunAndReturn(run func(chan<- prometheus.Metric) float64) *Collector_CollectMetrics_Call
- type Collector_Collect_Call
- type Collector_Describe_Call
- type Collector_Expecter
- func (_e *Collector_Expecter) Collect(_a0 interface{}) *Collector_Collect_Call
- func (_e *Collector_Expecter) CollectMetrics(_a0 interface{}) *Collector_CollectMetrics_Call
- func (_e *Collector_Expecter) Describe(_a0 interface{}) *Collector_Describe_Call
- func (_e *Collector_Expecter) Name() *Collector_Name_Call
- func (_e *Collector_Expecter) Register(r interface{}) *Collector_Register_Call
- type Collector_Name_Call
- type Collector_Register_Call
- type Provider
- type Provider_Collect_Call
- type Provider_Describe_Call
- type Provider_Expecter
- type Provider_RegisterCollectors_Call
- func (_c *Provider_RegisterCollectors_Call) Return(_a0 error) *Provider_RegisterCollectors_Call
- func (_c *Provider_RegisterCollectors_Call) Run(run func(r Registry)) *Provider_RegisterCollectors_Call
- func (_c *Provider_RegisterCollectors_Call) RunAndReturn(run func(Registry) error) *Provider_RegisterCollectors_Call
- type Registry
- func (_m *Registry) Collect(_a0 chan<- prometheus.Metric)
- func (_m *Registry) Describe(_a0 chan<- *prometheus.Desc)
- func (_m *Registry) EXPECT() *Registry_Expecter
- func (_m *Registry) Gather() ([]*io_prometheus_client.MetricFamily, error)
- func (_m *Registry) MustRegister(_a0 ...prometheus.Collector)
- func (_m *Registry) Register(_a0 prometheus.Collector) error
- func (_m *Registry) Unregister(_a0 prometheus.Collector) bool
- type Registry_Collect_Call
- type Registry_Describe_Call
- type Registry_Expecter
- func (_e *Registry_Expecter) Collect(_a0 interface{}) *Registry_Collect_Call
- func (_e *Registry_Expecter) Describe(_a0 interface{}) *Registry_Describe_Call
- func (_e *Registry_Expecter) Gather() *Registry_Gather_Call
- func (_e *Registry_Expecter) MustRegister(_a0 ...interface{}) *Registry_MustRegister_Call
- func (_e *Registry_Expecter) Register(_a0 interface{}) *Registry_Register_Call
- func (_e *Registry_Expecter) Unregister(_a0 interface{}) *Registry_Unregister_Call
- type Registry_Gather_Call
- func (_c *Registry_Gather_Call) Return(_a0 []*io_prometheus_client.MetricFamily, _a1 error) *Registry_Gather_Call
- func (_c *Registry_Gather_Call) Run(run func()) *Registry_Gather_Call
- func (_c *Registry_Gather_Call) RunAndReturn(run func() ([]*io_prometheus_client.MetricFamily, error)) *Registry_Gather_Call
- type Registry_MustRegister_Call
- type Registry_Register_Call
- type Registry_Unregister_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
Collector is an autogenerated mock type for the Collector type
func NewCollector ¶
NewCollector creates a new instance of Collector. 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 (*Collector) Collect ¶
func (_m *Collector) Collect(_a0 chan<- prometheus.Metric) error
Collect provides a mock function with given fields: _a0
func (*Collector) CollectMetrics ¶
func (_m *Collector) CollectMetrics(_a0 chan<- prometheus.Metric) float64
CollectMetrics provides a mock function with given fields: _a0
func (*Collector) Describe ¶
func (_m *Collector) Describe(_a0 chan<- *prometheus.Desc) error
Describe provides a mock function with given fields: _a0
func (*Collector) EXPECT ¶
func (_m *Collector) EXPECT() *Collector_Expecter
type Collector_CollectMetrics_Call ¶
Collector_CollectMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CollectMetrics'
func (*Collector_CollectMetrics_Call) Return ¶
func (_c *Collector_CollectMetrics_Call) Return(_a0 float64) *Collector_CollectMetrics_Call
func (*Collector_CollectMetrics_Call) Run ¶
func (_c *Collector_CollectMetrics_Call) Run(run func(_a0 chan<- prometheus.Metric)) *Collector_CollectMetrics_Call
func (*Collector_CollectMetrics_Call) RunAndReturn ¶
func (_c *Collector_CollectMetrics_Call) RunAndReturn(run func(chan<- prometheus.Metric) float64) *Collector_CollectMetrics_Call
type Collector_Collect_Call ¶
Collector_Collect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collect'
func (*Collector_Collect_Call) Return ¶
func (_c *Collector_Collect_Call) Return(_a0 error) *Collector_Collect_Call
func (*Collector_Collect_Call) Run ¶
func (_c *Collector_Collect_Call) Run(run func(_a0 chan<- prometheus.Metric)) *Collector_Collect_Call
func (*Collector_Collect_Call) RunAndReturn ¶
func (_c *Collector_Collect_Call) RunAndReturn(run func(chan<- prometheus.Metric) error) *Collector_Collect_Call
type Collector_Describe_Call ¶
Collector_Describe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Describe'
func (*Collector_Describe_Call) Return ¶
func (_c *Collector_Describe_Call) Return(_a0 error) *Collector_Describe_Call
func (*Collector_Describe_Call) Run ¶
func (_c *Collector_Describe_Call) Run(run func(_a0 chan<- *prometheus.Desc)) *Collector_Describe_Call
func (*Collector_Describe_Call) RunAndReturn ¶
func (_c *Collector_Describe_Call) RunAndReturn(run func(chan<- *prometheus.Desc) error) *Collector_Describe_Call
type Collector_Expecter ¶
type Collector_Expecter struct {
// contains filtered or unexported fields
}
func (*Collector_Expecter) Collect ¶
func (_e *Collector_Expecter) Collect(_a0 interface{}) *Collector_Collect_Call
Collect is a helper method to define mock.On call
- _a0 chan<- prometheus.Metric
func (*Collector_Expecter) CollectMetrics ¶
func (_e *Collector_Expecter) CollectMetrics(_a0 interface{}) *Collector_CollectMetrics_Call
CollectMetrics is a helper method to define mock.On call
- _a0 chan<- prometheus.Metric
func (*Collector_Expecter) Describe ¶
func (_e *Collector_Expecter) Describe(_a0 interface{}) *Collector_Describe_Call
Describe is a helper method to define mock.On call
- _a0 chan<- *prometheus.Desc
func (*Collector_Expecter) Name ¶
func (_e *Collector_Expecter) Name() *Collector_Name_Call
Name is a helper method to define mock.On call
func (*Collector_Expecter) Register ¶
func (_e *Collector_Expecter) Register(r interface{}) *Collector_Register_Call
Register is a helper method to define mock.On call
- r Registry
type Collector_Name_Call ¶
Collector_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Collector_Name_Call) Return ¶
func (_c *Collector_Name_Call) Return(_a0 string) *Collector_Name_Call
func (*Collector_Name_Call) Run ¶
func (_c *Collector_Name_Call) Run(run func()) *Collector_Name_Call
func (*Collector_Name_Call) RunAndReturn ¶
func (_c *Collector_Name_Call) RunAndReturn(run func() string) *Collector_Name_Call
type Collector_Register_Call ¶
Collector_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Collector_Register_Call) Return ¶
func (_c *Collector_Register_Call) Return(_a0 error) *Collector_Register_Call
func (*Collector_Register_Call) Run ¶
func (_c *Collector_Register_Call) Run(run func(r Registry)) *Collector_Register_Call
func (*Collector_Register_Call) RunAndReturn ¶
func (_c *Collector_Register_Call) RunAndReturn(run func(Registry) error) *Collector_Register_Call
type Provider ¶
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
NewProvider creates a new instance of Provider. 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 (*Provider) Collect ¶
func (_m *Provider) Collect(_a0 chan<- prometheus.Metric)
Collect provides a mock function with given fields: _a0
func (*Provider) Describe ¶
func (_m *Provider) Describe(_a0 chan<- *prometheus.Desc)
Describe provides a mock function with given fields: _a0
func (*Provider) EXPECT ¶
func (_m *Provider) EXPECT() *Provider_Expecter
func (*Provider) RegisterCollectors ¶
RegisterCollectors provides a mock function with given fields: r
type Provider_Collect_Call ¶
Provider_Collect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collect'
func (*Provider_Collect_Call) Return ¶
func (_c *Provider_Collect_Call) Return() *Provider_Collect_Call
func (*Provider_Collect_Call) Run ¶
func (_c *Provider_Collect_Call) Run(run func(_a0 chan<- prometheus.Metric)) *Provider_Collect_Call
func (*Provider_Collect_Call) RunAndReturn ¶
func (_c *Provider_Collect_Call) RunAndReturn(run func(chan<- prometheus.Metric)) *Provider_Collect_Call
type Provider_Describe_Call ¶
Provider_Describe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Describe'
func (*Provider_Describe_Call) Return ¶
func (_c *Provider_Describe_Call) Return() *Provider_Describe_Call
func (*Provider_Describe_Call) Run ¶
func (_c *Provider_Describe_Call) Run(run func(_a0 chan<- *prometheus.Desc)) *Provider_Describe_Call
func (*Provider_Describe_Call) RunAndReturn ¶
func (_c *Provider_Describe_Call) RunAndReturn(run func(chan<- *prometheus.Desc)) *Provider_Describe_Call
type Provider_Expecter ¶
type Provider_Expecter struct {
// contains filtered or unexported fields
}
func (*Provider_Expecter) Collect ¶
func (_e *Provider_Expecter) Collect(_a0 interface{}) *Provider_Collect_Call
Collect is a helper method to define mock.On call
- _a0 chan<- prometheus.Metric
func (*Provider_Expecter) Describe ¶
func (_e *Provider_Expecter) Describe(_a0 interface{}) *Provider_Describe_Call
Describe is a helper method to define mock.On call
- _a0 chan<- *prometheus.Desc
func (*Provider_Expecter) RegisterCollectors ¶
func (_e *Provider_Expecter) RegisterCollectors(r interface{}) *Provider_RegisterCollectors_Call
RegisterCollectors is a helper method to define mock.On call
- r Registry
type Provider_RegisterCollectors_Call ¶
Provider_RegisterCollectors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterCollectors'
func (*Provider_RegisterCollectors_Call) Return ¶
func (_c *Provider_RegisterCollectors_Call) Return(_a0 error) *Provider_RegisterCollectors_Call
func (*Provider_RegisterCollectors_Call) Run ¶
func (_c *Provider_RegisterCollectors_Call) Run(run func(r Registry)) *Provider_RegisterCollectors_Call
func (*Provider_RegisterCollectors_Call) RunAndReturn ¶
func (_c *Provider_RegisterCollectors_Call) RunAndReturn(run func(Registry) error) *Provider_RegisterCollectors_Call
type Registry ¶
Registry is an autogenerated mock type for the Registry type
func NewRegistry ¶
NewRegistry creates a new instance of Registry. 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 (*Registry) Collect ¶
func (_m *Registry) Collect(_a0 chan<- prometheus.Metric)
Collect provides a mock function with given fields: _a0
func (*Registry) Describe ¶
func (_m *Registry) Describe(_a0 chan<- *prometheus.Desc)
Describe provides a mock function with given fields: _a0
func (*Registry) EXPECT ¶
func (_m *Registry) EXPECT() *Registry_Expecter
func (*Registry) Gather ¶
func (_m *Registry) Gather() ([]*io_prometheus_client.MetricFamily, error)
Gather provides a mock function with given fields:
func (*Registry) MustRegister ¶
func (_m *Registry) MustRegister(_a0 ...prometheus.Collector)
MustRegister provides a mock function with given fields: _a0
func (*Registry) Register ¶
func (_m *Registry) Register(_a0 prometheus.Collector) error
Register provides a mock function with given fields: _a0
func (*Registry) Unregister ¶
func (_m *Registry) Unregister(_a0 prometheus.Collector) bool
Unregister provides a mock function with given fields: _a0
type Registry_Collect_Call ¶
Registry_Collect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collect'
func (*Registry_Collect_Call) Return ¶
func (_c *Registry_Collect_Call) Return() *Registry_Collect_Call
func (*Registry_Collect_Call) Run ¶
func (_c *Registry_Collect_Call) Run(run func(_a0 chan<- prometheus.Metric)) *Registry_Collect_Call
func (*Registry_Collect_Call) RunAndReturn ¶
func (_c *Registry_Collect_Call) RunAndReturn(run func(chan<- prometheus.Metric)) *Registry_Collect_Call
type Registry_Describe_Call ¶
Registry_Describe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Describe'
func (*Registry_Describe_Call) Return ¶
func (_c *Registry_Describe_Call) Return() *Registry_Describe_Call
func (*Registry_Describe_Call) Run ¶
func (_c *Registry_Describe_Call) Run(run func(_a0 chan<- *prometheus.Desc)) *Registry_Describe_Call
func (*Registry_Describe_Call) RunAndReturn ¶
func (_c *Registry_Describe_Call) RunAndReturn(run func(chan<- *prometheus.Desc)) *Registry_Describe_Call
type Registry_Expecter ¶
type Registry_Expecter struct {
// contains filtered or unexported fields
}
func (*Registry_Expecter) Collect ¶
func (_e *Registry_Expecter) Collect(_a0 interface{}) *Registry_Collect_Call
Collect is a helper method to define mock.On call
- _a0 chan<- prometheus.Metric
func (*Registry_Expecter) Describe ¶
func (_e *Registry_Expecter) Describe(_a0 interface{}) *Registry_Describe_Call
Describe is a helper method to define mock.On call
- _a0 chan<- *prometheus.Desc
func (*Registry_Expecter) Gather ¶
func (_e *Registry_Expecter) Gather() *Registry_Gather_Call
Gather is a helper method to define mock.On call
func (*Registry_Expecter) MustRegister ¶
func (_e *Registry_Expecter) MustRegister(_a0 ...interface{}) *Registry_MustRegister_Call
MustRegister is a helper method to define mock.On call
- _a0 ...prometheus.Collector
func (*Registry_Expecter) Register ¶
func (_e *Registry_Expecter) Register(_a0 interface{}) *Registry_Register_Call
Register is a helper method to define mock.On call
- _a0 prometheus.Collector
func (*Registry_Expecter) Unregister ¶
func (_e *Registry_Expecter) Unregister(_a0 interface{}) *Registry_Unregister_Call
Unregister is a helper method to define mock.On call
- _a0 prometheus.Collector
type Registry_Gather_Call ¶
Registry_Gather_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Gather'
func (*Registry_Gather_Call) Return ¶
func (_c *Registry_Gather_Call) Return(_a0 []*io_prometheus_client.MetricFamily, _a1 error) *Registry_Gather_Call
func (*Registry_Gather_Call) Run ¶
func (_c *Registry_Gather_Call) Run(run func()) *Registry_Gather_Call
func (*Registry_Gather_Call) RunAndReturn ¶
func (_c *Registry_Gather_Call) RunAndReturn(run func() ([]*io_prometheus_client.MetricFamily, error)) *Registry_Gather_Call
type Registry_MustRegister_Call ¶
Registry_MustRegister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MustRegister'
func (*Registry_MustRegister_Call) Return ¶
func (_c *Registry_MustRegister_Call) Return() *Registry_MustRegister_Call
func (*Registry_MustRegister_Call) Run ¶
func (_c *Registry_MustRegister_Call) Run(run func(_a0 ...prometheus.Collector)) *Registry_MustRegister_Call
func (*Registry_MustRegister_Call) RunAndReturn ¶
func (_c *Registry_MustRegister_Call) RunAndReturn(run func(...prometheus.Collector)) *Registry_MustRegister_Call
type Registry_Register_Call ¶
Registry_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*Registry_Register_Call) Return ¶
func (_c *Registry_Register_Call) Return(_a0 error) *Registry_Register_Call
func (*Registry_Register_Call) Run ¶
func (_c *Registry_Register_Call) Run(run func(_a0 prometheus.Collector)) *Registry_Register_Call
func (*Registry_Register_Call) RunAndReturn ¶
func (_c *Registry_Register_Call) RunAndReturn(run func(prometheus.Collector) error) *Registry_Register_Call
type Registry_Unregister_Call ¶
Registry_Unregister_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unregister'
func (*Registry_Unregister_Call) Return ¶
func (_c *Registry_Unregister_Call) Return(_a0 bool) *Registry_Unregister_Call
func (*Registry_Unregister_Call) Run ¶
func (_c *Registry_Unregister_Call) Run(run func(_a0 prometheus.Collector)) *Registry_Unregister_Call
func (*Registry_Unregister_Call) RunAndReturn ¶
func (_c *Registry_Unregister_Call) RunAndReturn(run func(prometheus.Collector) bool) *Registry_Unregister_Call