fake

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 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 FakeClusterTriggerBindings

type FakeClusterTriggerBindings struct {
	Fake *FakeTriggersV1beta1
}

FakeClusterTriggerBindings implements ClusterTriggerBindingInterface

func (*FakeClusterTriggerBindings) Create

func (c *FakeClusterTriggerBindings) Create(ctx context.Context, clusterTriggerBinding *v1beta1.ClusterTriggerBinding, opts v1.CreateOptions) (result *v1beta1.ClusterTriggerBinding, err error)

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

func (*FakeClusterTriggerBindings) Delete

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

func (*FakeClusterTriggerBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterTriggerBindings) Get

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

func (*FakeClusterTriggerBindings) List

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

func (*FakeClusterTriggerBindings) Patch

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

Patch applies the patch and returns the patched clusterTriggerBinding.

func (*FakeClusterTriggerBindings) Update

func (c *FakeClusterTriggerBindings) Update(ctx context.Context, clusterTriggerBinding *v1beta1.ClusterTriggerBinding, opts v1.UpdateOptions) (result *v1beta1.ClusterTriggerBinding, err error)

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

func (*FakeClusterTriggerBindings) UpdateStatus

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

func (*FakeClusterTriggerBindings) Watch

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

type FakeEventListeners

type FakeEventListeners struct {
	Fake *FakeTriggersV1beta1
	// contains filtered or unexported fields
}

FakeEventListeners implements EventListenerInterface

func (*FakeEventListeners) Create

func (c *FakeEventListeners) Create(ctx context.Context, eventListener *v1beta1.EventListener, opts v1.CreateOptions) (result *v1beta1.EventListener, err error)

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

func (*FakeEventListeners) Delete

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

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

func (*FakeEventListeners) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventListeners) Get

func (c *FakeEventListeners) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.EventListener, err error)

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

func (*FakeEventListeners) List

func (c *FakeEventListeners) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.EventListenerList, err error)

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

func (*FakeEventListeners) Patch

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

Patch applies the patch and returns the patched eventListener.

func (*FakeEventListeners) Update

func (c *FakeEventListeners) Update(ctx context.Context, eventListener *v1beta1.EventListener, opts v1.UpdateOptions) (result *v1beta1.EventListener, err error)

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

func (*FakeEventListeners) UpdateStatus

func (c *FakeEventListeners) UpdateStatus(ctx context.Context, eventListener *v1beta1.EventListener, opts v1.UpdateOptions) (*v1beta1.EventListener, error)

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

func (*FakeEventListeners) Watch

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

type FakeTriggerBindings

type FakeTriggerBindings struct {
	Fake *FakeTriggersV1beta1
	// contains filtered or unexported fields
}

FakeTriggerBindings implements TriggerBindingInterface

func (*FakeTriggerBindings) Create

func (c *FakeTriggerBindings) Create(ctx context.Context, triggerBinding *v1beta1.TriggerBinding, opts v1.CreateOptions) (result *v1beta1.TriggerBinding, err error)

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

func (*FakeTriggerBindings) Delete

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

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

func (*FakeTriggerBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTriggerBindings) Get

func (c *FakeTriggerBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.TriggerBinding, err error)

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

func (*FakeTriggerBindings) List

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

func (*FakeTriggerBindings) Patch

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

Patch applies the patch and returns the patched triggerBinding.

func (*FakeTriggerBindings) Update

func (c *FakeTriggerBindings) Update(ctx context.Context, triggerBinding *v1beta1.TriggerBinding, opts v1.UpdateOptions) (result *v1beta1.TriggerBinding, err error)

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

func (*FakeTriggerBindings) UpdateStatus

func (c *FakeTriggerBindings) UpdateStatus(ctx context.Context, triggerBinding *v1beta1.TriggerBinding, opts v1.UpdateOptions) (*v1beta1.TriggerBinding, error)

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

func (*FakeTriggerBindings) Watch

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

type FakeTriggerTemplates

type FakeTriggerTemplates struct {
	Fake *FakeTriggersV1beta1
	// contains filtered or unexported fields
}

FakeTriggerTemplates implements TriggerTemplateInterface

func (*FakeTriggerTemplates) Create

func (c *FakeTriggerTemplates) Create(ctx context.Context, triggerTemplate *v1beta1.TriggerTemplate, opts v1.CreateOptions) (result *v1beta1.TriggerTemplate, err error)

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

func (*FakeTriggerTemplates) Delete

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

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

func (*FakeTriggerTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTriggerTemplates) Get

func (c *FakeTriggerTemplates) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.TriggerTemplate, err error)

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

func (*FakeTriggerTemplates) List

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

func (*FakeTriggerTemplates) Patch

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

Patch applies the patch and returns the patched triggerTemplate.

func (*FakeTriggerTemplates) Update

func (c *FakeTriggerTemplates) Update(ctx context.Context, triggerTemplate *v1beta1.TriggerTemplate, opts v1.UpdateOptions) (result *v1beta1.TriggerTemplate, err error)

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

func (*FakeTriggerTemplates) UpdateStatus

func (c *FakeTriggerTemplates) UpdateStatus(ctx context.Context, triggerTemplate *v1beta1.TriggerTemplate, opts v1.UpdateOptions) (*v1beta1.TriggerTemplate, error)

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

func (*FakeTriggerTemplates) Watch

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

type FakeTriggers

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

FakeTriggers implements TriggerInterface

func (*FakeTriggers) Create

func (c *FakeTriggers) Create(ctx context.Context, trigger *v1beta1.Trigger, opts v1.CreateOptions) (result *v1beta1.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 *v1beta1.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 *v1beta1.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 *v1beta1.Trigger, err error)

Patch applies the patch and returns the patched trigger.

func (*FakeTriggers) Update

func (c *FakeTriggers) Update(ctx context.Context, trigger *v1beta1.Trigger, opts v1.UpdateOptions) (result *v1beta1.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) Watch

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

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

type FakeTriggersV1beta1

type FakeTriggersV1beta1 struct {
	*testing.Fake
}

func (*FakeTriggersV1beta1) ClusterTriggerBindings

func (c *FakeTriggersV1beta1) ClusterTriggerBindings() v1beta1.ClusterTriggerBindingInterface

func (*FakeTriggersV1beta1) EventListeners

func (c *FakeTriggersV1beta1) EventListeners(namespace string) v1beta1.EventListenerInterface

func (*FakeTriggersV1beta1) RESTClient

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

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

func (*FakeTriggersV1beta1) TriggerBindings

func (c *FakeTriggersV1beta1) TriggerBindings(namespace string) v1beta1.TriggerBindingInterface

func (*FakeTriggersV1beta1) TriggerTemplates

func (c *FakeTriggersV1beta1) TriggerTemplates(namespace string) v1beta1.TriggerTemplateInterface

func (*FakeTriggersV1beta1) Triggers

func (c *FakeTriggersV1beta1) Triggers(namespace string) v1beta1.TriggerInterface

Jump to

Keyboard shortcuts

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