fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 9 Imported by: 17

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 FakeNetworkingV1alpha3

type FakeNetworkingV1alpha3 struct {
	*testing.Fake
}

func (*FakeNetworkingV1alpha3) RESTClient

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

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

func (*FakeNetworkingV1alpha3) VirtualServices

func (c *FakeNetworkingV1alpha3) VirtualServices(namespace string) v1alpha3.VirtualServiceInterface

type FakeVirtualServices

type FakeVirtualServices struct {
	Fake *FakeNetworkingV1alpha3
	// contains filtered or unexported fields
}

FakeVirtualServices implements VirtualServiceInterface

func (*FakeVirtualServices) Create

func (c *FakeVirtualServices) Create(virtualService *v1alpha3.VirtualService) (result *v1alpha3.VirtualService, err error)

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

func (*FakeVirtualServices) Delete

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

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

func (*FakeVirtualServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServices) Get

func (c *FakeVirtualServices) Get(name string, options v1.GetOptions) (result *v1alpha3.VirtualService, err error)

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

func (*FakeVirtualServices) List

func (c *FakeVirtualServices) List(opts v1.ListOptions) (result *v1alpha3.VirtualServiceList, err error)

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

func (*FakeVirtualServices) Patch

func (c *FakeVirtualServices) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha3.VirtualService, err error)

Patch applies the patch and returns the patched virtualService.

func (*FakeVirtualServices) Update

func (c *FakeVirtualServices) Update(virtualService *v1alpha3.VirtualService) (result *v1alpha3.VirtualService, err error)

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

func (*FakeVirtualServices) Watch

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

Jump to

Keyboard shortcuts

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