fake

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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 FakeEventsV1alpha1

type FakeEventsV1alpha1 struct {
	*testing.Fake
}

func (*FakeEventsV1alpha1) PubSubs added in v0.10.0

func (c *FakeEventsV1alpha1) PubSubs(namespace string) v1alpha1.PubSubInterface

func (*FakeEventsV1alpha1) RESTClient

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

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

func (*FakeEventsV1alpha1) Schedulers added in v0.9.0

func (c *FakeEventsV1alpha1) Schedulers(namespace string) v1alpha1.SchedulerInterface

func (*FakeEventsV1alpha1) Storages added in v0.8.1

func (c *FakeEventsV1alpha1) Storages(namespace string) v1alpha1.StorageInterface

type FakePubSubs added in v0.10.0

type FakePubSubs struct {
	Fake *FakeEventsV1alpha1
	// contains filtered or unexported fields
}

FakePubSubs implements PubSubInterface

func (*FakePubSubs) Create added in v0.10.0

func (c *FakePubSubs) Create(pubSub *v1alpha1.PubSub) (result *v1alpha1.PubSub, err error)

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

func (*FakePubSubs) Delete added in v0.10.0

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

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

func (*FakePubSubs) DeleteCollection added in v0.10.0

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

DeleteCollection deletes a collection of objects.

func (*FakePubSubs) Get added in v0.10.0

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

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

func (*FakePubSubs) List added in v0.10.0

func (c *FakePubSubs) List(opts v1.ListOptions) (result *v1alpha1.PubSubList, err error)

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

func (*FakePubSubs) Patch added in v0.10.0

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

Patch applies the patch and returns the patched pubSub.

func (*FakePubSubs) Update added in v0.10.0

func (c *FakePubSubs) Update(pubSub *v1alpha1.PubSub) (result *v1alpha1.PubSub, err error)

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

func (*FakePubSubs) UpdateStatus added in v0.10.0

func (c *FakePubSubs) UpdateStatus(pubSub *v1alpha1.PubSub) (*v1alpha1.PubSub, error)

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

func (*FakePubSubs) Watch added in v0.10.0

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

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

type FakeSchedulers added in v0.9.0

type FakeSchedulers struct {
	Fake *FakeEventsV1alpha1
	// contains filtered or unexported fields
}

FakeSchedulers implements SchedulerInterface

func (*FakeSchedulers) Create added in v0.9.0

func (c *FakeSchedulers) Create(scheduler *v1alpha1.Scheduler) (result *v1alpha1.Scheduler, err error)

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

func (*FakeSchedulers) Delete added in v0.9.0

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

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

func (*FakeSchedulers) DeleteCollection added in v0.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeSchedulers) Get added in v0.9.0

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

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

func (*FakeSchedulers) List added in v0.9.0

func (c *FakeSchedulers) List(opts v1.ListOptions) (result *v1alpha1.SchedulerList, err error)

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

func (*FakeSchedulers) Patch added in v0.9.0

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

Patch applies the patch and returns the patched scheduler.

func (*FakeSchedulers) Update added in v0.9.0

func (c *FakeSchedulers) Update(scheduler *v1alpha1.Scheduler) (result *v1alpha1.Scheduler, err error)

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

func (*FakeSchedulers) UpdateStatus added in v0.9.0

func (c *FakeSchedulers) UpdateStatus(scheduler *v1alpha1.Scheduler) (*v1alpha1.Scheduler, error)

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

func (*FakeSchedulers) Watch added in v0.9.0

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

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

type FakeStorages added in v0.8.1

type FakeStorages struct {
	Fake *FakeEventsV1alpha1
	// contains filtered or unexported fields
}

FakeStorages implements StorageInterface

func (*FakeStorages) Create added in v0.8.1

func (c *FakeStorages) Create(storage *v1alpha1.Storage) (result *v1alpha1.Storage, err error)

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

func (*FakeStorages) Delete added in v0.8.1

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

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

func (*FakeStorages) DeleteCollection added in v0.8.1

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

DeleteCollection deletes a collection of objects.

func (*FakeStorages) Get added in v0.8.1

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

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

func (*FakeStorages) List added in v0.8.1

func (c *FakeStorages) List(opts v1.ListOptions) (result *v1alpha1.StorageList, err error)

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

func (*FakeStorages) Patch added in v0.8.1

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

Patch applies the patch and returns the patched storage.

func (*FakeStorages) Update added in v0.8.1

func (c *FakeStorages) Update(storage *v1alpha1.Storage) (result *v1alpha1.Storage, err error)

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

func (*FakeStorages) UpdateStatus added in v0.8.1

func (c *FakeStorages) UpdateStatus(storage *v1alpha1.Storage) (*v1alpha1.Storage, error)

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

func (*FakeStorages) Watch added in v0.8.1

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

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

Jump to

Keyboard shortcuts

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