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 FakeTrialV1beta1

type FakeTrialV1beta1 struct {
	*testing.Fake
}

func (*FakeTrialV1beta1) RESTClient

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

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

func (*FakeTrialV1beta1) Trials

func (c *FakeTrialV1beta1) Trials(namespace string) v1beta1.TrialInterface

type FakeTrials

type FakeTrials struct {
	Fake *FakeTrialV1beta1
	// contains filtered or unexported fields
}

FakeTrials implements TrialInterface

func (*FakeTrials) Apply added in v0.16.0

func (c *FakeTrials) Apply(ctx context.Context, trial *trialsv1beta1.TrialApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Trial, err error)

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

func (*FakeTrials) ApplyStatus added in v0.16.0

func (c *FakeTrials) ApplyStatus(ctx context.Context, trial *trialsv1beta1.TrialApplyConfiguration, opts v1.ApplyOptions) (result *v1beta1.Trial, err error)

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

func (*FakeTrials) Create

func (c *FakeTrials) Create(ctx context.Context, trial *v1beta1.Trial, opts v1.CreateOptions) (result *v1beta1.Trial, err error)

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

func (*FakeTrials) Delete

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

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

func (*FakeTrials) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTrials) Get

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

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

func (*FakeTrials) List

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

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

func (*FakeTrials) Patch

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

Patch applies the patch and returns the patched trial.

func (*FakeTrials) Update

func (c *FakeTrials) Update(ctx context.Context, trial *v1beta1.Trial, opts v1.UpdateOptions) (result *v1beta1.Trial, err error)

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

func (*FakeTrials) UpdateStatus

func (c *FakeTrials) UpdateStatus(ctx context.Context, trial *v1beta1.Trial, opts v1.UpdateOptions) (*v1beta1.Trial, error)

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

func (*FakeTrials) Watch

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

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

Jump to

Keyboard shortcuts

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