fake

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 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 FakeConfigurationV1

type FakeConfigurationV1 struct {
	*testing.Fake
}

func (*FakeConfigurationV1) KongClusterPlugins

func (c *FakeConfigurationV1) KongClusterPlugins(namespace string) v1.KongClusterPluginInterface

func (*FakeConfigurationV1) KongConsumers

func (c *FakeConfigurationV1) KongConsumers(namespace string) v1.KongConsumerInterface

func (*FakeConfigurationV1) KongIngresses

func (c *FakeConfigurationV1) KongIngresses(namespace string) v1.KongIngressInterface

func (*FakeConfigurationV1) KongPlugins

func (c *FakeConfigurationV1) KongPlugins(namespace string) v1.KongPluginInterface

func (*FakeConfigurationV1) RESTClient

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

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

type FakeKongClusterPlugins

type FakeKongClusterPlugins struct {
	Fake *FakeConfigurationV1
	// contains filtered or unexported fields
}

FakeKongClusterPlugins implements KongClusterPluginInterface

func (*FakeKongClusterPlugins) Create

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

func (*FakeKongClusterPlugins) Delete

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

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

func (*FakeKongClusterPlugins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKongClusterPlugins) Get

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

func (*FakeKongClusterPlugins) List

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

func (*FakeKongClusterPlugins) Patch

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

Patch applies the patch and returns the patched kongClusterPlugin.

func (*FakeKongClusterPlugins) Update

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

func (*FakeKongClusterPlugins) Watch

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

type FakeKongConsumers

type FakeKongConsumers struct {
	Fake *FakeConfigurationV1
	// contains filtered or unexported fields
}

FakeKongConsumers implements KongConsumerInterface

func (*FakeKongConsumers) Create

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

func (*FakeKongConsumers) Delete

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

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

func (*FakeKongConsumers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKongConsumers) Get

func (c *FakeKongConsumers) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.KongConsumer, err error)

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

func (*FakeKongConsumers) List

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

func (*FakeKongConsumers) Patch

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

Patch applies the patch and returns the patched kongConsumer.

func (*FakeKongConsumers) Update

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

func (*FakeKongConsumers) Watch

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

type FakeKongIngresses

type FakeKongIngresses struct {
	Fake *FakeConfigurationV1
	// contains filtered or unexported fields
}

FakeKongIngresses implements KongIngressInterface

func (*FakeKongIngresses) Create

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

func (*FakeKongIngresses) Delete

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

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

func (*FakeKongIngresses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKongIngresses) Get

func (c *FakeKongIngresses) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.KongIngress, err error)

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

func (*FakeKongIngresses) List

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

func (*FakeKongIngresses) Patch

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

Patch applies the patch and returns the patched kongIngress.

func (*FakeKongIngresses) Update

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

func (*FakeKongIngresses) Watch

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

type FakeKongPlugins

type FakeKongPlugins struct {
	Fake *FakeConfigurationV1
	// contains filtered or unexported fields
}

FakeKongPlugins implements KongPluginInterface

func (*FakeKongPlugins) Create

func (c *FakeKongPlugins) Create(ctx context.Context, kongPlugin *configurationv1.KongPlugin, opts v1.CreateOptions) (result *configurationv1.KongPlugin, err error)

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

func (*FakeKongPlugins) Delete

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

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

func (*FakeKongPlugins) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKongPlugins) Get

func (c *FakeKongPlugins) Get(ctx context.Context, name string, options v1.GetOptions) (result *configurationv1.KongPlugin, err error)

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

func (*FakeKongPlugins) List

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

func (*FakeKongPlugins) Patch

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

Patch applies the patch and returns the patched kongPlugin.

func (*FakeKongPlugins) Update

func (c *FakeKongPlugins) Update(ctx context.Context, kongPlugin *configurationv1.KongPlugin, opts v1.UpdateOptions) (result *configurationv1.KongPlugin, err error)

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

func (*FakeKongPlugins) Watch

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

Jump to

Keyboard shortcuts

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