fake

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 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 FakeFilters

type FakeFilters struct {
	Fake *FakeRoutingV1alpha1
	// contains filtered or unexported fields
}

FakeFilters implements FilterInterface

func (*FakeFilters) Create

func (c *FakeFilters) Create(ctx context.Context, filter *v1alpha1.Filter, opts v1.CreateOptions) (result *v1alpha1.Filter, err error)

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

func (*FakeFilters) Delete

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

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

func (*FakeFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFilters) Get

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

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

func (*FakeFilters) List

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

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

func (*FakeFilters) Patch

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

Patch applies the patch and returns the patched filter.

func (*FakeFilters) Update

func (c *FakeFilters) Update(ctx context.Context, filter *v1alpha1.Filter, opts v1.UpdateOptions) (result *v1alpha1.Filter, err error)

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

func (*FakeFilters) UpdateStatus

func (c *FakeFilters) UpdateStatus(ctx context.Context, filter *v1alpha1.Filter, opts v1.UpdateOptions) (*v1alpha1.Filter, error)

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

func (*FakeFilters) Watch

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

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

type FakeRoutingV1alpha1

type FakeRoutingV1alpha1 struct {
	*testing.Fake
}

func (*FakeRoutingV1alpha1) Filters

func (c *FakeRoutingV1alpha1) Filters(namespace string) v1alpha1.FilterInterface

func (*FakeRoutingV1alpha1) RESTClient

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

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

func (*FakeRoutingV1alpha1) Splitters

func (c *FakeRoutingV1alpha1) Splitters(namespace string) v1alpha1.SplitterInterface

type FakeSplitters

type FakeSplitters struct {
	Fake *FakeRoutingV1alpha1
	// contains filtered or unexported fields
}

FakeSplitters implements SplitterInterface

func (*FakeSplitters) Create

func (c *FakeSplitters) Create(ctx context.Context, splitter *v1alpha1.Splitter, opts v1.CreateOptions) (result *v1alpha1.Splitter, err error)

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

func (*FakeSplitters) Delete

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

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

func (*FakeSplitters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSplitters) Get

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

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

func (*FakeSplitters) List

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

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

func (*FakeSplitters) Patch

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

Patch applies the patch and returns the patched splitter.

func (*FakeSplitters) Update

func (c *FakeSplitters) Update(ctx context.Context, splitter *v1alpha1.Splitter, opts v1.UpdateOptions) (result *v1alpha1.Splitter, err error)

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

func (*FakeSplitters) UpdateStatus

func (c *FakeSplitters) UpdateStatus(ctx context.Context, splitter *v1alpha1.Splitter, opts v1.UpdateOptions) (*v1alpha1.Splitter, error)

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

func (*FakeSplitters) Watch

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

Jump to

Keyboard shortcuts

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