fake

package
v3.7.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 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 FakeRoute

type FakeRoute struct {
	*testing.Fake
}

func (*FakeRoute) RESTClient

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

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

func (*FakeRoute) Routes

type FakeRoutes

type FakeRoutes struct {
	Fake *FakeRoute
	// contains filtered or unexported fields
}

FakeRoutes implements RouteResourceInterface

func (*FakeRoutes) Create

func (c *FakeRoutes) Create(routeResource *route.Route) (result *route.Route, err error)

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

func (*FakeRoutes) Delete

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

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

func (*FakeRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRoutes) Get

func (c *FakeRoutes) Get(name string, options v1.GetOptions) (result *route.Route, err error)

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

func (*FakeRoutes) List

func (c *FakeRoutes) List(opts v1.ListOptions) (result *route.RouteList, err error)

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

func (*FakeRoutes) Patch

func (c *FakeRoutes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *route.Route, err error)

Patch applies the patch and returns the patched routeResource.

func (*FakeRoutes) Update

func (c *FakeRoutes) Update(routeResource *route.Route) (result *route.Route, err error)

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

func (*FakeRoutes) UpdateStatus

func (c *FakeRoutes) UpdateStatus(routeResource *route.Route) (*route.Route, error)

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

func (*FakeRoutes) Watch

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

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

Jump to

Keyboard shortcuts

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