fake

package
v0.0.0-...-d0cda72 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 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 FakeRayClusters

type FakeRayClusters struct {
	Fake *FakeRayV1
}

FakeRayClusters implements RayClusterInterface

func (*FakeRayClusters) Create

func (c *FakeRayClusters) Create(ctx context.Context, rayCluster *v1.RayCluster, opts metav1.CreateOptions) (result *v1.RayCluster, err error)

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

func (*FakeRayClusters) Delete

func (c *FakeRayClusters) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

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

func (*FakeRayClusters) DeleteCollection

func (c *FakeRayClusters) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRayClusters) Get

func (c *FakeRayClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RayCluster, err error)

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

func (*FakeRayClusters) List

func (c *FakeRayClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RayClusterList, err error)

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

func (*FakeRayClusters) Patch

func (c *FakeRayClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RayCluster, err error)

Patch applies the patch and returns the patched rayCluster.

func (*FakeRayClusters) Update

func (c *FakeRayClusters) Update(ctx context.Context, rayCluster *v1.RayCluster, opts metav1.UpdateOptions) (result *v1.RayCluster, err error)

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

func (*FakeRayClusters) UpdateStatus

func (c *FakeRayClusters) UpdateStatus(ctx context.Context, rayCluster *v1.RayCluster, opts metav1.UpdateOptions) (*v1.RayCluster, error)

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

func (*FakeRayClusters) Watch

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

type FakeRayJobs

type FakeRayJobs struct {
	Fake *FakeRayV1
}

FakeRayJobs implements RayJobInterface

func (*FakeRayJobs) Create

func (c *FakeRayJobs) Create(ctx context.Context, rayJob *v1.RayJob, opts metav1.CreateOptions) (result *v1.RayJob, err error)

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

func (*FakeRayJobs) Delete

func (c *FakeRayJobs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

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

func (*FakeRayJobs) DeleteCollection

func (c *FakeRayJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRayJobs) Get

func (c *FakeRayJobs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RayJob, err error)

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

func (*FakeRayJobs) List

func (c *FakeRayJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RayJobList, err error)

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

func (*FakeRayJobs) Patch

func (c *FakeRayJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RayJob, err error)

Patch applies the patch and returns the patched rayJob.

func (*FakeRayJobs) Update

func (c *FakeRayJobs) Update(ctx context.Context, rayJob *v1.RayJob, opts metav1.UpdateOptions) (result *v1.RayJob, err error)

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

func (*FakeRayJobs) UpdateStatus

func (c *FakeRayJobs) UpdateStatus(ctx context.Context, rayJob *v1.RayJob, opts metav1.UpdateOptions) (*v1.RayJob, error)

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

func (*FakeRayJobs) Watch

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

type FakeRayServices

type FakeRayServices struct {
	Fake *FakeRayV1
}

FakeRayServices implements RayServiceInterface

func (*FakeRayServices) Create

func (c *FakeRayServices) Create(ctx context.Context, rayService *v1.RayService, opts metav1.CreateOptions) (result *v1.RayService, err error)

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

func (*FakeRayServices) Delete

func (c *FakeRayServices) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

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

func (*FakeRayServices) DeleteCollection

func (c *FakeRayServices) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRayServices) Get

func (c *FakeRayServices) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RayService, err error)

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

func (*FakeRayServices) List

func (c *FakeRayServices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RayServiceList, err error)

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

func (*FakeRayServices) Patch

func (c *FakeRayServices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RayService, err error)

Patch applies the patch and returns the patched rayService.

func (*FakeRayServices) Update

func (c *FakeRayServices) Update(ctx context.Context, rayService *v1.RayService, opts metav1.UpdateOptions) (result *v1.RayService, err error)

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

func (*FakeRayServices) UpdateStatus

func (c *FakeRayServices) UpdateStatus(ctx context.Context, rayService *v1.RayService, opts metav1.UpdateOptions) (*v1.RayService, error)

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

func (*FakeRayServices) Watch

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

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) RayClusters

func (c *FakeRayV1) RayClusters() v1.RayClusterInterface

func (*FakeRayV1) RayJobs

func (c *FakeRayV1) RayJobs() v1.RayJobInterface

func (*FakeRayV1) RayServices

func (c *FakeRayV1) RayServices() v1.RayServiceInterface

Jump to

Keyboard shortcuts

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