fake

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 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 FakeConfigs

type FakeConfigs struct {
	Fake *FakeNotificationV2beta1
}

FakeConfigs implements ConfigInterface

func (*FakeConfigs) Create

func (c *FakeConfigs) Create(ctx context.Context, config *v2beta1.Config, opts v1.CreateOptions) (result *v2beta1.Config, err error)

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

func (*FakeConfigs) Delete

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

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

func (*FakeConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigs) Get

func (c *FakeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.Config, err error)

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

func (*FakeConfigs) List

func (c *FakeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ConfigList, err error)

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

func (*FakeConfigs) Patch

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

Patch applies the patch and returns the patched config.

func (*FakeConfigs) Update

func (c *FakeConfigs) Update(ctx context.Context, config *v2beta1.Config, opts v1.UpdateOptions) (result *v2beta1.Config, err error)

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

func (*FakeConfigs) UpdateStatus

func (c *FakeConfigs) UpdateStatus(ctx context.Context, config *v2beta1.Config, opts v1.UpdateOptions) (*v2beta1.Config, error)

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

func (*FakeConfigs) Watch

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

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

type FakeNotificationV2beta1

type FakeNotificationV2beta1 struct {
	*testing.Fake
}

func (*FakeNotificationV2beta1) Configs

func (*FakeNotificationV2beta1) RESTClient

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

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

func (*FakeNotificationV2beta1) Receivers

type FakeReceivers

type FakeReceivers struct {
	Fake *FakeNotificationV2beta1
}

FakeReceivers implements ReceiverInterface

func (*FakeReceivers) Create

func (c *FakeReceivers) Create(ctx context.Context, receiver *v2beta1.Receiver, opts v1.CreateOptions) (result *v2beta1.Receiver, err error)

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

func (*FakeReceivers) Delete

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

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

func (*FakeReceivers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeReceivers) Get

func (c *FakeReceivers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta1.Receiver, err error)

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

func (*FakeReceivers) List

func (c *FakeReceivers) List(ctx context.Context, opts v1.ListOptions) (result *v2beta1.ReceiverList, err error)

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

func (*FakeReceivers) Patch

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

Patch applies the patch and returns the patched receiver.

func (*FakeReceivers) Update

func (c *FakeReceivers) Update(ctx context.Context, receiver *v2beta1.Receiver, opts v1.UpdateOptions) (result *v2beta1.Receiver, err error)

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

func (*FakeReceivers) UpdateStatus

func (c *FakeReceivers) UpdateStatus(ctx context.Context, receiver *v2beta1.Receiver, opts v1.UpdateOptions) (*v2beta1.Receiver, error)

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

func (*FakeReceivers) Watch

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

Jump to

Keyboard shortcuts

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