fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 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 FakeApisixRoutes

type FakeApisixRoutes struct {
	Fake *FakeApisixV2beta1
	// contains filtered or unexported fields
}

FakeApisixRoutes implements ApisixRouteInterface

func (*FakeApisixRoutes) Create

func (c *FakeApisixRoutes) Create(ctx context.Context, apisixRoute *v2beta1.ApisixRoute, opts v1.CreateOptions) (result *v2beta1.ApisixRoute, err error)

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

func (*FakeApisixRoutes) Delete

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

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

func (*FakeApisixRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApisixRoutes) Get

func (c *FakeApisixRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.ApisixRoute, err error)

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

func (*FakeApisixRoutes) List

func (c *FakeApisixRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ApisixRouteList, err error)

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

func (*FakeApisixRoutes) Patch

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

Patch applies the patch and returns the patched apisixRoute.

func (*FakeApisixRoutes) Update

func (c *FakeApisixRoutes) Update(ctx context.Context, apisixRoute *v2beta1.ApisixRoute, opts v1.UpdateOptions) (result *v2beta1.ApisixRoute, err error)

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

func (*FakeApisixRoutes) UpdateStatus

func (c *FakeApisixRoutes) UpdateStatus(ctx context.Context, apisixRoute *v2beta1.ApisixRoute, opts v1.UpdateOptions) (*v2beta1.ApisixRoute, error)

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

func (*FakeApisixRoutes) Watch

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

type FakeApisixV2beta1

type FakeApisixV2beta1 struct {
	*testing.Fake
}

func (*FakeApisixV2beta1) ApisixRoutes

func (c *FakeApisixV2beta1) ApisixRoutes(namespace string) v2beta1.ApisixRouteInterface

func (*FakeApisixV2beta1) RESTClient

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

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

Jump to

Keyboard shortcuts

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