fake

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 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 FakeAppmeshV1beta2

type FakeAppmeshV1beta2 struct {
	*testing.Fake
}

func (*FakeAppmeshV1beta2) RESTClient

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

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

func (*FakeAppmeshV1beta2) VirtualNodes

func (c *FakeAppmeshV1beta2) VirtualNodes(namespace string) v1beta2.VirtualNodeInterface

func (*FakeAppmeshV1beta2) VirtualRouters

func (c *FakeAppmeshV1beta2) VirtualRouters(namespace string) v1beta2.VirtualRouterInterface

func (*FakeAppmeshV1beta2) VirtualServices

func (c *FakeAppmeshV1beta2) VirtualServices(namespace string) v1beta2.VirtualServiceInterface

type FakeVirtualNodes

type FakeVirtualNodes struct {
	Fake *FakeAppmeshV1beta2
	// contains filtered or unexported fields
}

FakeVirtualNodes implements VirtualNodeInterface

func (*FakeVirtualNodes) Create

func (c *FakeVirtualNodes) Create(ctx context.Context, virtualNode *v1beta2.VirtualNode, opts v1.CreateOptions) (result *v1beta2.VirtualNode, err error)

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

func (*FakeVirtualNodes) Delete

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

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

func (*FakeVirtualNodes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualNodes) Get

func (c *FakeVirtualNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.VirtualNode, err error)

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

func (*FakeVirtualNodes) List

func (c *FakeVirtualNodes) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.VirtualNodeList, err error)

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

func (*FakeVirtualNodes) Patch

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

Patch applies the patch and returns the patched virtualNode.

func (*FakeVirtualNodes) Update

func (c *FakeVirtualNodes) Update(ctx context.Context, virtualNode *v1beta2.VirtualNode, opts v1.UpdateOptions) (result *v1beta2.VirtualNode, err error)

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

func (*FakeVirtualNodes) UpdateStatus

func (c *FakeVirtualNodes) UpdateStatus(ctx context.Context, virtualNode *v1beta2.VirtualNode, opts v1.UpdateOptions) (*v1beta2.VirtualNode, error)

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

func (*FakeVirtualNodes) Watch

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

type FakeVirtualRouters

type FakeVirtualRouters struct {
	Fake *FakeAppmeshV1beta2
	// contains filtered or unexported fields
}

FakeVirtualRouters implements VirtualRouterInterface

func (*FakeVirtualRouters) Create

func (c *FakeVirtualRouters) Create(ctx context.Context, virtualRouter *v1beta2.VirtualRouter, opts v1.CreateOptions) (result *v1beta2.VirtualRouter, err error)

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

func (*FakeVirtualRouters) Delete

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

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

func (*FakeVirtualRouters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualRouters) Get

func (c *FakeVirtualRouters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.VirtualRouter, err error)

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

func (*FakeVirtualRouters) List

func (c *FakeVirtualRouters) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.VirtualRouterList, err error)

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

func (*FakeVirtualRouters) Patch

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

Patch applies the patch and returns the patched virtualRouter.

func (*FakeVirtualRouters) Update

func (c *FakeVirtualRouters) Update(ctx context.Context, virtualRouter *v1beta2.VirtualRouter, opts v1.UpdateOptions) (result *v1beta2.VirtualRouter, err error)

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

func (*FakeVirtualRouters) UpdateStatus

func (c *FakeVirtualRouters) UpdateStatus(ctx context.Context, virtualRouter *v1beta2.VirtualRouter, opts v1.UpdateOptions) (*v1beta2.VirtualRouter, error)

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

func (*FakeVirtualRouters) Watch

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

type FakeVirtualServices

type FakeVirtualServices struct {
	Fake *FakeAppmeshV1beta2
	// contains filtered or unexported fields
}

FakeVirtualServices implements VirtualServiceInterface

func (*FakeVirtualServices) Create

func (c *FakeVirtualServices) Create(ctx context.Context, virtualService *v1beta2.VirtualService, opts v1.CreateOptions) (result *v1beta2.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServices) Get

func (c *FakeVirtualServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.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

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

func (*FakeVirtualServices) Patch

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

Patch applies the patch and returns the patched virtualService.

func (*FakeVirtualServices) Update

func (c *FakeVirtualServices) Update(ctx context.Context, virtualService *v1beta2.VirtualService, opts v1.UpdateOptions) (result *v1beta2.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) UpdateStatus

func (c *FakeVirtualServices) UpdateStatus(ctx context.Context, virtualService *v1beta2.VirtualService, opts v1.UpdateOptions) (*v1beta2.VirtualService, error)

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

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