type externalMetricsClient … func New(client rest.Interface) ExternalMetricsClient { … } func NewForConfig(c *rest.Config) (ExternalMetricsClient, error) { … } func NewForConfigOrDie(c *rest.Config) ExternalMetricsClient { … } func (c *externalMetricsClient) NamespacedMetrics(namespace string) MetricsInterface { … } type namespacedMetrics … func (m *namespacedMetrics) List(metricName string, metricSelector labels.Selector) (*v1beta1.ExternalMetricValueList, error) { … }