package fake
import "k8s.io/metrics/pkg/client/custom_metrics/fake"
Index ¶
- type FakeCustomMetricsClient
- func (c *FakeCustomMetricsClient) NamespacedMetrics(namespace string) cmclient.MetricsInterface
- func (c *FakeCustomMetricsClient) RootScopedMetrics() cmclient.MetricsInterface
- type GetForAction
- type GetForActionImpl
- func NewGetForAction(groupKind schema.GroupKind, namespace, name string, metricName string, labelSelector labels.Selector) GetForActionImpl
- func NewRootGetForAction(groupKind schema.GroupKind, name string, metricName string, labelSelector labels.Selector) GetForActionImpl
- func (i GetForActionImpl) DeepCopy() testing.Action
- func (i GetForActionImpl) GetLabelSelector() labels.Selector
- func (i GetForActionImpl) GetMetricName() string
- func (i GetForActionImpl) GetSubresource() string
Types ¶
type FakeCustomMetricsClient ¶
func (*FakeCustomMetricsClient) NamespacedMetrics ¶
func (c *FakeCustomMetricsClient) NamespacedMetrics(namespace string) cmclient.MetricsInterface
func (*FakeCustomMetricsClient) RootScopedMetrics ¶
func (c *FakeCustomMetricsClient) RootScopedMetrics() cmclient.MetricsInterface
type GetForAction ¶
type GetForAction interface { testing.GetAction GetMetricName() string GetLabelSelector() labels.Selector }
type GetForActionImpl ¶
func NewGetForAction ¶
func NewGetForAction(groupKind schema.GroupKind, namespace, name string, metricName string, labelSelector labels.Selector) GetForActionImpl
func NewRootGetForAction ¶
func NewRootGetForAction(groupKind schema.GroupKind, name string, metricName string, labelSelector labels.Selector) GetForActionImpl
func (GetForActionImpl) DeepCopy ¶
func (i GetForActionImpl) DeepCopy() testing.Action
func (GetForActionImpl) GetLabelSelector ¶
func (i GetForActionImpl) GetLabelSelector() labels.Selector
func (GetForActionImpl) GetMetricName ¶
func (i GetForActionImpl) GetMetricName() string
func (GetForActionImpl) GetSubresource ¶
func (i GetForActionImpl) GetSubresource() string
Source Files ¶
fake_client.go
- Version
- v0.33.1 (latest)
- Published
- May 15, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 5 days ago –
Tools for package owners.