fake

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 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 FakeConfigurationV1

type FakeConfigurationV1 struct {
	*testing.Fake
}

func (*FakeConfigurationV1) KongConsumers

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

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 FakeKongConsumers

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

FakeKongConsumers implements KongConsumerInterface

func (*FakeKongConsumers) Create

func (c *FakeKongConsumers) Create(kongConsumer *consumer_v1.KongConsumer) (result *consumer_v1.KongConsumer, err error)

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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKongConsumers) Get

func (c *FakeKongConsumers) Get(name string, options v1.GetOptions) (result *consumer_v1.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

func (c *FakeKongConsumers) List(opts v1.ListOptions) (result *consumer_v1.KongConsumerList, err error)

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

func (*FakeKongConsumers) Patch

func (c *FakeKongConsumers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *consumer_v1.KongConsumer, err error)

Patch applies the patch and returns the patched kongConsumer.

func (*FakeKongConsumers) Update

func (c *FakeKongConsumers) Update(kongConsumer *consumer_v1.KongConsumer) (result *consumer_v1.KongConsumer, err error)

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.

Jump to

Keyboard shortcuts

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