fake

package
v0.0.0-...-d5b48cf Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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 FakeClusterEventSources

type FakeClusterEventSources struct {
	Fake *FakeFeedsV1alpha1
}

FakeClusterEventSources implements ClusterEventSourceInterface

func (*FakeClusterEventSources) Create

func (c *FakeClusterEventSources) Create(clusterEventSource *v1alpha1.ClusterEventSource) (result *v1alpha1.ClusterEventSource, err error)

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

func (*FakeClusterEventSources) Delete

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

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

func (*FakeClusterEventSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterEventSources) Get

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

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

func (*FakeClusterEventSources) List

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

func (*FakeClusterEventSources) Patch

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

Patch applies the patch and returns the patched clusterEventSource.

func (*FakeClusterEventSources) Update

func (c *FakeClusterEventSources) Update(clusterEventSource *v1alpha1.ClusterEventSource) (result *v1alpha1.ClusterEventSource, err error)

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

func (*FakeClusterEventSources) UpdateStatus

func (c *FakeClusterEventSources) UpdateStatus(clusterEventSource *v1alpha1.ClusterEventSource) (*v1alpha1.ClusterEventSource, error)

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

func (*FakeClusterEventSources) Watch

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

type FakeClusterEventTypes

type FakeClusterEventTypes struct {
	Fake *FakeFeedsV1alpha1
}

FakeClusterEventTypes implements ClusterEventTypeInterface

func (*FakeClusterEventTypes) Create

func (c *FakeClusterEventTypes) Create(clusterEventType *v1alpha1.ClusterEventType) (result *v1alpha1.ClusterEventType, err error)

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

func (*FakeClusterEventTypes) Delete

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

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

func (*FakeClusterEventTypes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterEventTypes) Get

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

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

func (*FakeClusterEventTypes) List

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

func (*FakeClusterEventTypes) Patch

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

Patch applies the patch and returns the patched clusterEventType.

func (*FakeClusterEventTypes) Update

func (c *FakeClusterEventTypes) Update(clusterEventType *v1alpha1.ClusterEventType) (result *v1alpha1.ClusterEventType, err error)

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

func (*FakeClusterEventTypes) UpdateStatus

func (c *FakeClusterEventTypes) UpdateStatus(clusterEventType *v1alpha1.ClusterEventType) (*v1alpha1.ClusterEventType, error)

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

func (*FakeClusterEventTypes) Watch

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

type FakeEventSources

type FakeEventSources struct {
	Fake *FakeFeedsV1alpha1
	// contains filtered or unexported fields
}

FakeEventSources implements EventSourceInterface

func (*FakeEventSources) Create

func (c *FakeEventSources) Create(eventSource *v1alpha1.EventSource) (result *v1alpha1.EventSource, err error)

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

func (*FakeEventSources) Delete

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

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

func (*FakeEventSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventSources) Get

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

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

func (*FakeEventSources) List

func (c *FakeEventSources) List(opts v1.ListOptions) (result *v1alpha1.EventSourceList, err error)

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

func (*FakeEventSources) Patch

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

Patch applies the patch and returns the patched eventSource.

func (*FakeEventSources) Update

func (c *FakeEventSources) Update(eventSource *v1alpha1.EventSource) (result *v1alpha1.EventSource, err error)

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

func (*FakeEventSources) UpdateStatus

func (c *FakeEventSources) UpdateStatus(eventSource *v1alpha1.EventSource) (*v1alpha1.EventSource, error)

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

func (*FakeEventSources) Watch

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

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

type FakeEventTypes

type FakeEventTypes struct {
	Fake *FakeFeedsV1alpha1
	// contains filtered or unexported fields
}

FakeEventTypes implements EventTypeInterface

func (*FakeEventTypes) Create

func (c *FakeEventTypes) Create(eventType *v1alpha1.EventType) (result *v1alpha1.EventType, err error)

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

func (*FakeEventTypes) Delete

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

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

func (*FakeEventTypes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventTypes) Get

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

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

func (*FakeEventTypes) List

func (c *FakeEventTypes) List(opts v1.ListOptions) (result *v1alpha1.EventTypeList, err error)

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

func (*FakeEventTypes) Patch

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

Patch applies the patch and returns the patched eventType.

func (*FakeEventTypes) Update

func (c *FakeEventTypes) Update(eventType *v1alpha1.EventType) (result *v1alpha1.EventType, err error)

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

func (*FakeEventTypes) UpdateStatus

func (c *FakeEventTypes) UpdateStatus(eventType *v1alpha1.EventType) (*v1alpha1.EventType, error)

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

func (*FakeEventTypes) Watch

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

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

type FakeFeeds

type FakeFeeds struct {
	Fake *FakeFeedsV1alpha1
	// contains filtered or unexported fields
}

FakeFeeds implements FeedInterface

func (*FakeFeeds) Create

func (c *FakeFeeds) Create(feed *v1alpha1.Feed) (result *v1alpha1.Feed, err error)

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

func (*FakeFeeds) Delete

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

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

func (*FakeFeeds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFeeds) Get

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

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

func (*FakeFeeds) List

func (c *FakeFeeds) List(opts v1.ListOptions) (result *v1alpha1.FeedList, err error)

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

func (*FakeFeeds) Patch

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

Patch applies the patch and returns the patched feed.

func (*FakeFeeds) Update

func (c *FakeFeeds) Update(feed *v1alpha1.Feed) (result *v1alpha1.Feed, err error)

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

func (*FakeFeeds) UpdateStatus

func (c *FakeFeeds) UpdateStatus(feed *v1alpha1.Feed) (*v1alpha1.Feed, error)

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

func (*FakeFeeds) Watch

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

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

type FakeFeedsV1alpha1

type FakeFeedsV1alpha1 struct {
	*testing.Fake
}

func (*FakeFeedsV1alpha1) ClusterEventSources

func (c *FakeFeedsV1alpha1) ClusterEventSources() v1alpha1.ClusterEventSourceInterface

func (*FakeFeedsV1alpha1) ClusterEventTypes

func (c *FakeFeedsV1alpha1) ClusterEventTypes() v1alpha1.ClusterEventTypeInterface

func (*FakeFeedsV1alpha1) EventSources

func (c *FakeFeedsV1alpha1) EventSources(namespace string) v1alpha1.EventSourceInterface

func (*FakeFeedsV1alpha1) EventTypes

func (c *FakeFeedsV1alpha1) EventTypes(namespace string) v1alpha1.EventTypeInterface

func (*FakeFeedsV1alpha1) Feeds

func (c *FakeFeedsV1alpha1) Feeds(namespace string) v1alpha1.FeedInterface

func (*FakeFeedsV1alpha1) RESTClient

func (c *FakeFeedsV1alpha1) 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