Documentation ¶
Overview ¶
Package mock implements the external provider interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { GetExternalMetricFunc func(ctx context.Context, namespace string, metricSelector labels.Selector, info provider.ExternalMetricInfo) (*external_metrics.ExternalMetricValueList, error) //nolint:lll // External interface requirement. ListAllExternalMetricsFunc func() []provider.ExternalMetricInfo }
Provider holds the config of the provider.
func (*Provider) GetExternalMetric ¶
func (p *Provider) GetExternalMetric(ctx context.Context, namespace string, metricSelector labels.Selector, info provider.ExternalMetricInfo) (*external_metrics.ExternalMetricValueList, error)
GetExternalMetric implemented from external provider interface.
func (*Provider) ListAllExternalMetrics ¶
func (p *Provider) ListAllExternalMetrics() []provider.ExternalMetricInfo
ListAllExternalMetrics implemented from external provider interface.
Click to show internal directories.
Click to hide internal directories.