fake

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 FakeHabitatV1beta1

type FakeHabitatV1beta1 struct {
	*testing.Fake
}

func (*FakeHabitatV1beta1) Habitats

func (c *FakeHabitatV1beta1) Habitats(namespace string) v1beta1.HabitatInterface

func (*FakeHabitatV1beta1) RESTClient

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

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

type FakeHabitats

type FakeHabitats struct {
	Fake *FakeHabitatV1beta1
	// contains filtered or unexported fields
}

FakeHabitats implements HabitatInterface

func (*FakeHabitats) Create

func (c *FakeHabitats) Create(habitat *v1beta1.Habitat) (result *v1beta1.Habitat, err error)

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

func (*FakeHabitats) Delete

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

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

func (*FakeHabitats) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHabitats) Get

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

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

func (*FakeHabitats) List

func (c *FakeHabitats) List(opts v1.ListOptions) (result *v1beta1.HabitatList, err error)

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

func (*FakeHabitats) Patch

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

Patch applies the patch and returns the patched habitat.

func (*FakeHabitats) Update

func (c *FakeHabitats) Update(habitat *v1beta1.Habitat) (result *v1beta1.Habitat, err error)

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

func (*FakeHabitats) UpdateStatus

func (c *FakeHabitats) UpdateStatus(habitat *v1beta1.Habitat) (*v1beta1.Habitat, error)

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

func (*FakeHabitats) Watch

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

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

Jump to

Keyboard shortcuts

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