fake

package
Version: v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 10 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 FakeBuildingV1

type FakeBuildingV1 struct {
	*testing.Fake
}

func (*FakeBuildingV1) Houses

func (c *FakeBuildingV1) Houses(namespace string) v1.HouseInterface

func (*FakeBuildingV1) RESTClient

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

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

type FakeHouses

type FakeHouses struct {
	Fake *FakeBuildingV1
	// contains filtered or unexported fields
}

FakeHouses implements HouseInterface

func (*FakeHouses) Create

func (c *FakeHouses) Create(ctx context.Context, house *buildingv1.House, opts v1.CreateOptions) (result *buildingv1.House, err error)

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

func (*FakeHouses) Delete

func (c *FakeHouses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeHouses) DeleteCollection

func (c *FakeHouses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHouses) Get

func (c *FakeHouses) Get(ctx context.Context, name string, options v1.GetOptions) (result *buildingv1.House, err error)

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

func (*FakeHouses) List

func (c *FakeHouses) List(ctx context.Context, opts v1.ListOptions) (result *buildingv1.HouseList, err error)

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

func (*FakeHouses) Patch

func (c *FakeHouses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *buildingv1.House, err error)

Patch applies the patch and returns the patched house.

func (*FakeHouses) Update

func (c *FakeHouses) Update(ctx context.Context, house *buildingv1.House, opts v1.UpdateOptions) (result *buildingv1.House, err error)

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

func (*FakeHouses) Watch

func (c *FakeHouses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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