fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeDatascienceV1alpha1

type FakeDatascienceV1alpha1 struct {
	*testing.Fake
}

func (*FakeDatascienceV1alpha1) JobRuns

func (*FakeDatascienceV1alpha1) Jobs

func (*FakeDatascienceV1alpha1) ModelDeployments

func (c *FakeDatascienceV1alpha1) ModelDeployments(namespace string) v1alpha1.ModelDeploymentInterface

func (*FakeDatascienceV1alpha1) ModelProvenances

func (c *FakeDatascienceV1alpha1) ModelProvenances(namespace string) v1alpha1.ModelProvenanceInterface

func (*FakeDatascienceV1alpha1) Models

func (*FakeDatascienceV1alpha1) NotebookSessions

func (c *FakeDatascienceV1alpha1) NotebookSessions(namespace string) v1alpha1.NotebookSessionInterface

func (*FakeDatascienceV1alpha1) Projects

func (*FakeDatascienceV1alpha1) RESTClient

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

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

type FakeJobRuns

type FakeJobRuns struct {
	Fake *FakeDatascienceV1alpha1
	// contains filtered or unexported fields
}

FakeJobRuns implements JobRunInterface

func (*FakeJobRuns) Create

func (c *FakeJobRuns) Create(ctx context.Context, jobRun *v1alpha1.JobRun, opts v1.CreateOptions) (result *v1alpha1.JobRun, err error)

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

func (*FakeJobRuns) Delete

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

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

func (*FakeJobRuns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJobRuns) Get

func (c *FakeJobRuns) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.JobRun, err error)

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

func (*FakeJobRuns) List

func (c *FakeJobRuns) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.JobRunList, err error)

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

func (*FakeJobRuns) Patch

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

Patch applies the patch and returns the patched jobRun.

func (*FakeJobRuns) Update

func (c *FakeJobRuns) Update(ctx context.Context, jobRun *v1alpha1.JobRun, opts v1.UpdateOptions) (result *v1alpha1.JobRun, err error)

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

func (*FakeJobRuns) UpdateStatus

func (c *FakeJobRuns) UpdateStatus(ctx context.Context, jobRun *v1alpha1.JobRun, opts v1.UpdateOptions) (*v1alpha1.JobRun, error)

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

func (*FakeJobRuns) Watch

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

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

type FakeJobs

type FakeJobs struct {
	Fake *FakeDatascienceV1alpha1
	// contains filtered or unexported fields
}

FakeJobs implements JobInterface

func (*FakeJobs) Create

func (c *FakeJobs) Create(ctx context.Context, job *v1alpha1.Job, opts v1.CreateOptions) (result *v1alpha1.Job, err error)

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

func (*FakeJobs) Delete

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

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

func (*FakeJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJobs) Get

func (c *FakeJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Job, err error)

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

func (*FakeJobs) List

func (c *FakeJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.JobList, err error)

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

func (*FakeJobs) Patch

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

Patch applies the patch and returns the patched job.

func (*FakeJobs) Update

func (c *FakeJobs) Update(ctx context.Context, job *v1alpha1.Job, opts v1.UpdateOptions) (result *v1alpha1.Job, err error)

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

func (*FakeJobs) UpdateStatus

func (c *FakeJobs) UpdateStatus(ctx context.Context, job *v1alpha1.Job, opts v1.UpdateOptions) (*v1alpha1.Job, error)

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

func (*FakeJobs) Watch

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

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

type FakeModelDeployments

type FakeModelDeployments struct {
	Fake *FakeDatascienceV1alpha1
	// contains filtered or unexported fields
}

FakeModelDeployments implements ModelDeploymentInterface

func (*FakeModelDeployments) Create

func (c *FakeModelDeployments) Create(ctx context.Context, modelDeployment *v1alpha1.ModelDeployment, opts v1.CreateOptions) (result *v1alpha1.ModelDeployment, err error)

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

func (*FakeModelDeployments) Delete

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

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

func (*FakeModelDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeModelDeployments) Get

func (c *FakeModelDeployments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ModelDeployment, err error)

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

func (*FakeModelDeployments) List

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

func (*FakeModelDeployments) Patch

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

Patch applies the patch and returns the patched modelDeployment.

func (*FakeModelDeployments) Update

func (c *FakeModelDeployments) Update(ctx context.Context, modelDeployment *v1alpha1.ModelDeployment, opts v1.UpdateOptions) (result *v1alpha1.ModelDeployment, err error)

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

func (*FakeModelDeployments) UpdateStatus

func (c *FakeModelDeployments) UpdateStatus(ctx context.Context, modelDeployment *v1alpha1.ModelDeployment, opts v1.UpdateOptions) (*v1alpha1.ModelDeployment, error)

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

func (*FakeModelDeployments) Watch

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

type FakeModelProvenances

type FakeModelProvenances struct {
	Fake *FakeDatascienceV1alpha1
	// contains filtered or unexported fields
}

FakeModelProvenances implements ModelProvenanceInterface

func (*FakeModelProvenances) Create

func (c *FakeModelProvenances) Create(ctx context.Context, modelProvenance *v1alpha1.ModelProvenance, opts v1.CreateOptions) (result *v1alpha1.ModelProvenance, err error)

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

func (*FakeModelProvenances) Delete

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

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

func (*FakeModelProvenances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeModelProvenances) Get

func (c *FakeModelProvenances) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ModelProvenance, err error)

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

func (*FakeModelProvenances) List

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

func (*FakeModelProvenances) Patch

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

Patch applies the patch and returns the patched modelProvenance.

func (*FakeModelProvenances) Update

func (c *FakeModelProvenances) Update(ctx context.Context, modelProvenance *v1alpha1.ModelProvenance, opts v1.UpdateOptions) (result *v1alpha1.ModelProvenance, err error)

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

func (*FakeModelProvenances) UpdateStatus

func (c *FakeModelProvenances) UpdateStatus(ctx context.Context, modelProvenance *v1alpha1.ModelProvenance, opts v1.UpdateOptions) (*v1alpha1.ModelProvenance, error)

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

func (*FakeModelProvenances) Watch

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

type FakeModels

type FakeModels struct {
	Fake *FakeDatascienceV1alpha1
	// contains filtered or unexported fields
}

FakeModels implements ModelInterface

func (*FakeModels) Create

func (c *FakeModels) Create(ctx context.Context, model *v1alpha1.Model, opts v1.CreateOptions) (result *v1alpha1.Model, err error)

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

func (*FakeModels) Delete

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

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

func (*FakeModels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeModels) Get

func (c *FakeModels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Model, err error)

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

func (*FakeModels) List

func (c *FakeModels) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ModelList, err error)

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

func (*FakeModels) Patch

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

Patch applies the patch and returns the patched model.

func (*FakeModels) Update

func (c *FakeModels) Update(ctx context.Context, model *v1alpha1.Model, opts v1.UpdateOptions) (result *v1alpha1.Model, err error)

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

func (*FakeModels) UpdateStatus

func (c *FakeModels) UpdateStatus(ctx context.Context, model *v1alpha1.Model, opts v1.UpdateOptions) (*v1alpha1.Model, error)

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

func (*FakeModels) Watch

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

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

type FakeNotebookSessions

type FakeNotebookSessions struct {
	Fake *FakeDatascienceV1alpha1
	// contains filtered or unexported fields
}

FakeNotebookSessions implements NotebookSessionInterface

func (*FakeNotebookSessions) Create

func (c *FakeNotebookSessions) Create(ctx context.Context, notebookSession *v1alpha1.NotebookSession, opts v1.CreateOptions) (result *v1alpha1.NotebookSession, err error)

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

func (*FakeNotebookSessions) Delete

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

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

func (*FakeNotebookSessions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNotebookSessions) Get

func (c *FakeNotebookSessions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NotebookSession, err error)

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

func (*FakeNotebookSessions) List

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

func (*FakeNotebookSessions) Patch

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

Patch applies the patch and returns the patched notebookSession.

func (*FakeNotebookSessions) Update

func (c *FakeNotebookSessions) Update(ctx context.Context, notebookSession *v1alpha1.NotebookSession, opts v1.UpdateOptions) (result *v1alpha1.NotebookSession, err error)

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

func (*FakeNotebookSessions) UpdateStatus

func (c *FakeNotebookSessions) UpdateStatus(ctx context.Context, notebookSession *v1alpha1.NotebookSession, opts v1.UpdateOptions) (*v1alpha1.NotebookSession, error)

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

func (*FakeNotebookSessions) Watch

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

type FakeProjects

type FakeProjects struct {
	Fake *FakeDatascienceV1alpha1
	// contains filtered or unexported fields
}

FakeProjects implements ProjectInterface

func (*FakeProjects) Create

func (c *FakeProjects) Create(ctx context.Context, project *v1alpha1.Project, opts v1.CreateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) Delete

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

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

func (*FakeProjects) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProjects) Get

func (c *FakeProjects) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) List

func (c *FakeProjects) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProjectList, err error)

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

func (*FakeProjects) Patch

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

Patch applies the patch and returns the patched project.

func (*FakeProjects) Update

func (c *FakeProjects) Update(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (result *v1alpha1.Project, err error)

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

func (*FakeProjects) UpdateStatus

func (c *FakeProjects) UpdateStatus(ctx context.Context, project *v1alpha1.Project, opts v1.UpdateOptions) (*v1alpha1.Project, error)

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

func (*FakeProjects) Watch

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

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

Jump to

Keyboard shortcuts

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