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) KongCredentials

func (c *FakeConfigurationV1) KongCredentials(namespace string) v1.KongCredentialInterface

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 FakeKongCredentials

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

FakeKongCredentials implements KongCredentialInterface

func (*FakeKongCredentials) Create

func (c *FakeKongCredentials) Create(kongCredential *credential_v1.KongCredential) (result *credential_v1.KongCredential, err error)

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

func (*FakeKongCredentials) Delete

func (c *FakeKongCredentials) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeKongCredentials) DeleteCollection

func (c *FakeKongCredentials) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeKongCredentials) Get

func (c *FakeKongCredentials) Get(name string, options v1.GetOptions) (result *credential_v1.KongCredential, err error)

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

func (*FakeKongCredentials) List

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

func (*FakeKongCredentials) Patch

func (c *FakeKongCredentials) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *credential_v1.KongCredential, err error)

Patch applies the patch and returns the patched kongCredential.

func (*FakeKongCredentials) Update

func (c *FakeKongCredentials) Update(kongCredential *credential_v1.KongCredential) (result *credential_v1.KongCredential, err error)

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

func (*FakeKongCredentials) Watch

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

Jump to

Keyboard shortcuts

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