fake

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 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 FakeApisV1beta1

type FakeApisV1beta1 struct {
	*testing.Fake
}

func (*FakeApisV1beta1) ControlPlanes

func (c *FakeApisV1beta1) ControlPlanes(namespace string) v1beta1.ControlPlaneInterface

func (*FakeApisV1beta1) DataPlanes

func (c *FakeApisV1beta1) DataPlanes(namespace string) v1beta1.DataPlaneInterface

func (*FakeApisV1beta1) GatewayConfigurations

func (c *FakeApisV1beta1) GatewayConfigurations(namespace string) v1beta1.GatewayConfigurationInterface

func (*FakeApisV1beta1) RESTClient

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

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

type FakeControlPlanes

type FakeControlPlanes struct {
	Fake *FakeApisV1beta1
	// contains filtered or unexported fields
}

FakeControlPlanes implements ControlPlaneInterface

func (*FakeControlPlanes) Create

func (c *FakeControlPlanes) Create(ctx context.Context, controlPlane *v1beta1.ControlPlane, opts v1.CreateOptions) (result *v1beta1.ControlPlane, err error)

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

func (*FakeControlPlanes) Delete

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

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

func (*FakeControlPlanes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeControlPlanes) Get

func (c *FakeControlPlanes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.ControlPlane, err error)

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

func (*FakeControlPlanes) List

func (c *FakeControlPlanes) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ControlPlaneList, err error)

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

func (*FakeControlPlanes) Patch

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

Patch applies the patch and returns the patched controlPlane.

func (*FakeControlPlanes) Update

func (c *FakeControlPlanes) Update(ctx context.Context, controlPlane *v1beta1.ControlPlane, opts v1.UpdateOptions) (result *v1beta1.ControlPlane, err error)

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

func (*FakeControlPlanes) UpdateStatus

func (c *FakeControlPlanes) UpdateStatus(ctx context.Context, controlPlane *v1beta1.ControlPlane, opts v1.UpdateOptions) (*v1beta1.ControlPlane, error)

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

func (*FakeControlPlanes) Watch

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

type FakeDataPlanes

type FakeDataPlanes struct {
	Fake *FakeApisV1beta1
	// contains filtered or unexported fields
}

FakeDataPlanes implements DataPlaneInterface

func (*FakeDataPlanes) Create

func (c *FakeDataPlanes) Create(ctx context.Context, dataPlane *v1beta1.DataPlane, opts v1.CreateOptions) (result *v1beta1.DataPlane, err error)

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

func (*FakeDataPlanes) Delete

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

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

func (*FakeDataPlanes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDataPlanes) Get

func (c *FakeDataPlanes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.DataPlane, err error)

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

func (*FakeDataPlanes) List

func (c *FakeDataPlanes) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.DataPlaneList, err error)

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

func (*FakeDataPlanes) Patch

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

Patch applies the patch and returns the patched dataPlane.

func (*FakeDataPlanes) Update

func (c *FakeDataPlanes) Update(ctx context.Context, dataPlane *v1beta1.DataPlane, opts v1.UpdateOptions) (result *v1beta1.DataPlane, err error)

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

func (*FakeDataPlanes) UpdateStatus

func (c *FakeDataPlanes) UpdateStatus(ctx context.Context, dataPlane *v1beta1.DataPlane, opts v1.UpdateOptions) (*v1beta1.DataPlane, error)

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

func (*FakeDataPlanes) Watch

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

type FakeGatewayConfigurations

type FakeGatewayConfigurations struct {
	Fake *FakeApisV1beta1
	// contains filtered or unexported fields
}

FakeGatewayConfigurations implements GatewayConfigurationInterface

func (*FakeGatewayConfigurations) Create

func (c *FakeGatewayConfigurations) Create(ctx context.Context, gatewayConfiguration *v1beta1.GatewayConfiguration, opts v1.CreateOptions) (result *v1beta1.GatewayConfiguration, err error)

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

func (*FakeGatewayConfigurations) Delete

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

func (*FakeGatewayConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGatewayConfigurations) Get

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

func (*FakeGatewayConfigurations) List

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

func (*FakeGatewayConfigurations) Patch

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

Patch applies the patch and returns the patched gatewayConfiguration.

func (*FakeGatewayConfigurations) Update

func (c *FakeGatewayConfigurations) Update(ctx context.Context, gatewayConfiguration *v1beta1.GatewayConfiguration, opts v1.UpdateOptions) (result *v1beta1.GatewayConfiguration, err error)

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

func (*FakeGatewayConfigurations) UpdateStatus

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

func (*FakeGatewayConfigurations) Watch

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

Jump to

Keyboard shortcuts

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