fake

package
v0.0.0-...-932eec2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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 FakeClusterEventBuses

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

FakeClusterEventBuses implements ClusterEventBusInterface

func (*FakeClusterEventBuses) Create

func (c *FakeClusterEventBuses) Create(ctx context.Context, clusterEventBus *v1alpha1.ClusterEventBus, opts v1.CreateOptions) (result *v1alpha1.ClusterEventBus, err error)

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

func (*FakeClusterEventBuses) Delete

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

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

func (*FakeClusterEventBuses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterEventBuses) Get

func (c *FakeClusterEventBuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterEventBus, err error)

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

func (*FakeClusterEventBuses) List

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

func (*FakeClusterEventBuses) Patch

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

Patch applies the patch and returns the patched clusterEventBus.

func (*FakeClusterEventBuses) Update

func (c *FakeClusterEventBuses) Update(ctx context.Context, clusterEventBus *v1alpha1.ClusterEventBus, opts v1.UpdateOptions) (result *v1alpha1.ClusterEventBus, err error)

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

func (*FakeClusterEventBuses) Watch

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

type FakeEventBuses

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

FakeEventBuses implements EventBusInterface

func (*FakeEventBuses) Create

func (c *FakeEventBuses) Create(ctx context.Context, eventBus *v1alpha1.EventBus, opts v1.CreateOptions) (result *v1alpha1.EventBus, err error)

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

func (*FakeEventBuses) Delete

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

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

func (*FakeEventBuses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventBuses) Get

func (c *FakeEventBuses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EventBus, err error)

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

func (*FakeEventBuses) List

func (c *FakeEventBuses) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EventBusList, err error)

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

func (*FakeEventBuses) Patch

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

Patch applies the patch and returns the patched eventBus.

func (*FakeEventBuses) Update

func (c *FakeEventBuses) Update(ctx context.Context, eventBus *v1alpha1.EventBus, opts v1.UpdateOptions) (result *v1alpha1.EventBus, err error)

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

func (*FakeEventBuses) Watch

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

type FakeEventSources

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

FakeEventSources implements EventSourceInterface

func (*FakeEventSources) Create

func (c *FakeEventSources) Create(ctx context.Context, eventSource *v1alpha1.EventSource, opts v1.CreateOptions) (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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEventSources) Get

func (c *FakeEventSources) Get(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EventSource, err error)

Patch applies the patch and returns the patched eventSource.

func (*FakeEventSources) Update

func (c *FakeEventSources) Update(ctx context.Context, eventSource *v1alpha1.EventSource, opts v1.UpdateOptions) (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(ctx context.Context, eventSource *v1alpha1.EventSource, opts v1.UpdateOptions) (*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

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

type FakeEventsV1alpha1

type FakeEventsV1alpha1 struct {
	*testing.Fake
}

func (*FakeEventsV1alpha1) ClusterEventBuses

func (c *FakeEventsV1alpha1) ClusterEventBuses(namespace string) v1alpha1.ClusterEventBusInterface

func (*FakeEventsV1alpha1) EventBuses

func (c *FakeEventsV1alpha1) EventBuses(namespace string) v1alpha1.EventBusInterface

func (*FakeEventsV1alpha1) EventSources

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

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) Triggers

func (c *FakeEventsV1alpha1) Triggers(namespace string) v1alpha1.TriggerInterface

type FakeTriggers

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

FakeTriggers implements TriggerInterface

func (*FakeTriggers) Create

func (c *FakeTriggers) Create(ctx context.Context, trigger *v1alpha1.Trigger, opts v1.CreateOptions) (result *v1alpha1.Trigger, err error)

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

func (*FakeTriggers) Delete

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

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

func (*FakeTriggers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTriggers) Get

func (c *FakeTriggers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Trigger, err error)

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

func (*FakeTriggers) List

func (c *FakeTriggers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TriggerList, err error)

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

func (*FakeTriggers) Patch

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

Patch applies the patch and returns the patched trigger.

func (*FakeTriggers) Update

func (c *FakeTriggers) Update(ctx context.Context, trigger *v1alpha1.Trigger, opts v1.UpdateOptions) (result *v1alpha1.Trigger, err error)

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

func (*FakeTriggers) UpdateStatus

func (c *FakeTriggers) UpdateStatus(ctx context.Context, trigger *v1alpha1.Trigger, opts v1.UpdateOptions) (*v1alpha1.Trigger, error)

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

func (*FakeTriggers) Watch

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

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

Jump to

Keyboard shortcuts

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