fake

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

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 FakeExternalMetrics

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

FakeExternalMetrics implements ExternalMetricInterface

func (*FakeExternalMetrics) Create

func (c *FakeExternalMetrics) Create(externalMetric *v1alpha1.ExternalMetric) (result *v1alpha1.ExternalMetric, err error)

Create takes the representation of a externalMetric and creates it. Returns the server's representation of the externalMetric, and an error, if there is any.

func (*FakeExternalMetrics) Delete

func (c *FakeExternalMetrics) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the externalMetric and deletes it. Returns an error if one occurs.

func (*FakeExternalMetrics) DeleteCollection

func (c *FakeExternalMetrics) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeExternalMetrics) Get

func (c *FakeExternalMetrics) Get(name string, options v1.GetOptions) (result *v1alpha1.ExternalMetric, err error)

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

func (*FakeExternalMetrics) List

func (c *FakeExternalMetrics) List(opts v1.ListOptions) (result *v1alpha1.ExternalMetricList, err error)

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

func (*FakeExternalMetrics) Update

func (c *FakeExternalMetrics) Update(externalMetric *v1alpha1.ExternalMetric) (result *v1alpha1.ExternalMetric, err error)

Update takes the representation of a externalMetric and updates it. Returns the server's representation of the externalMetric, and an error, if there is any.

func (*FakeExternalMetrics) Watch

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

type FakeMetricsV1alpha1

type FakeMetricsV1alpha1 struct {
	*testing.Fake
}

func (*FakeMetricsV1alpha1) ExternalMetrics

func (c *FakeMetricsV1alpha1) ExternalMetrics(namespace string) v1alpha1.ExternalMetricInterface

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.

Jump to

Keyboard shortcuts

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