fake

package
Version: v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 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 FakeBrokers

type FakeBrokers struct {
	Fake *FakeEventingV1
	// contains filtered or unexported fields
}

FakeBrokers implements BrokerInterface

func (*FakeBrokers) Create

func (c *FakeBrokers) Create(ctx context.Context, broker *eventingv1.Broker, opts v1.CreateOptions) (result *eventingv1.Broker, err error)

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

func (*FakeBrokers) Delete

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

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

func (*FakeBrokers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBrokers) Get

func (c *FakeBrokers) Get(ctx context.Context, name string, options v1.GetOptions) (result *eventingv1.Broker, err error)

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

func (*FakeBrokers) List

func (c *FakeBrokers) List(ctx context.Context, opts v1.ListOptions) (result *eventingv1.BrokerList, err error)

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

func (*FakeBrokers) Patch

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

Patch applies the patch and returns the patched broker.

func (*FakeBrokers) Update

func (c *FakeBrokers) Update(ctx context.Context, broker *eventingv1.Broker, opts v1.UpdateOptions) (result *eventingv1.Broker, err error)

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

func (*FakeBrokers) UpdateStatus

func (c *FakeBrokers) UpdateStatus(ctx context.Context, broker *eventingv1.Broker, opts v1.UpdateOptions) (*eventingv1.Broker, error)

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

func (*FakeBrokers) Watch

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

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

type FakeEventingV1

type FakeEventingV1 struct {
	*testing.Fake
}

func (*FakeEventingV1) Brokers

func (c *FakeEventingV1) Brokers(namespace string) v1.BrokerInterface

func (*FakeEventingV1) RESTClient

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

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

func (*FakeEventingV1) Triggers

func (c *FakeEventingV1) Triggers(namespace string) v1.TriggerInterface

type FakeTriggers

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

FakeTriggers implements TriggerInterface

func (*FakeTriggers) Create

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

Patch applies the patch and returns the patched trigger.

func (*FakeTriggers) Update

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