fake

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 9 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 FakeTelemetryReports

type FakeTelemetryReports struct {
	Fake *FakeTelemetryV1
	// contains filtered or unexported fields
}

FakeTelemetryReports implements TelemetryReportInterface

func (*FakeTelemetryReports) Create

func (c *FakeTelemetryReports) Create(telemetryReport *telemetryv1.TelemetryReport) (result *telemetryv1.TelemetryReport, err error)

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

func (*FakeTelemetryReports) Delete

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

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

func (*FakeTelemetryReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTelemetryReports) Get

func (c *FakeTelemetryReports) Get(name string, options v1.GetOptions) (result *telemetryv1.TelemetryReport, err error)

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

func (*FakeTelemetryReports) List

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

func (*FakeTelemetryReports) Patch

func (c *FakeTelemetryReports) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *telemetryv1.TelemetryReport, err error)

Patch applies the patch and returns the patched telemetryReport.

func (*FakeTelemetryReports) Update

func (c *FakeTelemetryReports) Update(telemetryReport *telemetryv1.TelemetryReport) (result *telemetryv1.TelemetryReport, err error)

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

func (*FakeTelemetryReports) UpdateStatus

func (c *FakeTelemetryReports) UpdateStatus(telemetryReport *telemetryv1.TelemetryReport) (*telemetryv1.TelemetryReport, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTelemetryReports) Watch

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

type FakeTelemetryV1

type FakeTelemetryV1 struct {
	*testing.Fake
}

func (*FakeTelemetryV1) RESTClient

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

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

func (*FakeTelemetryV1) TelemetryReports

func (c *FakeTelemetryV1) TelemetryReports(namespace string) v1.TelemetryReportInterface

Jump to

Keyboard shortcuts

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