fake

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 10 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 FakeConnectorV1alpha1

type FakeConnectorV1alpha1 struct {
	*testing.Fake
}

func (*FakeConnectorV1alpha1) ConsulConnectors

func (*FakeConnectorV1alpha1) EurekaConnectors

func (*FakeConnectorV1alpha1) GatewayConnectors

func (*FakeConnectorV1alpha1) MachineConnectors

func (*FakeConnectorV1alpha1) NacosConnectors

func (*FakeConnectorV1alpha1) RESTClient

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

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

type FakeConsulConnectors

type FakeConsulConnectors struct {
	Fake *FakeConnectorV1alpha1
}

FakeConsulConnectors implements ConsulConnectorInterface

func (*FakeConsulConnectors) Create

func (c *FakeConsulConnectors) Create(ctx context.Context, consulConnector *v1alpha1.ConsulConnector, opts v1.CreateOptions) (result *v1alpha1.ConsulConnector, err error)

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

func (*FakeConsulConnectors) Delete

func (c *FakeConsulConnectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeConsulConnectors) DeleteCollection

func (c *FakeConsulConnectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeConsulConnectors) Get

func (c *FakeConsulConnectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ConsulConnector, err error)

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

func (*FakeConsulConnectors) List

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

func (*FakeConsulConnectors) Patch

func (c *FakeConsulConnectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ConsulConnector, err error)

Patch applies the patch and returns the patched consulConnector.

func (*FakeConsulConnectors) Update

func (c *FakeConsulConnectors) Update(ctx context.Context, consulConnector *v1alpha1.ConsulConnector, opts v1.UpdateOptions) (result *v1alpha1.ConsulConnector, err error)

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

func (*FakeConsulConnectors) UpdateStatus

func (c *FakeConsulConnectors) UpdateStatus(ctx context.Context, consulConnector *v1alpha1.ConsulConnector, opts v1.UpdateOptions) (*v1alpha1.ConsulConnector, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeConsulConnectors) Watch

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

type FakeEurekaConnectors

type FakeEurekaConnectors struct {
	Fake *FakeConnectorV1alpha1
}

FakeEurekaConnectors implements EurekaConnectorInterface

func (*FakeEurekaConnectors) Create

func (c *FakeEurekaConnectors) Create(ctx context.Context, eurekaConnector *v1alpha1.EurekaConnector, opts v1.CreateOptions) (result *v1alpha1.EurekaConnector, err error)

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

func (*FakeEurekaConnectors) Delete

func (c *FakeEurekaConnectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeEurekaConnectors) DeleteCollection

func (c *FakeEurekaConnectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEurekaConnectors) Get

func (c *FakeEurekaConnectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EurekaConnector, err error)

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

func (*FakeEurekaConnectors) List

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

func (*FakeEurekaConnectors) Patch

func (c *FakeEurekaConnectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EurekaConnector, err error)

Patch applies the patch and returns the patched eurekaConnector.

func (*FakeEurekaConnectors) Update

func (c *FakeEurekaConnectors) Update(ctx context.Context, eurekaConnector *v1alpha1.EurekaConnector, opts v1.UpdateOptions) (result *v1alpha1.EurekaConnector, err error)

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

func (*FakeEurekaConnectors) UpdateStatus

func (c *FakeEurekaConnectors) UpdateStatus(ctx context.Context, eurekaConnector *v1alpha1.EurekaConnector, opts v1.UpdateOptions) (*v1alpha1.EurekaConnector, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeEurekaConnectors) Watch

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

type FakeGatewayConnectors

type FakeGatewayConnectors struct {
	Fake *FakeConnectorV1alpha1
}

FakeGatewayConnectors implements GatewayConnectorInterface

func (*FakeGatewayConnectors) Create

func (c *FakeGatewayConnectors) Create(ctx context.Context, gatewayConnector *v1alpha1.GatewayConnector, opts v1.CreateOptions) (result *v1alpha1.GatewayConnector, err error)

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

func (*FakeGatewayConnectors) Delete

func (c *FakeGatewayConnectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeGatewayConnectors) DeleteCollection

func (c *FakeGatewayConnectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGatewayConnectors) Get

func (c *FakeGatewayConnectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.GatewayConnector, err error)

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

func (*FakeGatewayConnectors) List

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

func (*FakeGatewayConnectors) Patch

func (c *FakeGatewayConnectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.GatewayConnector, err error)

Patch applies the patch and returns the patched gatewayConnector.

func (*FakeGatewayConnectors) Update

func (c *FakeGatewayConnectors) Update(ctx context.Context, gatewayConnector *v1alpha1.GatewayConnector, opts v1.UpdateOptions) (result *v1alpha1.GatewayConnector, err error)

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

func (*FakeGatewayConnectors) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeGatewayConnectors) Watch

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

type FakeMachineConnectors

type FakeMachineConnectors struct {
	Fake *FakeConnectorV1alpha1
}

FakeMachineConnectors implements MachineConnectorInterface

func (*FakeMachineConnectors) Create

func (c *FakeMachineConnectors) Create(ctx context.Context, machineConnector *v1alpha1.MachineConnector, opts v1.CreateOptions) (result *v1alpha1.MachineConnector, err error)

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

func (*FakeMachineConnectors) Delete

func (c *FakeMachineConnectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeMachineConnectors) DeleteCollection

func (c *FakeMachineConnectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMachineConnectors) Get

func (c *FakeMachineConnectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MachineConnector, err error)

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

func (*FakeMachineConnectors) List

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

func (*FakeMachineConnectors) Patch

func (c *FakeMachineConnectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MachineConnector, err error)

Patch applies the patch and returns the patched machineConnector.

func (*FakeMachineConnectors) Update

func (c *FakeMachineConnectors) Update(ctx context.Context, machineConnector *v1alpha1.MachineConnector, opts v1.UpdateOptions) (result *v1alpha1.MachineConnector, err error)

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

func (*FakeMachineConnectors) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeMachineConnectors) Watch

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

type FakeNacosConnectors

type FakeNacosConnectors struct {
	Fake *FakeConnectorV1alpha1
}

FakeNacosConnectors implements NacosConnectorInterface

func (*FakeNacosConnectors) Create

func (c *FakeNacosConnectors) Create(ctx context.Context, nacosConnector *v1alpha1.NacosConnector, opts v1.CreateOptions) (result *v1alpha1.NacosConnector, err error)

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

func (*FakeNacosConnectors) Delete

func (c *FakeNacosConnectors) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeNacosConnectors) DeleteCollection

func (c *FakeNacosConnectors) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNacosConnectors) Get

func (c *FakeNacosConnectors) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NacosConnector, err error)

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

func (*FakeNacosConnectors) List

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

func (*FakeNacosConnectors) Patch

func (c *FakeNacosConnectors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.NacosConnector, err error)

Patch applies the patch and returns the patched nacosConnector.

func (*FakeNacosConnectors) Update

func (c *FakeNacosConnectors) Update(ctx context.Context, nacosConnector *v1alpha1.NacosConnector, opts v1.UpdateOptions) (result *v1alpha1.NacosConnector, err error)

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

func (*FakeNacosConnectors) UpdateStatus

func (c *FakeNacosConnectors) UpdateStatus(ctx context.Context, nacosConnector *v1alpha1.NacosConnector, opts v1.UpdateOptions) (*v1alpha1.NacosConnector, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeNacosConnectors) Watch

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

Jump to

Keyboard shortcuts

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