fake

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 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 FakeClusterServingRuntimes

type FakeClusterServingRuntimes struct {
	Fake *FakeServingV1alpha1
	// contains filtered or unexported fields
}

FakeClusterServingRuntimes implements ClusterServingRuntimeInterface

func (*FakeClusterServingRuntimes) Create

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

func (*FakeClusterServingRuntimes) Delete

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

func (*FakeClusterServingRuntimes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterServingRuntimes) Get

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

func (*FakeClusterServingRuntimes) List

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

func (*FakeClusterServingRuntimes) Patch

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

Patch applies the patch and returns the patched clusterServingRuntime.

func (*FakeClusterServingRuntimes) Update

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

func (*FakeClusterServingRuntimes) UpdateStatus

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

func (*FakeClusterServingRuntimes) Watch

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

type FakeClusterStorageContainers added in v0.12.0

type FakeClusterStorageContainers struct {
	Fake *FakeServingV1alpha1
	// contains filtered or unexported fields
}

FakeClusterStorageContainers implements ClusterStorageContainerInterface

func (*FakeClusterStorageContainers) Create added in v0.12.0

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

func (*FakeClusterStorageContainers) Delete added in v0.12.0

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

func (*FakeClusterStorageContainers) DeleteCollection added in v0.12.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterStorageContainers) Get added in v0.12.0

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

func (*FakeClusterStorageContainers) List added in v0.12.0

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

func (*FakeClusterStorageContainers) Patch added in v0.12.0

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

Patch applies the patch and returns the patched clusterStorageContainer.

func (*FakeClusterStorageContainers) Update added in v0.12.0

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

func (*FakeClusterStorageContainers) Watch added in v0.12.0

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

type FakeInferenceGraphs

type FakeInferenceGraphs struct {
	Fake *FakeServingV1alpha1
	// contains filtered or unexported fields
}

FakeInferenceGraphs implements InferenceGraphInterface

func (*FakeInferenceGraphs) Create

func (c *FakeInferenceGraphs) Create(ctx context.Context, inferenceGraph *v1alpha1.InferenceGraph, opts v1.CreateOptions) (result *v1alpha1.InferenceGraph, err error)

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

func (*FakeInferenceGraphs) Delete

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

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

func (*FakeInferenceGraphs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInferenceGraphs) Get

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

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

func (*FakeInferenceGraphs) List

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

func (*FakeInferenceGraphs) Patch

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

Patch applies the patch and returns the patched inferenceGraph.

func (*FakeInferenceGraphs) Update

func (c *FakeInferenceGraphs) Update(ctx context.Context, inferenceGraph *v1alpha1.InferenceGraph, opts v1.UpdateOptions) (result *v1alpha1.InferenceGraph, err error)

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

func (*FakeInferenceGraphs) UpdateStatus

func (c *FakeInferenceGraphs) UpdateStatus(ctx context.Context, inferenceGraph *v1alpha1.InferenceGraph, opts v1.UpdateOptions) (*v1alpha1.InferenceGraph, error)

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

func (*FakeInferenceGraphs) Watch

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

type FakeServingRuntimes

type FakeServingRuntimes struct {
	Fake *FakeServingV1alpha1
	// contains filtered or unexported fields
}

FakeServingRuntimes implements ServingRuntimeInterface

func (*FakeServingRuntimes) Create

func (c *FakeServingRuntimes) Create(ctx context.Context, servingRuntime *v1alpha1.ServingRuntime, opts v1.CreateOptions) (result *v1alpha1.ServingRuntime, err error)

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

func (*FakeServingRuntimes) Delete

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

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

func (*FakeServingRuntimes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServingRuntimes) Get

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

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

func (*FakeServingRuntimes) List

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

func (*FakeServingRuntimes) Patch

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

Patch applies the patch and returns the patched servingRuntime.

func (*FakeServingRuntimes) Update

func (c *FakeServingRuntimes) Update(ctx context.Context, servingRuntime *v1alpha1.ServingRuntime, opts v1.UpdateOptions) (result *v1alpha1.ServingRuntime, err error)

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

func (*FakeServingRuntimes) UpdateStatus

func (c *FakeServingRuntimes) UpdateStatus(ctx context.Context, servingRuntime *v1alpha1.ServingRuntime, opts v1.UpdateOptions) (*v1alpha1.ServingRuntime, error)

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

func (*FakeServingRuntimes) Watch

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

type FakeServingV1alpha1

type FakeServingV1alpha1 struct {
	*testing.Fake
}

func (*FakeServingV1alpha1) ClusterServingRuntimes

func (c *FakeServingV1alpha1) ClusterServingRuntimes(namespace string) v1alpha1.ClusterServingRuntimeInterface

func (*FakeServingV1alpha1) ClusterStorageContainers added in v0.12.0

func (c *FakeServingV1alpha1) ClusterStorageContainers(namespace string) v1alpha1.ClusterStorageContainerInterface

func (*FakeServingV1alpha1) InferenceGraphs

func (c *FakeServingV1alpha1) InferenceGraphs(namespace string) v1alpha1.InferenceGraphInterface

func (*FakeServingV1alpha1) RESTClient

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

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

func (*FakeServingV1alpha1) ServingRuntimes

func (c *FakeServingV1alpha1) ServingRuntimes(namespace string) v1alpha1.ServingRuntimeInterface

func (*FakeServingV1alpha1) TrainedModels

func (c *FakeServingV1alpha1) TrainedModels(namespace string) v1alpha1.TrainedModelInterface

type FakeTrainedModels

type FakeTrainedModels struct {
	Fake *FakeServingV1alpha1
	// contains filtered or unexported fields
}

FakeTrainedModels implements TrainedModelInterface

func (*FakeTrainedModels) Create

func (c *FakeTrainedModels) Create(ctx context.Context, trainedModel *v1alpha1.TrainedModel, opts v1.CreateOptions) (result *v1alpha1.TrainedModel, err error)

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

func (*FakeTrainedModels) Delete

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

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

func (*FakeTrainedModels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTrainedModels) Get

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

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

func (*FakeTrainedModels) List

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

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

func (*FakeTrainedModels) Patch

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

Patch applies the patch and returns the patched trainedModel.

func (*FakeTrainedModels) Update

func (c *FakeTrainedModels) Update(ctx context.Context, trainedModel *v1alpha1.TrainedModel, opts v1.UpdateOptions) (result *v1alpha1.TrainedModel, err error)

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

func (*FakeTrainedModels) UpdateStatus

func (c *FakeTrainedModels) UpdateStatus(ctx context.Context, trainedModel *v1alpha1.TrainedModel, opts v1.UpdateOptions) (*v1alpha1.TrainedModel, error)

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

func (*FakeTrainedModels) Watch

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

Jump to

Keyboard shortcuts

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