fake

package
v0.0.0-...-f255259 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT 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 FakeInletsoperatorV1alpha1

type FakeInletsoperatorV1alpha1 struct {
	*testing.Fake
}

func (*FakeInletsoperatorV1alpha1) RESTClient

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

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

func (*FakeInletsoperatorV1alpha1) Tunnels

type FakeTunnels

type FakeTunnels struct {
	Fake *FakeInletsoperatorV1alpha1
	// contains filtered or unexported fields
}

FakeTunnels implements TunnelInterface

func (*FakeTunnels) Create

func (c *FakeTunnels) Create(tunnel *v1alpha1.Tunnel) (result *v1alpha1.Tunnel, err error)

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

func (*FakeTunnels) Delete

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

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

func (*FakeTunnels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTunnels) Get

func (c *FakeTunnels) Get(name string, options v1.GetOptions) (result *v1alpha1.Tunnel, err error)

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

func (*FakeTunnels) List

func (c *FakeTunnels) List(opts v1.ListOptions) (result *v1alpha1.TunnelList, err error)

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

func (*FakeTunnels) Patch

func (c *FakeTunnels) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Tunnel, err error)

Patch applies the patch and returns the patched tunnel.

func (*FakeTunnels) Update

func (c *FakeTunnels) Update(tunnel *v1alpha1.Tunnel) (result *v1alpha1.Tunnel, err error)

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

func (*FakeTunnels) UpdateStatus

func (c *FakeTunnels) UpdateStatus(tunnel *v1alpha1.Tunnel) (*v1alpha1.Tunnel, error)

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

func (*FakeTunnels) Watch

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

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

Jump to

Keyboard shortcuts

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