fake

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 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 FakeDestinationRules

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

FakeDestinationRules implements DestinationRuleInterface

func (*FakeDestinationRules) Create

func (c *FakeDestinationRules) Create(destinationRule *v1alpha3.DestinationRule) (result *v1alpha3.DestinationRule, err error)

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

func (*FakeDestinationRules) Delete

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

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

func (*FakeDestinationRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDestinationRules) Get

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

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

func (*FakeDestinationRules) List

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

func (*FakeDestinationRules) Patch

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

Patch applies the patch and returns the patched destinationRule.

func (*FakeDestinationRules) Update

func (c *FakeDestinationRules) Update(destinationRule *v1alpha3.DestinationRule) (result *v1alpha3.DestinationRule, err error)

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

func (*FakeDestinationRules) Watch

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

type FakeEnvoyFilters

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

FakeEnvoyFilters implements EnvoyFilterInterface

func (*FakeEnvoyFilters) Create

func (c *FakeEnvoyFilters) Create(envoyFilter *v1alpha3.EnvoyFilter) (result *v1alpha3.EnvoyFilter, err error)

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

func (*FakeEnvoyFilters) Delete

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

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

func (*FakeEnvoyFilters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEnvoyFilters) Get

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

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

func (*FakeEnvoyFilters) List

func (c *FakeEnvoyFilters) List(opts v1.ListOptions) (result *v1alpha3.EnvoyFilterList, err error)

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

func (*FakeEnvoyFilters) Patch

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

Patch applies the patch and returns the patched envoyFilter.

func (*FakeEnvoyFilters) Update

func (c *FakeEnvoyFilters) Update(envoyFilter *v1alpha3.EnvoyFilter) (result *v1alpha3.EnvoyFilter, err error)

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

func (*FakeEnvoyFilters) Watch

func (c *FakeEnvoyFilters) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeGateways

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

FakeGateways implements GatewayInterface

func (*FakeGateways) Create

func (c *FakeGateways) Create(gateway *v1alpha3.Gateway) (result *v1alpha3.Gateway, err error)

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

func (*FakeGateways) Delete

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

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

func (*FakeGateways) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get

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

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

func (*FakeGateways) List

func (c *FakeGateways) List(opts v1.ListOptions) (result *v1alpha3.GatewayList, err error)

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

func (*FakeGateways) Patch

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

func (c *FakeGateways) Update(gateway *v1alpha3.Gateway) (result *v1alpha3.Gateway, err error)

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

func (*FakeGateways) Watch

func (c *FakeGateways) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeNetworkingV1alpha3

type FakeNetworkingV1alpha3 struct {
	*testing.Fake
}

func (*FakeNetworkingV1alpha3) DestinationRules

func (c *FakeNetworkingV1alpha3) DestinationRules(namespace string) v1alpha3.DestinationRuleInterface

func (*FakeNetworkingV1alpha3) EnvoyFilters

func (c *FakeNetworkingV1alpha3) EnvoyFilters(namespace string) v1alpha3.EnvoyFilterInterface

func (*FakeNetworkingV1alpha3) Gateways

func (c *FakeNetworkingV1alpha3) Gateways(namespace string) v1alpha3.GatewayInterface

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

func (c *FakeNetworkingV1alpha3) ServiceEntries(namespace string) v1alpha3.ServiceEntryInterface

func (*FakeNetworkingV1alpha3) Sidecars

func (c *FakeNetworkingV1alpha3) Sidecars(namespace string) v1alpha3.SidecarInterface

func (*FakeNetworkingV1alpha3) VirtualServices

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

type FakeServiceEntries

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

FakeServiceEntries implements ServiceEntryInterface

func (*FakeServiceEntries) Create

func (c *FakeServiceEntries) Create(serviceEntry *v1alpha3.ServiceEntry) (result *v1alpha3.ServiceEntry, err error)

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

func (*FakeServiceEntries) Delete

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

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

func (*FakeServiceEntries) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceEntries) Get

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

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

func (*FakeServiceEntries) List

func (c *FakeServiceEntries) List(opts v1.ListOptions) (result *v1alpha3.ServiceEntryList, err error)

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

func (*FakeServiceEntries) Patch

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

Patch applies the patch and returns the patched serviceEntry.

func (*FakeServiceEntries) Update

func (c *FakeServiceEntries) Update(serviceEntry *v1alpha3.ServiceEntry) (result *v1alpha3.ServiceEntry, err error)

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

func (*FakeServiceEntries) Watch

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

type FakeSidecars

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

FakeSidecars implements SidecarInterface

func (*FakeSidecars) Create

func (c *FakeSidecars) Create(sidecar *v1alpha3.Sidecar) (result *v1alpha3.Sidecar, err error)

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

func (*FakeSidecars) Delete

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

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

func (*FakeSidecars) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSidecars) Get

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

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

func (*FakeSidecars) List

func (c *FakeSidecars) List(opts v1.ListOptions) (result *v1alpha3.SidecarList, err error)

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

func (*FakeSidecars) Patch

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

Patch applies the patch and returns the patched sidecar.

func (*FakeSidecars) Update

func (c *FakeSidecars) Update(sidecar *v1alpha3.Sidecar) (result *v1alpha3.Sidecar, err error)

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

func (*FakeSidecars) Watch

func (c *FakeSidecars) Watch(opts v1.ListOptions) (watch.Interface, error)

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

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