fake

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 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 *FakeEventingV1beta1
	// contains filtered or unexported fields
}

FakeBrokers implements BrokerInterface

func (*FakeBrokers) Create

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

Patch applies the patch and returns the patched broker.

func (*FakeBrokers) Update

func (c *FakeBrokers) Update(ctx context.Context, broker *v1beta1.Broker, opts v1.UpdateOptions) (result *v1beta1.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 *v1beta1.Broker, opts v1.UpdateOptions) (*v1beta1.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 FakeEventingV1beta1

type FakeEventingV1beta1 struct {
	*testing.Fake
}

func (*FakeEventingV1beta1) Brokers

func (c *FakeEventingV1beta1) Brokers(namespace string) v1beta1.BrokerInterface

func (*FakeEventingV1beta1) RESTClient

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

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

func (*FakeEventingV1beta1) Triggers

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

type FakeTriggers

type FakeTriggers struct {
	Fake *FakeEventingV1beta1
	// 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) UpdateStatus

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