fake

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 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 FakeMulticlusterV1

type FakeMulticlusterV1 struct {
	*testing.Fake
}

func (*FakeMulticlusterV1) RESTClient

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

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

func (*FakeMulticlusterV1) RemoteClusters

func (c *FakeMulticlusterV1) RemoteClusters() v1.RemoteClusterInterface

func (*FakeMulticlusterV1) RemoteEndpointSlices

func (c *FakeMulticlusterV1) RemoteEndpointSlices() v1.RemoteEndpointSliceInterface

func (*FakeMulticlusterV1) RemoteSubnets

func (c *FakeMulticlusterV1) RemoteSubnets() v1.RemoteSubnetInterface

func (*FakeMulticlusterV1) RemoteVteps

func (c *FakeMulticlusterV1) RemoteVteps() v1.RemoteVtepInterface

type FakeRemoteClusters

type FakeRemoteClusters struct {
	Fake *FakeMulticlusterV1
}

FakeRemoteClusters implements RemoteClusterInterface

func (*FakeRemoteClusters) Create

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

func (*FakeRemoteClusters) Delete

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

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

func (*FakeRemoteClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRemoteClusters) Get

func (c *FakeRemoteClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *multiclusterv1.RemoteCluster, err error)

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

func (*FakeRemoteClusters) List

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

func (*FakeRemoteClusters) Patch

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

Patch applies the patch and returns the patched remoteCluster.

func (*FakeRemoteClusters) Update

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

func (*FakeRemoteClusters) UpdateStatus

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

func (*FakeRemoteClusters) Watch

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

type FakeRemoteEndpointSlices

type FakeRemoteEndpointSlices struct {
	Fake *FakeMulticlusterV1
}

FakeRemoteEndpointSlices implements RemoteEndpointSliceInterface

func (*FakeRemoteEndpointSlices) Create

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

func (*FakeRemoteEndpointSlices) Delete

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

func (*FakeRemoteEndpointSlices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRemoteEndpointSlices) Get

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

func (*FakeRemoteEndpointSlices) List

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

func (*FakeRemoteEndpointSlices) Patch

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

Patch applies the patch and returns the patched remoteEndpointSlice.

func (*FakeRemoteEndpointSlices) Update

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

func (*FakeRemoteEndpointSlices) UpdateStatus

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

func (*FakeRemoteEndpointSlices) Watch

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

type FakeRemoteSubnets

type FakeRemoteSubnets struct {
	Fake *FakeMulticlusterV1
}

FakeRemoteSubnets implements RemoteSubnetInterface

func (*FakeRemoteSubnets) Create

func (c *FakeRemoteSubnets) Create(ctx context.Context, remoteSubnet *multiclusterv1.RemoteSubnet, opts v1.CreateOptions) (result *multiclusterv1.RemoteSubnet, err error)

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

func (*FakeRemoteSubnets) Delete

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

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

func (*FakeRemoteSubnets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRemoteSubnets) Get

func (c *FakeRemoteSubnets) Get(ctx context.Context, name string, options v1.GetOptions) (result *multiclusterv1.RemoteSubnet, err error)

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

func (*FakeRemoteSubnets) List

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

func (*FakeRemoteSubnets) Patch

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

Patch applies the patch and returns the patched remoteSubnet.

func (*FakeRemoteSubnets) Update

func (c *FakeRemoteSubnets) Update(ctx context.Context, remoteSubnet *multiclusterv1.RemoteSubnet, opts v1.UpdateOptions) (result *multiclusterv1.RemoteSubnet, err error)

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

func (*FakeRemoteSubnets) UpdateStatus

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

func (*FakeRemoteSubnets) Watch

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

type FakeRemoteVteps

type FakeRemoteVteps struct {
	Fake *FakeMulticlusterV1
}

FakeRemoteVteps implements RemoteVtepInterface

func (*FakeRemoteVteps) Create

func (c *FakeRemoteVteps) Create(ctx context.Context, remoteVtep *multiclusterv1.RemoteVtep, opts v1.CreateOptions) (result *multiclusterv1.RemoteVtep, err error)

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

func (*FakeRemoteVteps) Delete

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

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

func (*FakeRemoteVteps) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRemoteVteps) Get

func (c *FakeRemoteVteps) Get(ctx context.Context, name string, options v1.GetOptions) (result *multiclusterv1.RemoteVtep, err error)

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

func (*FakeRemoteVteps) List

func (c *FakeRemoteVteps) List(ctx context.Context, opts v1.ListOptions) (result *multiclusterv1.RemoteVtepList, err error)

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

func (*FakeRemoteVteps) Patch

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

Patch applies the patch and returns the patched remoteVtep.

func (*FakeRemoteVteps) Update

func (c *FakeRemoteVteps) Update(ctx context.Context, remoteVtep *multiclusterv1.RemoteVtep, opts v1.UpdateOptions) (result *multiclusterv1.RemoteVtep, err error)

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

func (*FakeRemoteVteps) UpdateStatus

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

func (*FakeRemoteVteps) Watch

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

Jump to

Keyboard shortcuts

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