fake

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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 FakeReporterV1

type FakeReporterV1 struct {
	*testing.Fake
}

func (*FakeReporterV1) RESTClient

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

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

func (*FakeReporterV1) Reports

func (c *FakeReporterV1) Reports(namespace string) v1.ReportInterface

type FakeReports

type FakeReports struct {
	Fake *FakeReporterV1
	// contains filtered or unexported fields
}

FakeReports implements ReportInterface

func (*FakeReports) Create

func (c *FakeReports) Create(report *reporterv1.Report) (result *reporterv1.Report, err error)

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

func (*FakeReports) Delete

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

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

func (*FakeReports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReports) Get

func (c *FakeReports) Get(name string, options v1.GetOptions) (result *reporterv1.Report, err error)

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

func (*FakeReports) List

func (c *FakeReports) List(opts v1.ListOptions) (result *reporterv1.ReportList, err error)

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

func (*FakeReports) Patch

func (c *FakeReports) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *reporterv1.Report, err error)

Patch applies the patch and returns the patched report.

func (*FakeReports) Update

func (c *FakeReports) Update(report *reporterv1.Report) (result *reporterv1.Report, err error)

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

func (*FakeReports) Watch

func (c *FakeReports) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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