fake

package
v0.0.0-...-8aa1181 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 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 FakeKubeflowV1beta1

type FakeKubeflowV1beta1 struct {
	*testing.Fake
}

func (*FakeKubeflowV1beta1) RESTClient

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

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

func (*FakeKubeflowV1beta1) TrainingJobs

func (c *FakeKubeflowV1beta1) TrainingJobs(namespace string) v1beta1.TrainingJobInterface

type FakeTrainingJobs

type FakeTrainingJobs struct {
	Fake *FakeKubeflowV1beta1
	// contains filtered or unexported fields
}

FakeTrainingJobs implements TrainingJobInterface

func (*FakeTrainingJobs) Create

func (c *FakeTrainingJobs) Create(ctx context.Context, trainingJob *v1beta1.TrainingJob, opts v1.CreateOptions) (result *v1beta1.TrainingJob, err error)

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

func (*FakeTrainingJobs) Delete

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

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

func (*FakeTrainingJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTrainingJobs) Get

func (c *FakeTrainingJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.TrainingJob, err error)

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

func (*FakeTrainingJobs) List

func (c *FakeTrainingJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.TrainingJobList, err error)

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

func (*FakeTrainingJobs) Patch

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

Patch applies the patch and returns the patched trainingJob.

func (*FakeTrainingJobs) Update

func (c *FakeTrainingJobs) Update(ctx context.Context, trainingJob *v1beta1.TrainingJob, opts v1.UpdateOptions) (result *v1beta1.TrainingJob, err error)

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

func (*FakeTrainingJobs) UpdateStatus

func (c *FakeTrainingJobs) UpdateStatus(ctx context.Context, trainingJob *v1beta1.TrainingJob, opts v1.UpdateOptions) (*v1beta1.TrainingJob, error)

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

func (*FakeTrainingJobs) Watch

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

Jump to

Keyboard shortcuts

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