fake

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 6

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 FakeClusterInterceptors added in v0.13.0

type FakeClusterInterceptors struct {
	Fake *FakeTriggersV1alpha1
}

FakeClusterInterceptors implements ClusterInterceptorInterface

func (*FakeClusterInterceptors) Create added in v0.13.0

func (c *FakeClusterInterceptors) Create(ctx context.Context, clusterInterceptor *v1alpha1.ClusterInterceptor, opts v1.CreateOptions) (result *v1alpha1.ClusterInterceptor, err error)

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

func (*FakeClusterInterceptors) Delete added in v0.13.0

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

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

func (*FakeClusterInterceptors) DeleteCollection added in v0.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterInterceptors) Get added in v0.13.0

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

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

func (*FakeClusterInterceptors) List added in v0.13.0

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

func (*FakeClusterInterceptors) Patch added in v0.13.0

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

Patch applies the patch and returns the patched clusterInterceptor.

func (*FakeClusterInterceptors) Update added in v0.13.0

func (c *FakeClusterInterceptors) Update(ctx context.Context, clusterInterceptor *v1alpha1.ClusterInterceptor, opts v1.UpdateOptions) (result *v1alpha1.ClusterInterceptor, err error)

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

func (*FakeClusterInterceptors) UpdateStatus added in v0.13.0

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

func (*FakeClusterInterceptors) Watch added in v0.13.0

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

type FakeClusterTriggerBindings added in v0.3.0

type FakeClusterTriggerBindings struct {
	Fake *FakeTriggersV1alpha1
}

FakeClusterTriggerBindings implements ClusterTriggerBindingInterface

func (*FakeClusterTriggerBindings) Create added in v0.3.0

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 added in v0.3.0

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

func (*FakeClusterTriggerBindings) DeleteCollection added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterTriggerBindings) Get added in v0.3.0

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

func (*FakeClusterTriggerBindings) List added in v0.3.0

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

func (*FakeClusterTriggerBindings) Patch added in v0.3.0

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

Patch applies the patch and returns the patched clusterTriggerBinding.

func (*FakeClusterTriggerBindings) Update added in v0.3.0

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 added in v0.3.0

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 added in v0.3.0

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

type FakeEventListeners

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

FakeEventListeners implements EventListenerInterface

func (*FakeEventListeners) Create

func (c *FakeEventListeners) Create(ctx context.Context, eventListener *v1alpha1.EventListener, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.EventListener, err error)

Patch applies the patch and returns the patched eventListener.

func (*FakeEventListeners) Update

func (c *FakeEventListeners) Update(ctx context.Context, eventListener *v1alpha1.EventListener, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.EventListener, opts v1.UpdateOptions) (*v1alpha1.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 FakeInterceptors added in v0.22.0

type FakeInterceptors struct {
	Fake *FakeTriggersV1alpha1
	// contains filtered or unexported fields
}

FakeInterceptors implements InterceptorInterface

func (*FakeInterceptors) Create added in v0.22.0

func (c *FakeInterceptors) Create(ctx context.Context, interceptor *v1alpha1.Interceptor, opts v1.CreateOptions) (result *v1alpha1.Interceptor, err error)

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

func (*FakeInterceptors) Delete added in v0.22.0

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

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

func (*FakeInterceptors) DeleteCollection added in v0.22.0

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

DeleteCollection deletes a collection of objects.

func (*FakeInterceptors) Get added in v0.22.0

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

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

func (*FakeInterceptors) List added in v0.22.0

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

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

func (*FakeInterceptors) Patch added in v0.22.0

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

Patch applies the patch and returns the patched interceptor.

func (*FakeInterceptors) Update added in v0.22.0

func (c *FakeInterceptors) Update(ctx context.Context, interceptor *v1alpha1.Interceptor, opts v1.UpdateOptions) (result *v1alpha1.Interceptor, err error)

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

func (*FakeInterceptors) UpdateStatus added in v0.22.0

func (c *FakeInterceptors) UpdateStatus(ctx context.Context, interceptor *v1alpha1.Interceptor, opts v1.UpdateOptions) (*v1alpha1.Interceptor, error)

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

func (*FakeInterceptors) Watch added in v0.22.0

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

type FakeTriggerBindings

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

FakeTriggerBindings implements TriggerBindingInterface

func (*FakeTriggerBindings) Create

func (c *FakeTriggerBindings) Create(ctx context.Context, triggerBinding *v1alpha1.TriggerBinding, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.TriggerBinding, err error)

Patch applies the patch and returns the patched triggerBinding.

func (*FakeTriggerBindings) Update

func (c *FakeTriggerBindings) Update(ctx context.Context, triggerBinding *v1alpha1.TriggerBinding, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.TriggerBinding, opts v1.UpdateOptions) (*v1alpha1.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 *FakeTriggersV1alpha1
	// contains filtered or unexported fields
}

FakeTriggerTemplates implements TriggerTemplateInterface

func (*FakeTriggerTemplates) Create

func (c *FakeTriggerTemplates) Create(ctx context.Context, triggerTemplate *v1alpha1.TriggerTemplate, opts v1.CreateOptions) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.TriggerTemplate, err error)

Patch applies the patch and returns the patched triggerTemplate.

func (*FakeTriggerTemplates) Update

func (c *FakeTriggerTemplates) Update(ctx context.Context, triggerTemplate *v1alpha1.TriggerTemplate, opts v1.UpdateOptions) (result *v1alpha1.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 *v1alpha1.TriggerTemplate, opts v1.UpdateOptions) (*v1alpha1.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 added in v0.7.0

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

FakeTriggers implements TriggerInterface

func (*FakeTriggers) Create added in v0.7.0

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 added in v0.7.0

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 added in v0.7.0

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

DeleteCollection deletes a collection of objects.

func (*FakeTriggers) Get added in v0.7.0

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 added in v0.7.0

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 added in v0.7.0

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 added in v0.7.0

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) Watch added in v0.7.0

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

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

type FakeTriggersV1alpha1 added in v0.4.0

type FakeTriggersV1alpha1 struct {
	*testing.Fake
}

func (*FakeTriggersV1alpha1) ClusterInterceptors added in v0.13.0

func (*FakeTriggersV1alpha1) ClusterTriggerBindings added in v0.4.0

func (c *FakeTriggersV1alpha1) ClusterTriggerBindings() v1alpha1.ClusterTriggerBindingInterface

func (*FakeTriggersV1alpha1) EventListeners added in v0.4.0

func (c *FakeTriggersV1alpha1) EventListeners(namespace string) v1alpha1.EventListenerInterface

func (*FakeTriggersV1alpha1) Interceptors added in v0.22.0

func (c *FakeTriggersV1alpha1) Interceptors(namespace string) v1alpha1.InterceptorInterface

func (*FakeTriggersV1alpha1) RESTClient added in v0.4.0

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

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

func (*FakeTriggersV1alpha1) TriggerBindings added in v0.4.0

func (c *FakeTriggersV1alpha1) TriggerBindings(namespace string) v1alpha1.TriggerBindingInterface

func (*FakeTriggersV1alpha1) TriggerTemplates added in v0.4.0

func (c *FakeTriggersV1alpha1) TriggerTemplates(namespace string) v1alpha1.TriggerTemplateInterface

func (*FakeTriggersV1alpha1) Triggers added in v0.7.0

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

Jump to

Keyboard shortcuts

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