fake

package
v0.0.0-...-2c1c132 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 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 FakeApplicationProtocols

type FakeApplicationProtocols struct {
	Fake *FakeMetaprotocolV1alpha1
	// contains filtered or unexported fields
}

FakeApplicationProtocols implements ApplicationProtocolInterface

func (*FakeApplicationProtocols) Create

func (c *FakeApplicationProtocols) Create(ctx context.Context, applicationProtocol *v1alpha1.ApplicationProtocol, opts v1.CreateOptions) (result *v1alpha1.ApplicationProtocol, err error)

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

func (*FakeApplicationProtocols) Delete

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

func (*FakeApplicationProtocols) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApplicationProtocols) Get

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

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

func (*FakeApplicationProtocols) List

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

func (*FakeApplicationProtocols) Patch

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

Patch applies the patch and returns the patched applicationProtocol.

func (*FakeApplicationProtocols) Update

func (c *FakeApplicationProtocols) Update(ctx context.Context, applicationProtocol *v1alpha1.ApplicationProtocol, opts v1.UpdateOptions) (result *v1alpha1.ApplicationProtocol, err error)

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

func (*FakeApplicationProtocols) UpdateStatus

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

func (*FakeApplicationProtocols) Watch

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

type FakeMetaRouters

type FakeMetaRouters struct {
	Fake *FakeMetaprotocolV1alpha1
	// contains filtered or unexported fields
}

FakeMetaRouters implements MetaRouterInterface

func (*FakeMetaRouters) Create

func (c *FakeMetaRouters) Create(ctx context.Context, metaRouter *v1alpha1.MetaRouter, opts v1.CreateOptions) (result *v1alpha1.MetaRouter, err error)

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

func (*FakeMetaRouters) Delete

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

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

func (*FakeMetaRouters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMetaRouters) Get

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

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

func (*FakeMetaRouters) List

func (c *FakeMetaRouters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MetaRouterList, err error)

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

func (*FakeMetaRouters) Patch

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

Patch applies the patch and returns the patched metaRouter.

func (*FakeMetaRouters) Update

func (c *FakeMetaRouters) Update(ctx context.Context, metaRouter *v1alpha1.MetaRouter, opts v1.UpdateOptions) (result *v1alpha1.MetaRouter, err error)

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

func (*FakeMetaRouters) UpdateStatus

func (c *FakeMetaRouters) UpdateStatus(ctx context.Context, metaRouter *v1alpha1.MetaRouter, opts v1.UpdateOptions) (*v1alpha1.MetaRouter, error)

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

func (*FakeMetaRouters) Watch

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

type FakeMetaprotocolV1alpha1

type FakeMetaprotocolV1alpha1 struct {
	*testing.Fake
}

func (*FakeMetaprotocolV1alpha1) ApplicationProtocols

func (c *FakeMetaprotocolV1alpha1) ApplicationProtocols(namespace string) v1alpha1.ApplicationProtocolInterface

func (*FakeMetaprotocolV1alpha1) MetaRouters

func (c *FakeMetaprotocolV1alpha1) MetaRouters(namespace string) v1alpha1.MetaRouterInterface

func (*FakeMetaprotocolV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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