fake

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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 FakeConfigurationV1beta1

type FakeConfigurationV1beta1 struct {
	*testing.Fake
}

func (*FakeConfigurationV1beta1) KongConsumerGroups

func (c *FakeConfigurationV1beta1) KongConsumerGroups(namespace string) v1beta1.KongConsumerGroupInterface

func (*FakeConfigurationV1beta1) KongUpstreamPolicies

func (c *FakeConfigurationV1beta1) KongUpstreamPolicies(namespace string) v1beta1.KongUpstreamPolicyInterface

func (*FakeConfigurationV1beta1) RESTClient

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

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

func (*FakeConfigurationV1beta1) TCPIngresses

func (c *FakeConfigurationV1beta1) TCPIngresses(namespace string) v1beta1.TCPIngressInterface

func (*FakeConfigurationV1beta1) UDPIngresses

func (c *FakeConfigurationV1beta1) UDPIngresses(namespace string) v1beta1.UDPIngressInterface

type FakeKongConsumerGroups

type FakeKongConsumerGroups struct {
	Fake *FakeConfigurationV1beta1
	// contains filtered or unexported fields
}

FakeKongConsumerGroups implements KongConsumerGroupInterface

func (*FakeKongConsumerGroups) Create

func (c *FakeKongConsumerGroups) Create(ctx context.Context, kongConsumerGroup *v1beta1.KongConsumerGroup, opts v1.CreateOptions) (result *v1beta1.KongConsumerGroup, err error)

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

func (*FakeKongConsumerGroups) Delete

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

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

func (*FakeKongConsumerGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKongConsumerGroups) Get

func (c *FakeKongConsumerGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.KongConsumerGroup, err error)

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

func (*FakeKongConsumerGroups) List

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

func (*FakeKongConsumerGroups) Patch

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

Patch applies the patch and returns the patched kongConsumerGroup.

func (*FakeKongConsumerGroups) Update

func (c *FakeKongConsumerGroups) Update(ctx context.Context, kongConsumerGroup *v1beta1.KongConsumerGroup, opts v1.UpdateOptions) (result *v1beta1.KongConsumerGroup, err error)

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

func (*FakeKongConsumerGroups) UpdateStatus

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

func (*FakeKongConsumerGroups) Watch

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

type FakeKongUpstreamPolicies

type FakeKongUpstreamPolicies struct {
	Fake *FakeConfigurationV1beta1
	// contains filtered or unexported fields
}

FakeKongUpstreamPolicies implements KongUpstreamPolicyInterface

func (*FakeKongUpstreamPolicies) Create

func (c *FakeKongUpstreamPolicies) Create(ctx context.Context, kongUpstreamPolicy *v1beta1.KongUpstreamPolicy, opts v1.CreateOptions) (result *v1beta1.KongUpstreamPolicy, err error)

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

func (*FakeKongUpstreamPolicies) Delete

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

func (*FakeKongUpstreamPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKongUpstreamPolicies) Get

func (c *FakeKongUpstreamPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.KongUpstreamPolicy, err error)

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

func (*FakeKongUpstreamPolicies) List

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

func (*FakeKongUpstreamPolicies) Patch

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

Patch applies the patch and returns the patched kongUpstreamPolicy.

func (*FakeKongUpstreamPolicies) Update

func (c *FakeKongUpstreamPolicies) Update(ctx context.Context, kongUpstreamPolicy *v1beta1.KongUpstreamPolicy, opts v1.UpdateOptions) (result *v1beta1.KongUpstreamPolicy, err error)

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

func (*FakeKongUpstreamPolicies) UpdateStatus added in v3.1.0

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

func (*FakeKongUpstreamPolicies) Watch

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

type FakeTCPIngresses

type FakeTCPIngresses struct {
	Fake *FakeConfigurationV1beta1
	// contains filtered or unexported fields
}

FakeTCPIngresses implements TCPIngressInterface

func (*FakeTCPIngresses) Create

func (c *FakeTCPIngresses) Create(ctx context.Context, tCPIngress *v1beta1.TCPIngress, opts v1.CreateOptions) (result *v1beta1.TCPIngress, err error)

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

func (*FakeTCPIngresses) Delete

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

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

func (*FakeTCPIngresses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTCPIngresses) Get

func (c *FakeTCPIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.TCPIngress, err error)

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

func (*FakeTCPIngresses) List

func (c *FakeTCPIngresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.TCPIngressList, err error)

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

func (*FakeTCPIngresses) Patch

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

Patch applies the patch and returns the patched tCPIngress.

func (*FakeTCPIngresses) Update

func (c *FakeTCPIngresses) Update(ctx context.Context, tCPIngress *v1beta1.TCPIngress, opts v1.UpdateOptions) (result *v1beta1.TCPIngress, err error)

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

func (*FakeTCPIngresses) UpdateStatus

func (c *FakeTCPIngresses) UpdateStatus(ctx context.Context, tCPIngress *v1beta1.TCPIngress, opts v1.UpdateOptions) (*v1beta1.TCPIngress, error)

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

func (*FakeTCPIngresses) Watch

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

type FakeUDPIngresses

type FakeUDPIngresses struct {
	Fake *FakeConfigurationV1beta1
	// contains filtered or unexported fields
}

FakeUDPIngresses implements UDPIngressInterface

func (*FakeUDPIngresses) Create

func (c *FakeUDPIngresses) Create(ctx context.Context, uDPIngress *v1beta1.UDPIngress, opts v1.CreateOptions) (result *v1beta1.UDPIngress, err error)

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

func (*FakeUDPIngresses) Delete

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

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

func (*FakeUDPIngresses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUDPIngresses) Get

func (c *FakeUDPIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.UDPIngress, err error)

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

func (*FakeUDPIngresses) List

func (c *FakeUDPIngresses) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.UDPIngressList, err error)

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

func (*FakeUDPIngresses) Patch

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

Patch applies the patch and returns the patched uDPIngress.

func (*FakeUDPIngresses) Update

func (c *FakeUDPIngresses) Update(ctx context.Context, uDPIngress *v1beta1.UDPIngress, opts v1.UpdateOptions) (result *v1beta1.UDPIngress, err error)

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

func (*FakeUDPIngresses) UpdateStatus

func (c *FakeUDPIngresses) UpdateStatus(ctx context.Context, uDPIngress *v1beta1.UDPIngress, opts v1.UpdateOptions) (*v1beta1.UDPIngress, error)

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

func (*FakeUDPIngresses) Watch

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

Jump to

Keyboard shortcuts

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