fake

package
v0.0.0-...-e139c8d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 FakePaddlepaddleV1alpha1

type FakePaddlepaddleV1alpha1 struct {
	*testing.Fake
}

func (*FakePaddlepaddleV1alpha1) RESTClient

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

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

func (*FakePaddlepaddleV1alpha1) TrainingJobs

func (c *FakePaddlepaddleV1alpha1) TrainingJobs(namespace string) v1alpha1.TrainingJobInterface

type FakeTrainingJobs

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

FakeTrainingJobs implements TrainingJobInterface

func (*FakeTrainingJobs) Create

func (c *FakeTrainingJobs) Create(trainingJob *v1alpha1.TrainingJob) (result *v1alpha1.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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTrainingJobs) Get

func (c *FakeTrainingJobs) Get(name string, options v1.GetOptions) (result *v1alpha1.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(opts v1.ListOptions) (result *v1alpha1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.TrainingJob, err error)

Patch applies the patch and returns the patched trainingJob.

func (*FakeTrainingJobs) Update

func (c *FakeTrainingJobs) Update(trainingJob *v1alpha1.TrainingJob) (result *v1alpha1.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) Watch

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

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