fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 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 FakeIdlers

type FakeIdlers struct {
	Fake *FakeIdlingV1alpha2
	// contains filtered or unexported fields
}

FakeIdlers implements IdlerInterface

func (*FakeIdlers) Create

func (c *FakeIdlers) Create(idler *v1alpha2.Idler) (result *v1alpha2.Idler, err error)

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

func (*FakeIdlers) Delete

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

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

func (*FakeIdlers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIdlers) Get

func (c *FakeIdlers) Get(name string, options v1.GetOptions) (result *v1alpha2.Idler, err error)

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

func (*FakeIdlers) List

func (c *FakeIdlers) List(opts v1.ListOptions) (result *v1alpha2.IdlerList, err error)

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

func (*FakeIdlers) Patch

func (c *FakeIdlers) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha2.Idler, err error)

Patch applies the patch and returns the patched idler.

func (*FakeIdlers) Update

func (c *FakeIdlers) Update(idler *v1alpha2.Idler) (result *v1alpha2.Idler, err error)

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

func (*FakeIdlers) UpdateStatus

func (c *FakeIdlers) UpdateStatus(idler *v1alpha2.Idler) (*v1alpha2.Idler, error)

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

func (*FakeIdlers) Watch

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

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

type FakeIdlingV1alpha2

type FakeIdlingV1alpha2 struct {
	*testing.Fake
}

func (*FakeIdlingV1alpha2) Idlers

func (c *FakeIdlingV1alpha2) Idlers(namespace string) v1alpha2.IdlerInterface

func (*FakeIdlingV1alpha2) RESTClient

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

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

Jump to

Keyboard shortcuts

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