fake

package
v0.0.0-...-6005cdf Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 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 FakeDatasets

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

FakeDatasets implements DatasetInterface

func (*FakeDatasets) Create

func (c *FakeDatasets) Create(ctx context.Context, dataset *v1alpha1.Dataset, opts v1.CreateOptions) (result *v1alpha1.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 v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeDatasets) Get

func (c *FakeDatasets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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 v1.ListOptions) (result *v1alpha1.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 v1.PatchOptions, subresources ...string) (result *v1alpha1.Dataset, err error)

Patch applies the patch and returns the patched dataset.

func (*FakeDatasets) Update

func (c *FakeDatasets) Update(ctx context.Context, dataset *v1alpha1.Dataset, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.Dataset, opts v1.UpdateOptions) (*v1alpha1.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

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

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

type FakeFederatedLearningJobs

type FakeFederatedLearningJobs struct {
	Fake *FakeNeptuneV1alpha1
	// contains filtered or unexported fields
}

FakeFederatedLearningJobs implements FederatedLearningJobInterface

func (*FakeFederatedLearningJobs) Create

func (c *FakeFederatedLearningJobs) Create(ctx context.Context, federatedLearningJob *v1alpha1.FederatedLearningJob, opts v1.CreateOptions) (result *v1alpha1.FederatedLearningJob, err error)

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

func (*FakeFederatedLearningJobs) Delete

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

func (*FakeFederatedLearningJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFederatedLearningJobs) Get

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

func (*FakeFederatedLearningJobs) List

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

func (*FakeFederatedLearningJobs) Patch

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

Patch applies the patch and returns the patched federatedLearningJob.

func (*FakeFederatedLearningJobs) Update

func (c *FakeFederatedLearningJobs) Update(ctx context.Context, federatedLearningJob *v1alpha1.FederatedLearningJob, opts v1.UpdateOptions) (result *v1alpha1.FederatedLearningJob, err error)

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

func (*FakeFederatedLearningJobs) UpdateStatus

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

func (*FakeFederatedLearningJobs) Watch

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

type FakeIncrementalLearningJobs

type FakeIncrementalLearningJobs struct {
	Fake *FakeNeptuneV1alpha1
	// contains filtered or unexported fields
}

FakeIncrementalLearningJobs implements IncrementalLearningJobInterface

func (*FakeIncrementalLearningJobs) Create

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

func (*FakeIncrementalLearningJobs) Delete

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

func (*FakeIncrementalLearningJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIncrementalLearningJobs) Get

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

func (*FakeIncrementalLearningJobs) List

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

func (*FakeIncrementalLearningJobs) Patch

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

Patch applies the patch and returns the patched incrementalLearningJob.

func (*FakeIncrementalLearningJobs) Update

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

func (*FakeIncrementalLearningJobs) UpdateStatus

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

func (*FakeIncrementalLearningJobs) Watch

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

type FakeJointInferenceServices

type FakeJointInferenceServices struct {
	Fake *FakeNeptuneV1alpha1
	// contains filtered or unexported fields
}

FakeJointInferenceServices implements JointInferenceServiceInterface

func (*FakeJointInferenceServices) Create

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

func (*FakeJointInferenceServices) Delete

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

func (*FakeJointInferenceServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeJointInferenceServices) Get

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

func (*FakeJointInferenceServices) List

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

func (*FakeJointInferenceServices) Patch

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

Patch applies the patch and returns the patched jointInferenceService.

func (*FakeJointInferenceServices) Update

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

func (*FakeJointInferenceServices) UpdateStatus

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

func (*FakeJointInferenceServices) Watch

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

type FakeModels

type FakeModels struct {
	Fake *FakeNeptuneV1alpha1
	// 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 FakeNeptuneV1alpha1

type FakeNeptuneV1alpha1 struct {
	*testing.Fake
}

func (*FakeNeptuneV1alpha1) Datasets

func (c *FakeNeptuneV1alpha1) Datasets(namespace string) v1alpha1.DatasetInterface

func (*FakeNeptuneV1alpha1) FederatedLearningJobs

func (c *FakeNeptuneV1alpha1) FederatedLearningJobs(namespace string) v1alpha1.FederatedLearningJobInterface

func (*FakeNeptuneV1alpha1) IncrementalLearningJobs

func (c *FakeNeptuneV1alpha1) IncrementalLearningJobs(namespace string) v1alpha1.IncrementalLearningJobInterface

func (*FakeNeptuneV1alpha1) JointInferenceServices

func (c *FakeNeptuneV1alpha1) JointInferenceServices(namespace string) v1alpha1.JointInferenceServiceInterface

func (*FakeNeptuneV1alpha1) Models

func (c *FakeNeptuneV1alpha1) Models(namespace string) v1alpha1.ModelInterface

func (*FakeNeptuneV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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