fake

package
v0.0.0-...-b08a6ad Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 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 FakeWgnodes

type FakeWgnodes struct {
	Fake *FakeWormholeV1beta1
	// contains filtered or unexported fields
}

FakeWgnodes implements WgnodeInterface

func (*FakeWgnodes) Create

func (c *FakeWgnodes) Create(wgnode *v1beta1.Wgnode) (result *v1beta1.Wgnode, err error)

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

func (*FakeWgnodes) Delete

func (c *FakeWgnodes) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeWgnodes) DeleteCollection

func (c *FakeWgnodes) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeWgnodes) Get

func (c *FakeWgnodes) Get(name string, options v1.GetOptions) (result *v1beta1.Wgnode, err error)

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

func (*FakeWgnodes) List

func (c *FakeWgnodes) List(opts v1.ListOptions) (result *v1beta1.WgnodeList, err error)

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

func (*FakeWgnodes) Patch

func (c *FakeWgnodes) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Wgnode, err error)

Patch applies the patch and returns the patched wgnode.

func (*FakeWgnodes) Update

func (c *FakeWgnodes) Update(wgnode *v1beta1.Wgnode) (result *v1beta1.Wgnode, err error)

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

func (*FakeWgnodes) UpdateStatus

func (c *FakeWgnodes) UpdateStatus(wgnode *v1beta1.Wgnode) (*v1beta1.Wgnode, error)

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

func (*FakeWgnodes) Watch

func (c *FakeWgnodes) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeWormholeV1beta1

type FakeWormholeV1beta1 struct {
	*testing.Fake
}

func (*FakeWormholeV1beta1) RESTClient

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

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

func (*FakeWormholeV1beta1) Wgnodes

func (c *FakeWormholeV1beta1) Wgnodes(namespace string) v1beta1.WgnodeInterface

Jump to

Keyboard shortcuts

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