fake

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

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 FakeClusterNodePredictions

type FakeClusterNodePredictions struct {
	Fake *FakePredictionV1alpha1
	// contains filtered or unexported fields
}

FakeClusterNodePredictions implements ClusterNodePredictionInterface

func (*FakeClusterNodePredictions) Create

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

func (*FakeClusterNodePredictions) Delete

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

func (*FakeClusterNodePredictions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterNodePredictions) Get

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

func (*FakeClusterNodePredictions) List

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

func (*FakeClusterNodePredictions) Patch

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

Patch applies the patch and returns the patched clusterNodePrediction.

func (*FakeClusterNodePredictions) Update

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

func (*FakeClusterNodePredictions) UpdateStatus

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

func (*FakeClusterNodePredictions) Watch

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

type FakePredictionV1alpha1

type FakePredictionV1alpha1 struct {
	*testing.Fake
}

func (*FakePredictionV1alpha1) ClusterNodePredictions

func (c *FakePredictionV1alpha1) ClusterNodePredictions(namespace string) v1alpha1.ClusterNodePredictionInterface

func (*FakePredictionV1alpha1) RESTClient

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

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

func (*FakePredictionV1alpha1) TimeSeriesPredictions

func (c *FakePredictionV1alpha1) TimeSeriesPredictions(namespace string) v1alpha1.TimeSeriesPredictionInterface

type FakeTimeSeriesPredictions

type FakeTimeSeriesPredictions struct {
	Fake *FakePredictionV1alpha1
	// contains filtered or unexported fields
}

FakeTimeSeriesPredictions implements TimeSeriesPredictionInterface

func (*FakeTimeSeriesPredictions) Create

func (c *FakeTimeSeriesPredictions) Create(ctx context.Context, timeSeriesPrediction *v1alpha1.TimeSeriesPrediction, opts v1.CreateOptions) (result *v1alpha1.TimeSeriesPrediction, err error)

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

func (*FakeTimeSeriesPredictions) Delete

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

func (*FakeTimeSeriesPredictions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTimeSeriesPredictions) Get

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

func (*FakeTimeSeriesPredictions) List

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

func (*FakeTimeSeriesPredictions) Patch

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

Patch applies the patch and returns the patched timeSeriesPrediction.

func (*FakeTimeSeriesPredictions) Update

func (c *FakeTimeSeriesPredictions) Update(ctx context.Context, timeSeriesPrediction *v1alpha1.TimeSeriesPrediction, opts v1.UpdateOptions) (result *v1alpha1.TimeSeriesPrediction, err error)

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

func (*FakeTimeSeriesPredictions) UpdateStatus

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

func (*FakeTimeSeriesPredictions) Watch

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

Jump to

Keyboard shortcuts

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