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 FakeApisixClusterConfigs added in v1.0.0

type FakeApisixClusterConfigs struct {
	Fake *FakeApisixV2alpha1
}

FakeApisixClusterConfigs implements ApisixClusterConfigInterface

func (*FakeApisixClusterConfigs) Create added in v1.0.0

func (c *FakeApisixClusterConfigs) Create(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, opts v1.CreateOptions) (result *v2alpha1.ApisixClusterConfig, err error)

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

func (*FakeApisixClusterConfigs) Delete added in v1.0.0

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

func (*FakeApisixClusterConfigs) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeApisixClusterConfigs) Get added in v1.0.0

func (c *FakeApisixClusterConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixClusterConfig, err error)

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

func (*FakeApisixClusterConfigs) List added in v1.0.0

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

func (*FakeApisixClusterConfigs) Patch added in v1.0.0

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

Patch applies the patch and returns the patched apisixClusterConfig.

func (*FakeApisixClusterConfigs) Update added in v1.0.0

func (c *FakeApisixClusterConfigs) Update(ctx context.Context, apisixClusterConfig *v2alpha1.ApisixClusterConfig, opts v1.UpdateOptions) (result *v2alpha1.ApisixClusterConfig, err error)

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

func (*FakeApisixClusterConfigs) UpdateStatus added in v1.0.0

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

func (*FakeApisixClusterConfigs) Watch added in v1.0.0

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

type FakeApisixConsumers added in v1.0.0

type FakeApisixConsumers struct {
	Fake *FakeApisixV2alpha1
	// contains filtered or unexported fields
}

FakeApisixConsumers implements ApisixConsumerInterface

func (*FakeApisixConsumers) Create added in v1.0.0

func (c *FakeApisixConsumers) Create(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, opts v1.CreateOptions) (result *v2alpha1.ApisixConsumer, err error)

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

func (*FakeApisixConsumers) Delete added in v1.0.0

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

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

func (*FakeApisixConsumers) DeleteCollection added in v1.0.0

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

DeleteCollection deletes a collection of objects.

func (*FakeApisixConsumers) Get added in v1.0.0

func (c *FakeApisixConsumers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.ApisixConsumer, err error)

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

func (*FakeApisixConsumers) List added in v1.0.0

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

func (*FakeApisixConsumers) Patch added in v1.0.0

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

Patch applies the patch and returns the patched apisixConsumer.

func (*FakeApisixConsumers) Update added in v1.0.0

func (c *FakeApisixConsumers) Update(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, opts v1.UpdateOptions) (result *v2alpha1.ApisixConsumer, err error)

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

func (*FakeApisixConsumers) UpdateStatus added in v1.0.0

func (c *FakeApisixConsumers) UpdateStatus(ctx context.Context, apisixConsumer *v2alpha1.ApisixConsumer, opts v1.UpdateOptions) (*v2alpha1.ApisixConsumer, error)

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

func (*FakeApisixConsumers) Watch added in v1.0.0

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

type FakeApisixRoutes

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

FakeApisixRoutes implements ApisixRouteInterface

func (*FakeApisixRoutes) Create

func (c *FakeApisixRoutes) Create(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.CreateOptions) (result *v2alpha1.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 *v2alpha1.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 *v2alpha1.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 *v2alpha1.ApisixRoute, err error)

Patch applies the patch and returns the patched apisixRoute.

func (*FakeApisixRoutes) Update

func (c *FakeApisixRoutes) Update(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.UpdateOptions) (result *v2alpha1.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 added in v1.0.0

func (c *FakeApisixRoutes) UpdateStatus(ctx context.Context, apisixRoute *v2alpha1.ApisixRoute, opts v1.UpdateOptions) (*v2alpha1.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 FakeApisixV2alpha1

type FakeApisixV2alpha1 struct {
	*testing.Fake
}

func (*FakeApisixV2alpha1) ApisixClusterConfigs added in v1.0.0

func (c *FakeApisixV2alpha1) ApisixClusterConfigs() v2alpha1.ApisixClusterConfigInterface

func (*FakeApisixV2alpha1) ApisixConsumers added in v1.0.0

func (c *FakeApisixV2alpha1) ApisixConsumers(namespace string) v2alpha1.ApisixConsumerInterface

func (*FakeApisixV2alpha1) ApisixRoutes

func (c *FakeApisixV2alpha1) ApisixRoutes(namespace string) v2alpha1.ApisixRouteInterface

func (*FakeApisixV2alpha1) RESTClient

func (c *FakeApisixV2alpha1) 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