fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 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 FakeKleverossV1alpha1

type FakeKleverossV1alpha1 struct {
	*testing.Fake
}

func (*FakeKleverossV1alpha1) ModelJobs

func (c *FakeKleverossV1alpha1) ModelJobs(namespace string) v1alpha1.ModelJobInterface

func (*FakeKleverossV1alpha1) RESTClient

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

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

type FakeModelJobs

type FakeModelJobs struct {
	Fake *FakeKleverossV1alpha1
	// contains filtered or unexported fields
}

FakeModelJobs implements ModelJobInterface

func (*FakeModelJobs) Create

func (c *FakeModelJobs) Create(modelJob *v1alpha1.ModelJob) (result *v1alpha1.ModelJob, err error)

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

func (*FakeModelJobs) Delete

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

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

func (*FakeModelJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeModelJobs) Get

func (c *FakeModelJobs) Get(name string, options v1.GetOptions) (result *v1alpha1.ModelJob, err error)

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

func (*FakeModelJobs) List

func (c *FakeModelJobs) List(opts v1.ListOptions) (result *v1alpha1.ModelJobList, err error)

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

func (*FakeModelJobs) Patch

func (c *FakeModelJobs) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ModelJob, err error)

Patch applies the patch and returns the patched modelJob.

func (*FakeModelJobs) Update

func (c *FakeModelJobs) Update(modelJob *v1alpha1.ModelJob) (result *v1alpha1.ModelJob, err error)

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

func (*FakeModelJobs) UpdateStatus

func (c *FakeModelJobs) UpdateStatus(modelJob *v1alpha1.ModelJob) (*v1alpha1.ModelJob, error)

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

func (*FakeModelJobs) Watch

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

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

Jump to

Keyboard shortcuts

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