fake

package
v0.0.0-...-3509752 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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 FakeMaegusV1beta1

type FakeMaegusV1beta1 struct {
	*testing.Fake
}

func (*FakeMaegusV1beta1) Proxiers

func (c *FakeMaegusV1beta1) Proxiers(namespace string) v1beta1.ProxierInterface

func (*FakeMaegusV1beta1) RESTClient

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

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

type FakeProxiers

type FakeProxiers struct {
	Fake *FakeMaegusV1beta1
	// contains filtered or unexported fields
}

FakeProxiers implements ProxierInterface

func (*FakeProxiers) Create

func (c *FakeProxiers) Create(proxier *v1beta1.Proxier) (result *v1beta1.Proxier, err error)

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

func (*FakeProxiers) Delete

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

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

func (*FakeProxiers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeProxiers) Get

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

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

func (*FakeProxiers) List

func (c *FakeProxiers) List(opts v1.ListOptions) (result *v1beta1.ProxierList, err error)

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

func (*FakeProxiers) Patch

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

Patch applies the patch and returns the patched proxier.

func (*FakeProxiers) Update

func (c *FakeProxiers) Update(proxier *v1beta1.Proxier) (result *v1beta1.Proxier, err error)

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

func (*FakeProxiers) UpdateStatus

func (c *FakeProxiers) UpdateStatus(proxier *v1beta1.Proxier) (*v1beta1.Proxier, error)

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

func (*FakeProxiers) Watch

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

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

Jump to

Keyboard shortcuts

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