fake

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 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 FakeVpnV1alpha1

type FakeVpnV1alpha1 struct {
	*testing.Fake
}

func (*FakeVpnV1alpha1) RESTClient

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

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

func (*FakeVpnV1alpha1) WireguardPeers

func (c *FakeVpnV1alpha1) WireguardPeers(namespace string) v1alpha1.WireguardPeerInterface

func (*FakeVpnV1alpha1) WireguardServers

func (c *FakeVpnV1alpha1) WireguardServers(namespace string) v1alpha1.WireguardServerInterface

type FakeWireguardPeers

type FakeWireguardPeers struct {
	Fake *FakeVpnV1alpha1
	// contains filtered or unexported fields
}

FakeWireguardPeers implements WireguardPeerInterface

func (*FakeWireguardPeers) Create

func (c *FakeWireguardPeers) Create(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, opts v1.CreateOptions) (result *v1alpha1.WireguardPeer, err error)

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

func (*FakeWireguardPeers) Delete

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

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

func (*FakeWireguardPeers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWireguardPeers) Get

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

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

func (*FakeWireguardPeers) List

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

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

func (*FakeWireguardPeers) Patch

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

Patch applies the patch and returns the patched wireguardPeer.

func (*FakeWireguardPeers) Update

func (c *FakeWireguardPeers) Update(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, opts v1.UpdateOptions) (result *v1alpha1.WireguardPeer, err error)

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

func (*FakeWireguardPeers) UpdateStatus

func (c *FakeWireguardPeers) UpdateStatus(ctx context.Context, wireguardPeer *v1alpha1.WireguardPeer, opts v1.UpdateOptions) (*v1alpha1.WireguardPeer, error)

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

func (*FakeWireguardPeers) Watch

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

type FakeWireguardServers

type FakeWireguardServers struct {
	Fake *FakeVpnV1alpha1
	// contains filtered or unexported fields
}

FakeWireguardServers implements WireguardServerInterface

func (*FakeWireguardServers) Create

func (c *FakeWireguardServers) Create(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, opts v1.CreateOptions) (result *v1alpha1.WireguardServer, err error)

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

func (*FakeWireguardServers) Delete

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

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

func (*FakeWireguardServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWireguardServers) Get

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

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

func (*FakeWireguardServers) List

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

func (*FakeWireguardServers) Patch

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

Patch applies the patch and returns the patched wireguardServer.

func (*FakeWireguardServers) Update

func (c *FakeWireguardServers) Update(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, opts v1.UpdateOptions) (result *v1alpha1.WireguardServer, err error)

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

func (*FakeWireguardServers) UpdateStatus

func (c *FakeWireguardServers) UpdateStatus(ctx context.Context, wireguardServer *v1alpha1.WireguardServer, opts v1.UpdateOptions) (*v1alpha1.WireguardServer, error)

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

func (*FakeWireguardServers) Watch

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

Jump to

Keyboard shortcuts

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