fake

package
v0.0.0-...-58e94d5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 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 FakeRayV1

type FakeRayV1 struct {
	*testing.Fake
}

func (*FakeRayV1) RESTClient

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

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

func (*FakeRayV1) Rays

func (c *FakeRayV1) Rays(namespace string) v1.RayInterface

type FakeRays

type FakeRays struct {
	Fake *FakeRayV1
	// contains filtered or unexported fields
}

FakeRays implements RayInterface

func (*FakeRays) Create

func (c *FakeRays) Create(ray *rayiov1.Ray) (result *rayiov1.Ray, err error)

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

func (*FakeRays) Delete

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

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

func (*FakeRays) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRays) Get

func (c *FakeRays) Get(name string, options v1.GetOptions) (result *rayiov1.Ray, err error)

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

func (*FakeRays) List

func (c *FakeRays) List(opts v1.ListOptions) (result *rayiov1.RayList, err error)

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

func (*FakeRays) Patch

func (c *FakeRays) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *rayiov1.Ray, err error)

Patch applies the patch and returns the patched ray.

func (*FakeRays) Update

func (c *FakeRays) Update(ray *rayiov1.Ray) (result *rayiov1.Ray, err error)

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

func (*FakeRays) UpdateStatus

func (c *FakeRays) UpdateStatus(ray *rayiov1.Ray) (*rayiov1.Ray, error)

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

func (*FakeRays) Watch

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

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

Jump to

Keyboard shortcuts

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