fake

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeContivppV1

type FakeContivppV1 struct {
	*testing.Fake
}

func (*FakeContivppV1) CustomConfigurations

func (c *FakeContivppV1) CustomConfigurations(namespace string) v1.CustomConfigurationInterface

func (*FakeContivppV1) CustomNetworks

func (c *FakeContivppV1) CustomNetworks(namespace string) v1.CustomNetworkInterface

func (*FakeContivppV1) ExternalInterfaces

func (c *FakeContivppV1) ExternalInterfaces(namespace string) v1.ExternalInterfaceInterface

func (*FakeContivppV1) RESTClient

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

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

func (*FakeContivppV1) ServiceFunctionChains

func (c *FakeContivppV1) ServiceFunctionChains(namespace string) v1.ServiceFunctionChainInterface

type FakeCustomConfigurations

type FakeCustomConfigurations struct {
	Fake *FakeContivppV1
	// contains filtered or unexported fields
}

FakeCustomConfigurations implements CustomConfigurationInterface

func (*FakeCustomConfigurations) Create

func (c *FakeCustomConfigurations) Create(customConfiguration *contivppiov1.CustomConfiguration) (result *contivppiov1.CustomConfiguration, err error)

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

func (*FakeCustomConfigurations) Delete

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

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

func (*FakeCustomConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomConfigurations) Get

func (c *FakeCustomConfigurations) Get(name string, options v1.GetOptions) (result *contivppiov1.CustomConfiguration, err error)

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

func (*FakeCustomConfigurations) List

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

func (*FakeCustomConfigurations) Patch

func (c *FakeCustomConfigurations) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *contivppiov1.CustomConfiguration, err error)

Patch applies the patch and returns the patched customConfiguration.

func (*FakeCustomConfigurations) Update

func (c *FakeCustomConfigurations) Update(customConfiguration *contivppiov1.CustomConfiguration) (result *contivppiov1.CustomConfiguration, err error)

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

func (*FakeCustomConfigurations) Watch

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

type FakeCustomNetworks

type FakeCustomNetworks struct {
	Fake *FakeContivppV1
	// contains filtered or unexported fields
}

FakeCustomNetworks implements CustomNetworkInterface

func (*FakeCustomNetworks) Create

func (c *FakeCustomNetworks) Create(customNetwork *contivppiov1.CustomNetwork) (result *contivppiov1.CustomNetwork, err error)

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

func (*FakeCustomNetworks) Delete

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

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

func (*FakeCustomNetworks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustomNetworks) Get

func (c *FakeCustomNetworks) Get(name string, options v1.GetOptions) (result *contivppiov1.CustomNetwork, err error)

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

func (*FakeCustomNetworks) List

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

func (*FakeCustomNetworks) Patch

func (c *FakeCustomNetworks) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *contivppiov1.CustomNetwork, err error)

Patch applies the patch and returns the patched customNetwork.

func (*FakeCustomNetworks) Update

func (c *FakeCustomNetworks) Update(customNetwork *contivppiov1.CustomNetwork) (result *contivppiov1.CustomNetwork, err error)

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

func (*FakeCustomNetworks) Watch

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

type FakeExternalInterfaces

type FakeExternalInterfaces struct {
	Fake *FakeContivppV1
	// contains filtered or unexported fields
}

FakeExternalInterfaces implements ExternalInterfaceInterface

func (*FakeExternalInterfaces) Create

func (c *FakeExternalInterfaces) Create(externalInterface *contivppiov1.ExternalInterface) (result *contivppiov1.ExternalInterface, err error)

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

func (*FakeExternalInterfaces) Delete

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

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

func (*FakeExternalInterfaces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExternalInterfaces) Get

func (c *FakeExternalInterfaces) Get(name string, options v1.GetOptions) (result *contivppiov1.ExternalInterface, err error)

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

func (*FakeExternalInterfaces) List

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

func (*FakeExternalInterfaces) Patch

func (c *FakeExternalInterfaces) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *contivppiov1.ExternalInterface, err error)

Patch applies the patch and returns the patched externalInterface.

func (*FakeExternalInterfaces) Update

func (c *FakeExternalInterfaces) Update(externalInterface *contivppiov1.ExternalInterface) (result *contivppiov1.ExternalInterface, err error)

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

func (*FakeExternalInterfaces) Watch

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

type FakeServiceFunctionChains

type FakeServiceFunctionChains struct {
	Fake *FakeContivppV1
	// contains filtered or unexported fields
}

FakeServiceFunctionChains implements ServiceFunctionChainInterface

func (*FakeServiceFunctionChains) Create

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

func (*FakeServiceFunctionChains) Delete

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

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

func (*FakeServiceFunctionChains) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceFunctionChains) Get

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

func (*FakeServiceFunctionChains) List

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

func (*FakeServiceFunctionChains) Patch

func (c *FakeServiceFunctionChains) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *contivppiov1.ServiceFunctionChain, err error)

Patch applies the patch and returns the patched serviceFunctionChain.

func (*FakeServiceFunctionChains) Update

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

func (*FakeServiceFunctionChains) Watch

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

Jump to

Keyboard shortcuts

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