fake

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 10 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 FakeKubeflowV2beta1

type FakeKubeflowV2beta1 struct {
	*testing.Fake
}

func (*FakeKubeflowV2beta1) MPIJobs

func (c *FakeKubeflowV2beta1) MPIJobs(namespace string) v2beta1.MPIJobInterface

func (*FakeKubeflowV2beta1) RESTClient

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

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

type FakeMPIJobs

type FakeMPIJobs struct {
	Fake *FakeKubeflowV2beta1
	// contains filtered or unexported fields
}

FakeMPIJobs implements MPIJobInterface

func (*FakeMPIJobs) Create

func (c *FakeMPIJobs) Create(ctx context.Context, mPIJob *v2beta1.MPIJob, opts v1.CreateOptions) (result *v2beta1.MPIJob, err error)

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

func (*FakeMPIJobs) Delete

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

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

func (*FakeMPIJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMPIJobs) Get

func (c *FakeMPIJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.MPIJob, err error)

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

func (*FakeMPIJobs) List

func (c *FakeMPIJobs) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.MPIJobList, err error)

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

func (*FakeMPIJobs) Patch

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

Patch applies the patch and returns the patched mPIJob.

func (*FakeMPIJobs) Update

func (c *FakeMPIJobs) Update(ctx context.Context, mPIJob *v2beta1.MPIJob, opts v1.UpdateOptions) (result *v2beta1.MPIJob, err error)

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

func (*FakeMPIJobs) UpdateStatus

func (c *FakeMPIJobs) UpdateStatus(ctx context.Context, mPIJob *v2beta1.MPIJob, opts v1.UpdateOptions) (*v2beta1.MPIJob, error)

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

func (*FakeMPIJobs) Watch

func (c *FakeMPIJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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