fake

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 10 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 FakeIstioV1beta1

type FakeIstioV1beta1 struct {
	*testing.Fake
}

func (*FakeIstioV1beta1) Istios

func (c *FakeIstioV1beta1) Istios(namespace string) v1beta1.IstioInterface

func (*FakeIstioV1beta1) MeshGateways

func (c *FakeIstioV1beta1) MeshGateways(namespace string) v1beta1.MeshGatewayInterface

func (*FakeIstioV1beta1) RESTClient

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

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

func (*FakeIstioV1beta1) RemoteIstios

func (c *FakeIstioV1beta1) RemoteIstios(namespace string) v1beta1.RemoteIstioInterface

type FakeIstios

type FakeIstios struct {
	Fake *FakeIstioV1beta1
	// contains filtered or unexported fields
}

FakeIstios implements IstioInterface

func (*FakeIstios) Create

func (c *FakeIstios) Create(ctx context.Context, istio *v1beta1.Istio, opts v1.CreateOptions) (result *v1beta1.Istio, err error)

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

func (*FakeIstios) Delete

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

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

func (*FakeIstios) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIstios) Get

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

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

func (*FakeIstios) List

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

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

func (*FakeIstios) Patch

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

Patch applies the patch and returns the patched istio.

func (*FakeIstios) Update

func (c *FakeIstios) Update(ctx context.Context, istio *v1beta1.Istio, opts v1.UpdateOptions) (result *v1beta1.Istio, err error)

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

func (*FakeIstios) UpdateStatus

func (c *FakeIstios) UpdateStatus(ctx context.Context, istio *v1beta1.Istio, opts v1.UpdateOptions) (*v1beta1.Istio, error)

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

func (*FakeIstios) Watch

func (c *FakeIstios) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeMeshGateways

type FakeMeshGateways struct {
	Fake *FakeIstioV1beta1
	// contains filtered or unexported fields
}

FakeMeshGateways implements MeshGatewayInterface

func (*FakeMeshGateways) Create

func (c *FakeMeshGateways) Create(ctx context.Context, meshGateway *v1beta1.MeshGateway, opts v1.CreateOptions) (result *v1beta1.MeshGateway, err error)

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

func (*FakeMeshGateways) Delete

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

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

func (*FakeMeshGateways) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMeshGateways) Get

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

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

func (*FakeMeshGateways) List

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

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

func (*FakeMeshGateways) Patch

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

Patch applies the patch and returns the patched meshGateway.

func (*FakeMeshGateways) Update

func (c *FakeMeshGateways) Update(ctx context.Context, meshGateway *v1beta1.MeshGateway, opts v1.UpdateOptions) (result *v1beta1.MeshGateway, err error)

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

func (*FakeMeshGateways) UpdateStatus

func (c *FakeMeshGateways) UpdateStatus(ctx context.Context, meshGateway *v1beta1.MeshGateway, opts v1.UpdateOptions) (*v1beta1.MeshGateway, error)

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

func (*FakeMeshGateways) Watch

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

type FakeRemoteIstios

type FakeRemoteIstios struct {
	Fake *FakeIstioV1beta1
	// contains filtered or unexported fields
}

FakeRemoteIstios implements RemoteIstioInterface

func (*FakeRemoteIstios) Create

func (c *FakeRemoteIstios) Create(ctx context.Context, remoteIstio *v1beta1.RemoteIstio, opts v1.CreateOptions) (result *v1beta1.RemoteIstio, err error)

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

func (*FakeRemoteIstios) Delete

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

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

func (*FakeRemoteIstios) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRemoteIstios) Get

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

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

func (*FakeRemoteIstios) List

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

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

func (*FakeRemoteIstios) Patch

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

Patch applies the patch and returns the patched remoteIstio.

func (*FakeRemoteIstios) Update

func (c *FakeRemoteIstios) Update(ctx context.Context, remoteIstio *v1beta1.RemoteIstio, opts v1.UpdateOptions) (result *v1beta1.RemoteIstio, err error)

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

func (*FakeRemoteIstios) UpdateStatus

func (c *FakeRemoteIstios) UpdateStatus(ctx context.Context, remoteIstio *v1beta1.RemoteIstio, opts v1.UpdateOptions) (*v1beta1.RemoteIstio, error)

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

func (*FakeRemoteIstios) Watch

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

Jump to

Keyboard shortcuts

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