package fake

import "k8s.io/metrics/pkg/client/custom_metrics/fake"

Index

Types

type FakeCustomMetricsClient

type FakeCustomMetricsClient struct {
	testing.Fake
}

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

type GetForActionImpl struct {
	testing.GetAction
	MetricName    string
	LabelSelector labels.Selector
}

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.