fake

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 12 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 FakeExperimentV1beta1

type FakeExperimentV1beta1 struct {
	*testing.Fake
}

func (*FakeExperimentV1beta1) Experiments

func (c *FakeExperimentV1beta1) Experiments(namespace string) v1beta1.ExperimentInterface

func (*FakeExperimentV1beta1) RESTClient

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

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

type FakeExperiments

type FakeExperiments struct {
	Fake *FakeExperimentV1beta1
	// contains filtered or unexported fields
}

FakeExperiments implements ExperimentInterface

func (*FakeExperiments) Apply added in v0.16.0

Apply takes the given apply declarative configuration, applies it and returns the applied experiment.

func (*FakeExperiments) ApplyStatus added in v0.16.0

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

func (*FakeExperiments) Create

func (c *FakeExperiments) Create(ctx context.Context, experiment *v1beta1.Experiment, opts v1.CreateOptions) (result *v1beta1.Experiment, err error)

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

func (*FakeExperiments) Delete

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

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

func (*FakeExperiments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExperiments) Get

func (c *FakeExperiments) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Experiment, err error)

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

func (*FakeExperiments) List

func (c *FakeExperiments) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ExperimentList, err error)

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

func (*FakeExperiments) Patch

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

Patch applies the patch and returns the patched experiment.

func (*FakeExperiments) Update

func (c *FakeExperiments) Update(ctx context.Context, experiment *v1beta1.Experiment, opts v1.UpdateOptions) (result *v1beta1.Experiment, err error)

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

func (*FakeExperiments) UpdateStatus

func (c *FakeExperiments) UpdateStatus(ctx context.Context, experiment *v1beta1.Experiment, opts v1.UpdateOptions) (*v1beta1.Experiment, error)

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

func (*FakeExperiments) Watch

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

Jump to

Keyboard shortcuts

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