Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeRayClusters
- func (c *FakeRayClusters) Create(ctx context.Context, rayCluster *v1.RayCluster, opts metav1.CreateOptions) (result *v1.RayCluster, err error)
- func (c *FakeRayClusters) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeRayClusters) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeRayClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RayCluster, err error)
- func (c *FakeRayClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RayClusterList, err error)
- func (c *FakeRayClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.RayCluster, err error)
- func (c *FakeRayClusters) Update(ctx context.Context, rayCluster *v1.RayCluster, opts metav1.UpdateOptions) (result *v1.RayCluster, err error)
- func (c *FakeRayClusters) UpdateStatus(ctx context.Context, rayCluster *v1.RayCluster, opts metav1.UpdateOptions) (*v1.RayCluster, error)
- func (c *FakeRayClusters) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeRayJobs
- func (c *FakeRayJobs) Create(ctx context.Context, rayJob *v1.RayJob, opts metav1.CreateOptions) (result *v1.RayJob, err error)
- func (c *FakeRayJobs) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeRayJobs) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeRayJobs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RayJob, err error)
- func (c *FakeRayJobs) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RayJobList, err error)
- func (c *FakeRayJobs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.RayJob, err error)
- func (c *FakeRayJobs) Update(ctx context.Context, rayJob *v1.RayJob, opts metav1.UpdateOptions) (result *v1.RayJob, err error)
- func (c *FakeRayJobs) UpdateStatus(ctx context.Context, rayJob *v1.RayJob, opts metav1.UpdateOptions) (*v1.RayJob, error)
- func (c *FakeRayJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeRayServices
- func (c *FakeRayServices) Create(ctx context.Context, rayService *v1.RayService, opts metav1.CreateOptions) (result *v1.RayService, err error)
- func (c *FakeRayServices) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeRayServices) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeRayServices) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RayService, err error)
- func (c *FakeRayServices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RayServiceList, err error)
- func (c *FakeRayServices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.RayService, err error)
- func (c *FakeRayServices) Update(ctx context.Context, rayService *v1.RayService, opts metav1.UpdateOptions) (result *v1.RayService, err error)
- func (c *FakeRayServices) UpdateStatus(ctx context.Context, rayService *v1.RayService, opts metav1.UpdateOptions) (*v1.RayService, error)
- func (c *FakeRayServices) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeRayV1
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 ¶
func (c *FakeRayClusters) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeRayJobs) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
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 ¶
func (c *FakeRayServices) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested rayServices.
type FakeRayV1 ¶
func (*FakeRayV1) RESTClient ¶
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