provider

package
v0.4.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	mock.Mock
}

Collector is an autogenerated mock type for the Collector type

func NewCollector

func NewCollector(t interface {
	mock.TestingT
	Cleanup(func())
}) *Collector

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

func (*Collector) Name

func (_m *Collector) Name() string

Name provides a mock function with given fields:

func (*Collector) Register

func (_m *Collector) Register(r Registry) error

Register provides a mock function with given fields: r

type Collector_CollectMetrics_Call

type Collector_CollectMetrics_Call struct {
	*mock.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 (*Collector_CollectMetrics_Call) Run

func (*Collector_CollectMetrics_Call) RunAndReturn

type Collector_Collect_Call

type Collector_Collect_Call struct {
	*mock.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 (*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

type Collector_Describe_Call struct {
	*mock.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 (*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

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

type Collector_Name_Call struct {
	*mock.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 (*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

type Collector_Register_Call struct {
	*mock.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 (*Collector_Register_Call) Run

func (*Collector_Register_Call) RunAndReturn

func (_c *Collector_Register_Call) RunAndReturn(run func(Registry) error) *Collector_Register_Call

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func NewProvider

func NewProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *Provider

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

func (_m *Provider) RegisterCollectors(r Registry) error

RegisterCollectors provides a mock function with given fields: r

type Provider_Collect_Call

type Provider_Collect_Call struct {
	*mock.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 (*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

type Provider_Describe_Call struct {
	*mock.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 (*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

type Provider_RegisterCollectors_Call struct {
	*mock.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 (*Provider_RegisterCollectors_Call) Run

func (*Provider_RegisterCollectors_Call) RunAndReturn

type Registry

type Registry struct {
	mock.Mock
}

Registry is an autogenerated mock type for the Registry type

func NewRegistry

func NewRegistry(t interface {
	mock.TestingT
	Cleanup(func())
}) *Registry

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

type Registry_Collect_Call struct {
	*mock.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 (*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

type Registry_Describe_Call struct {
	*mock.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 (*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

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

type Registry_Gather_Call struct {
	*mock.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 (*Registry_Gather_Call) Run

func (_c *Registry_Gather_Call) Run(run func()) *Registry_Gather_Call

func (*Registry_Gather_Call) RunAndReturn

type Registry_MustRegister_Call

type Registry_MustRegister_Call struct {
	*mock.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 (*Registry_MustRegister_Call) Run

func (*Registry_MustRegister_Call) RunAndReturn

type Registry_Register_Call

type Registry_Register_Call struct {
	*mock.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 (*Registry_Register_Call) Run

func (*Registry_Register_Call) RunAndReturn

type Registry_Unregister_Call

type Registry_Unregister_Call struct {
	*mock.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 (*Registry_Unregister_Call) Run

func (*Registry_Unregister_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL