fake

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 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 FakeRemedies

type FakeRemedies struct {
	Fake *FakeRemedyV1alpha1
}

FakeRemedies implements RemedyInterface

func (*FakeRemedies) Create

func (c *FakeRemedies) Create(ctx context.Context, remedy *v1alpha1.Remedy, opts v1.CreateOptions) (result *v1alpha1.Remedy, err error)

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

func (*FakeRemedies) Delete

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

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

func (*FakeRemedies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRemedies) Get

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

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

func (*FakeRemedies) List

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

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

func (*FakeRemedies) Patch

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

Patch applies the patch and returns the patched remedy.

func (*FakeRemedies) Update

func (c *FakeRemedies) Update(ctx context.Context, remedy *v1alpha1.Remedy, opts v1.UpdateOptions) (result *v1alpha1.Remedy, err error)

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

func (*FakeRemedies) Watch

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

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

type FakeRemedyV1alpha1

type FakeRemedyV1alpha1 struct {
	*testing.Fake
}

func (*FakeRemedyV1alpha1) RESTClient

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

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

func (*FakeRemedyV1alpha1) Remedies

Jump to

Keyboard shortcuts

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