fake

package
v0.0.0-...-8a5afcf Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT 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 FakeFlipperV1alpha1

type FakeFlipperV1alpha1 struct {
	*testing.Fake
}

func (*FakeFlipperV1alpha1) Flippers

func (c *FakeFlipperV1alpha1) Flippers(namespace string) v1alpha1.FlipperInterface

func (*FakeFlipperV1alpha1) RESTClient

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

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

type FakeFlippers

type FakeFlippers struct {
	Fake *FakeFlipperV1alpha1
	// contains filtered or unexported fields
}

FakeFlippers implements FlipperInterface

func (*FakeFlippers) Create

func (c *FakeFlippers) Create(ctx context.Context, flipper *v1alpha1.Flipper, opts v1.CreateOptions) (result *v1alpha1.Flipper, err error)

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

func (*FakeFlippers) Delete

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

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

func (*FakeFlippers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFlippers) Get

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

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

func (*FakeFlippers) List

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

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

func (*FakeFlippers) Patch

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

Patch applies the patch and returns the patched flipper.

func (*FakeFlippers) Update

func (c *FakeFlippers) Update(ctx context.Context, flipper *v1alpha1.Flipper, opts v1.UpdateOptions) (result *v1alpha1.Flipper, err error)

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

func (*FakeFlippers) UpdateStatus

func (c *FakeFlippers) UpdateStatus(ctx context.Context, flipper *v1alpha1.Flipper, opts v1.UpdateOptions) (*v1alpha1.Flipper, error)

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

func (*FakeFlippers) Watch

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

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

Jump to

Keyboard shortcuts

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