fake

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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 FakeApisV1

type FakeApisV1 struct {
	*testing.Fake
}

func (*FakeApisV1) Consumers

func (c *FakeApisV1) Consumers(namespace string) v1.ConsumerInterface

func (*FakeApisV1) HTTPFilterPolicies

func (c *FakeApisV1) HTTPFilterPolicies(namespace string) v1.HTTPFilterPolicyInterface

func (*FakeApisV1) RESTClient

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

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

func (*FakeApisV1) ServiceRegistries

func (c *FakeApisV1) ServiceRegistries(namespace string) v1.ServiceRegistryInterface

type FakeConsumers

type FakeConsumers struct {
	Fake *FakeApisV1
	// contains filtered or unexported fields
}

FakeConsumers implements ConsumerInterface

func (*FakeConsumers) Create

func (c *FakeConsumers) Create(ctx context.Context, consumer *v1.Consumer, opts metav1.CreateOptions) (result *v1.Consumer, err error)

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

func (*FakeConsumers) Delete

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

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

func (*FakeConsumers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConsumers) Get

func (c *FakeConsumers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Consumer, err error)

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

func (*FakeConsumers) List

func (c *FakeConsumers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ConsumerList, err error)

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

func (*FakeConsumers) Patch

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

Patch applies the patch and returns the patched consumer.

func (*FakeConsumers) Update

func (c *FakeConsumers) Update(ctx context.Context, consumer *v1.Consumer, opts metav1.UpdateOptions) (result *v1.Consumer, err error)

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

func (*FakeConsumers) UpdateStatus

func (c *FakeConsumers) UpdateStatus(ctx context.Context, consumer *v1.Consumer, opts metav1.UpdateOptions) (*v1.Consumer, error)

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

func (*FakeConsumers) Watch

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

type FakeHTTPFilterPolicies

type FakeHTTPFilterPolicies struct {
	Fake *FakeApisV1
	// contains filtered or unexported fields
}

FakeHTTPFilterPolicies implements HTTPFilterPolicyInterface

func (*FakeHTTPFilterPolicies) Create

func (c *FakeHTTPFilterPolicies) Create(ctx context.Context, hTTPFilterPolicy *v1.HTTPFilterPolicy, opts metav1.CreateOptions) (result *v1.HTTPFilterPolicy, err error)

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

func (*FakeHTTPFilterPolicies) Delete

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

func (*FakeHTTPFilterPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHTTPFilterPolicies) Get

func (c *FakeHTTPFilterPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HTTPFilterPolicy, err error)

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

func (*FakeHTTPFilterPolicies) List

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

func (*FakeHTTPFilterPolicies) Patch

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

Patch applies the patch and returns the patched hTTPFilterPolicy.

func (*FakeHTTPFilterPolicies) Update

func (c *FakeHTTPFilterPolicies) Update(ctx context.Context, hTTPFilterPolicy *v1.HTTPFilterPolicy, opts metav1.UpdateOptions) (result *v1.HTTPFilterPolicy, err error)

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

func (*FakeHTTPFilterPolicies) UpdateStatus

func (c *FakeHTTPFilterPolicies) UpdateStatus(ctx context.Context, hTTPFilterPolicy *v1.HTTPFilterPolicy, opts metav1.UpdateOptions) (*v1.HTTPFilterPolicy, error)

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

func (*FakeHTTPFilterPolicies) Watch

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

type FakeServiceRegistries

type FakeServiceRegistries struct {
	Fake *FakeApisV1
	// contains filtered or unexported fields
}

FakeServiceRegistries implements ServiceRegistryInterface

func (*FakeServiceRegistries) Create

func (c *FakeServiceRegistries) Create(ctx context.Context, serviceRegistry *v1.ServiceRegistry, opts metav1.CreateOptions) (result *v1.ServiceRegistry, err error)

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

func (*FakeServiceRegistries) Delete

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

func (*FakeServiceRegistries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceRegistries) Get

func (c *FakeServiceRegistries) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ServiceRegistry, err error)

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

func (*FakeServiceRegistries) List

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

func (*FakeServiceRegistries) Patch

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

Patch applies the patch and returns the patched serviceRegistry.

func (*FakeServiceRegistries) Update

func (c *FakeServiceRegistries) Update(ctx context.Context, serviceRegistry *v1.ServiceRegistry, opts metav1.UpdateOptions) (result *v1.ServiceRegistry, err error)

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

func (*FakeServiceRegistries) UpdateStatus

func (c *FakeServiceRegistries) UpdateStatus(ctx context.Context, serviceRegistry *v1.ServiceRegistry, opts metav1.UpdateOptions) (*v1.ServiceRegistry, error)

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

func (*FakeServiceRegistries) Watch

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

Jump to

Keyboard shortcuts

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