fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 10 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 *FakeRouteV1alpha1
	// 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 FakeRouteV1alpha1

type FakeRouteV1alpha1 struct {
	*testing.Fake
}

func (*FakeRouteV1alpha1) Filters

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

func (*FakeRouteV1alpha1) RESTClient

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

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

func (*FakeRouteV1alpha1) Routes

func (c *FakeRouteV1alpha1) Routes(namespace string) v1alpha1.RouteInterface

func (*FakeRouteV1alpha1) Tables

func (c *FakeRouteV1alpha1) Tables(namespace string) v1alpha1.TableInterface

type FakeRoutes

type FakeRoutes struct {
	Fake *FakeRouteV1alpha1
	// contains filtered or unexported fields
}

FakeRoutes implements RouteInterface

func (*FakeRoutes) Create

func (c *FakeRoutes) Create(ctx context.Context, route *v1alpha1.Route, opts v1.CreateOptions) (result *v1alpha1.Route, err error)

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

func (*FakeRoutes) Delete

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

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

func (*FakeRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRoutes) Get

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

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

func (*FakeRoutes) List

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

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

func (*FakeRoutes) Patch

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

Patch applies the patch and returns the patched route.

func (*FakeRoutes) Update

func (c *FakeRoutes) Update(ctx context.Context, route *v1alpha1.Route, opts v1.UpdateOptions) (result *v1alpha1.Route, err error)

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

func (*FakeRoutes) UpdateStatus

func (c *FakeRoutes) UpdateStatus(ctx context.Context, route *v1alpha1.Route, opts v1.UpdateOptions) (*v1alpha1.Route, error)

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

func (*FakeRoutes) Watch

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

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

type FakeTables

type FakeTables struct {
	Fake *FakeRouteV1alpha1
	// contains filtered or unexported fields
}

FakeTables implements TableInterface

func (*FakeTables) Create

func (c *FakeTables) Create(ctx context.Context, table *v1alpha1.Table, opts v1.CreateOptions) (result *v1alpha1.Table, err error)

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

func (*FakeTables) Delete

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

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

func (*FakeTables) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTables) Get

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

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

func (*FakeTables) List

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

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

func (*FakeTables) Patch

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

Patch applies the patch and returns the patched table.

func (*FakeTables) Update

func (c *FakeTables) Update(ctx context.Context, table *v1alpha1.Table, opts v1.UpdateOptions) (result *v1alpha1.Table, err error)

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

func (*FakeTables) UpdateStatus

func (c *FakeTables) UpdateStatus(ctx context.Context, table *v1alpha1.Table, opts v1.UpdateOptions) (*v1alpha1.Table, error)

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

func (*FakeTables) Watch

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

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

Jump to

Keyboard shortcuts

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