package external_metrics
import "k8s.io/metrics/pkg/client/external_metrics"
Index ¶
- type ExternalMetricsClient
- func New(client rest.Interface) ExternalMetricsClient
- func NewForConfig(c *rest.Config) (ExternalMetricsClient, error)
- func NewForConfigOrDie(c *rest.Config) ExternalMetricsClient
- type MetricsInterface
- type NamespacedMetricsGetter
Types ¶
type ExternalMetricsClient ¶
type ExternalMetricsClient interface {
NamespacedMetricsGetter
}
ExternalMetricsClient is a client for fetching external metrics.
func New ¶
func New(client rest.Interface) ExternalMetricsClient
func NewForConfig ¶
func NewForConfig(c *rest.Config) (ExternalMetricsClient, error)
func NewForConfigOrDie ¶
func NewForConfigOrDie(c *rest.Config) ExternalMetricsClient
type MetricsInterface ¶
type MetricsInterface interface {
// List fetches the metric for the given namespace that maches the given
// metricSelector.
List(metricName string, metricSelector labels.Selector) (*v1beta1.ExternalMetricValueList, error)
}
MetricsInterface provides access to external metrics.
type NamespacedMetricsGetter ¶
type NamespacedMetricsGetter interface {
NamespacedMetrics(namespace string) MetricsInterface
}
NamespacedMetricsGetter provides access to an interface for fetching metrics in a particular namespace.
Source Files ¶
client.go interfaces.go
Directories ¶
| Path | Synopsis |
|---|---|
| pkg/client/external_metrics/fake |
- Version
- v0.18.8
- Published
- Aug 13, 2020
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 4 seconds ago –
Tools for package owners.