fake

package
v0.0.0-...-d0cda72 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 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 FakeDatasets

type FakeDatasets struct {
	Fake *FakeMlV1
	// contains filtered or unexported fields
}

FakeDatasets implements DatasetInterface

func (*FakeDatasets) Create

func (c *FakeDatasets) Create(ctx context.Context, dataset *v1.Dataset, opts metav1.CreateOptions) (result *v1.Dataset, err error)

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

func (*FakeDatasets) Delete

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

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

func (*FakeDatasets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatasets) Get

func (c *FakeDatasets) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Dataset, err error)

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

func (*FakeDatasets) List

func (c *FakeDatasets) List(ctx context.Context, opts metav1.ListOptions) (result *v1.DatasetList, err error)

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

func (*FakeDatasets) Patch

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

Patch applies the patch and returns the patched dataset.

func (*FakeDatasets) Update

func (c *FakeDatasets) Update(ctx context.Context, dataset *v1.Dataset, opts metav1.UpdateOptions) (result *v1.Dataset, err error)

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

func (*FakeDatasets) UpdateStatus

func (c *FakeDatasets) UpdateStatus(ctx context.Context, dataset *v1.Dataset, opts metav1.UpdateOptions) (*v1.Dataset, error)

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

func (*FakeDatasets) Watch

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

type FakeMLServices

type FakeMLServices struct {
	Fake *FakeMlV1
	// contains filtered or unexported fields
}

FakeMLServices implements MLServiceInterface

func (*FakeMLServices) Create

func (c *FakeMLServices) Create(ctx context.Context, mLService *v1.MLService, opts metav1.CreateOptions) (result *v1.MLService, err error)

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

func (*FakeMLServices) Delete

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

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

func (*FakeMLServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMLServices) Get

func (c *FakeMLServices) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.MLService, err error)

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

func (*FakeMLServices) List

func (c *FakeMLServices) List(ctx context.Context, opts metav1.ListOptions) (result *v1.MLServiceList, err error)

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

func (*FakeMLServices) Patch

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

Patch applies the patch and returns the patched mLService.

func (*FakeMLServices) Update

func (c *FakeMLServices) Update(ctx context.Context, mLService *v1.MLService, opts metav1.UpdateOptions) (result *v1.MLService, err error)

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

func (*FakeMLServices) UpdateStatus

func (c *FakeMLServices) UpdateStatus(ctx context.Context, mLService *v1.MLService, opts metav1.UpdateOptions) (*v1.MLService, error)

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

func (*FakeMLServices) Watch

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

type FakeMlV1

type FakeMlV1 struct {
	*testing.Fake
}

func (*FakeMlV1) Datasets

func (c *FakeMlV1) Datasets(namespace string) v1.DatasetInterface

func (*FakeMlV1) MLServices

func (c *FakeMlV1) MLServices(namespace string) v1.MLServiceInterface

func (*FakeMlV1) ModelTemplateVersions

func (c *FakeMlV1) ModelTemplateVersions(namespace string) v1.ModelTemplateVersionInterface

func (*FakeMlV1) ModelTemplates

func (c *FakeMlV1) ModelTemplates(namespace string) v1.ModelTemplateInterface

func (*FakeMlV1) Notebooks

func (c *FakeMlV1) Notebooks(namespace string) v1.NotebookInterface

func (*FakeMlV1) RESTClient

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

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

type FakeModelTemplateVersions

type FakeModelTemplateVersions struct {
	Fake *FakeMlV1
	// contains filtered or unexported fields
}

FakeModelTemplateVersions implements ModelTemplateVersionInterface

func (*FakeModelTemplateVersions) Create

func (c *FakeModelTemplateVersions) Create(ctx context.Context, modelTemplateVersion *v1.ModelTemplateVersion, opts metav1.CreateOptions) (result *v1.ModelTemplateVersion, err error)

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

func (*FakeModelTemplateVersions) Delete

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

func (*FakeModelTemplateVersions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeModelTemplateVersions) Get

func (c *FakeModelTemplateVersions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ModelTemplateVersion, err error)

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

func (*FakeModelTemplateVersions) List

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

func (*FakeModelTemplateVersions) Patch

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

Patch applies the patch and returns the patched modelTemplateVersion.

func (*FakeModelTemplateVersions) Update

func (c *FakeModelTemplateVersions) Update(ctx context.Context, modelTemplateVersion *v1.ModelTemplateVersion, opts metav1.UpdateOptions) (result *v1.ModelTemplateVersion, err error)

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

func (*FakeModelTemplateVersions) UpdateStatus

func (c *FakeModelTemplateVersions) UpdateStatus(ctx context.Context, modelTemplateVersion *v1.ModelTemplateVersion, opts metav1.UpdateOptions) (*v1.ModelTemplateVersion, error)

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

func (*FakeModelTemplateVersions) Watch

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

type FakeModelTemplates

type FakeModelTemplates struct {
	Fake *FakeMlV1
	// contains filtered or unexported fields
}

FakeModelTemplates implements ModelTemplateInterface

func (*FakeModelTemplates) Create

func (c *FakeModelTemplates) Create(ctx context.Context, modelTemplate *v1.ModelTemplate, opts metav1.CreateOptions) (result *v1.ModelTemplate, err error)

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

func (*FakeModelTemplates) Delete

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

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

func (*FakeModelTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeModelTemplates) Get

func (c *FakeModelTemplates) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ModelTemplate, err error)

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

func (*FakeModelTemplates) List

func (c *FakeModelTemplates) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ModelTemplateList, err error)

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

func (*FakeModelTemplates) Patch

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

Patch applies the patch and returns the patched modelTemplate.

func (*FakeModelTemplates) Update

func (c *FakeModelTemplates) Update(ctx context.Context, modelTemplate *v1.ModelTemplate, opts metav1.UpdateOptions) (result *v1.ModelTemplate, err error)

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

func (*FakeModelTemplates) UpdateStatus

func (c *FakeModelTemplates) UpdateStatus(ctx context.Context, modelTemplate *v1.ModelTemplate, opts metav1.UpdateOptions) (*v1.ModelTemplate, error)

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

func (*FakeModelTemplates) Watch

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

type FakeNotebooks

type FakeNotebooks struct {
	Fake *FakeMlV1
	// contains filtered or unexported fields
}

FakeNotebooks implements NotebookInterface

func (*FakeNotebooks) Create

func (c *FakeNotebooks) Create(ctx context.Context, notebook *v1.Notebook, opts metav1.CreateOptions) (result *v1.Notebook, err error)

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

func (*FakeNotebooks) Delete

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

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

func (*FakeNotebooks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNotebooks) Get

func (c *FakeNotebooks) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Notebook, err error)

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

func (*FakeNotebooks) List

func (c *FakeNotebooks) List(ctx context.Context, opts metav1.ListOptions) (result *v1.NotebookList, err error)

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

func (*FakeNotebooks) Patch

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

Patch applies the patch and returns the patched notebook.

func (*FakeNotebooks) Update

func (c *FakeNotebooks) Update(ctx context.Context, notebook *v1.Notebook, opts metav1.UpdateOptions) (result *v1.Notebook, err error)

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

func (*FakeNotebooks) UpdateStatus

func (c *FakeNotebooks) UpdateStatus(ctx context.Context, notebook *v1.Notebook, opts metav1.UpdateOptions) (*v1.Notebook, error)

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

func (*FakeNotebooks) Watch

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

Jump to

Keyboard shortcuts

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