fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 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 FakeSpidermans

type FakeSpidermans struct {
	Fake *FakeSuperheroV1alpha1
	// contains filtered or unexported fields
}

FakeSpidermans implements SpidermanInterface

func (*FakeSpidermans) Create

func (c *FakeSpidermans) Create(spiderman *v1alpha1.Spiderman) (result *v1alpha1.Spiderman, err error)

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

func (*FakeSpidermans) Delete

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

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

func (*FakeSpidermans) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSpidermans) Get

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

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

func (*FakeSpidermans) List

func (c *FakeSpidermans) List(opts v1.ListOptions) (result *v1alpha1.SpidermanList, err error)

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

func (*FakeSpidermans) Patch

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

Patch applies the patch and returns the patched spiderman.

func (*FakeSpidermans) Update

func (c *FakeSpidermans) Update(spiderman *v1alpha1.Spiderman) (result *v1alpha1.Spiderman, err error)

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

func (*FakeSpidermans) Watch

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

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

type FakeSuperheroV1alpha1

type FakeSuperheroV1alpha1 struct {
	*testing.Fake
}

func (*FakeSuperheroV1alpha1) RESTClient

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

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

func (*FakeSuperheroV1alpha1) Spidermans

func (c *FakeSuperheroV1alpha1) Spidermans(namespace string) v1alpha1.SpidermanInterface

Jump to

Keyboard shortcuts

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