fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 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) PyTorchJobs

func (c *FakeKubeflowV1beta1) PyTorchJobs(namespace string) v1beta1.PyTorchJobInterface

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.

type FakePyTorchJobs

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

FakePyTorchJobs implements PyTorchJobInterface

func (*FakePyTorchJobs) Create

func (c *FakePyTorchJobs) Create(pyTorchJob *v1beta1.PyTorchJob) (result *v1beta1.PyTorchJob, err error)

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

func (*FakePyTorchJobs) Delete

func (c *FakePyTorchJobs) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakePyTorchJobs) DeleteCollection

func (c *FakePyTorchJobs) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePyTorchJobs) Get

func (c *FakePyTorchJobs) Get(name string, options v1.GetOptions) (result *v1beta1.PyTorchJob, err error)

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

func (*FakePyTorchJobs) List

func (c *FakePyTorchJobs) List(opts v1.ListOptions) (result *v1beta1.PyTorchJobList, err error)

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

func (*FakePyTorchJobs) Patch

func (c *FakePyTorchJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.PyTorchJob, err error)

Patch applies the patch and returns the patched pyTorchJob.

func (*FakePyTorchJobs) Update

func (c *FakePyTorchJobs) Update(pyTorchJob *v1beta1.PyTorchJob) (result *v1beta1.PyTorchJob, err error)

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

func (*FakePyTorchJobs) Watch

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

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

Jump to

Keyboard shortcuts

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