fake

package
Version: v0.22.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeMetricsV1alpha1

type FakeMetricsV1alpha1 struct {
	*testing.Fake
}

func (*FakeMetricsV1alpha1) NodeMetricses

func (*FakeMetricsV1alpha1) PodMetricses

func (c *FakeMetricsV1alpha1) PodMetricses(namespace string) v1alpha1.PodMetricsInterface

func (*FakeMetricsV1alpha1) RESTClient

func (c *FakeMetricsV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

type FakeNodeMetricses

type FakeNodeMetricses struct {
	Fake *FakeMetricsV1alpha1
}

FakeNodeMetricses implements NodeMetricsInterface

func (*FakeNodeMetricses) Get

func (c *FakeNodeMetricses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeMetrics, err error)

Get takes name of the nodeMetrics, and returns the corresponding nodeMetrics object, and an error if there is any.

func (*FakeNodeMetricses) List

func (c *FakeNodeMetricses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeMetricsList, err error)

List takes label and field selectors, and returns the list of NodeMetricses that match those selectors.

func (*FakeNodeMetricses) Watch

Watch returns a watch.Interface that watches the requested nodeMetricses.

type FakePodMetricses

type FakePodMetricses struct {
	Fake *FakeMetricsV1alpha1
	// contains filtered or unexported fields
}

FakePodMetricses implements PodMetricsInterface

func (*FakePodMetricses) Get

func (c *FakePodMetricses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PodMetrics, err error)

Get takes name of the podMetrics, and returns the corresponding podMetrics object, and an error if there is any.

func (*FakePodMetricses) List

func (c *FakePodMetricses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.PodMetricsList, err error)

List takes label and field selectors, and returns the list of PodMetricses that match those selectors.

func (*FakePodMetricses) Watch

Watch returns a watch.Interface that watches the requested podMetricses.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL