fake

package
v0.0.0-...-e779149 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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 *FakeNotificationV2beta2
}

FakeConfigs implements ConfigInterface

func (*FakeConfigs) Create

func (c *FakeConfigs) Create(ctx context.Context, config *v2beta2.Config, opts v1.CreateOptions) (result *v2beta2.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 *v2beta2.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 *v2beta2.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 *v2beta2.Config, err error)

Patch applies the patch and returns the patched config.

func (*FakeConfigs) Update

func (c *FakeConfigs) Update(ctx context.Context, config *v2beta2.Config, opts v1.UpdateOptions) (result *v2beta2.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 *v2beta2.Config, opts v1.UpdateOptions) (*v2beta2.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 FakeNotificationManagers

type FakeNotificationManagers struct {
	Fake *FakeNotificationV2beta2
}

FakeNotificationManagers implements NotificationManagerInterface

func (*FakeNotificationManagers) Create

func (c *FakeNotificationManagers) Create(ctx context.Context, notificationManager *v2beta2.NotificationManager, opts v1.CreateOptions) (result *v2beta2.NotificationManager, err error)

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

func (*FakeNotificationManagers) Delete

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

func (*FakeNotificationManagers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNotificationManagers) Get

func (c *FakeNotificationManagers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.NotificationManager, err error)

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

func (*FakeNotificationManagers) List

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

func (*FakeNotificationManagers) Patch

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

Patch applies the patch and returns the patched notificationManager.

func (*FakeNotificationManagers) Update

func (c *FakeNotificationManagers) Update(ctx context.Context, notificationManager *v2beta2.NotificationManager, opts v1.UpdateOptions) (result *v2beta2.NotificationManager, err error)

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

func (*FakeNotificationManagers) UpdateStatus

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

func (*FakeNotificationManagers) Watch

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

type FakeNotificationV2beta2

type FakeNotificationV2beta2 struct {
	*testing.Fake
}

func (*FakeNotificationV2beta2) Configs

func (*FakeNotificationV2beta2) NotificationManagers

func (*FakeNotificationV2beta2) RESTClient

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

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

func (*FakeNotificationV2beta2) Receivers

func (*FakeNotificationV2beta2) Routers

func (*FakeNotificationV2beta2) Silences

type FakeReceivers

type FakeReceivers struct {
	Fake *FakeNotificationV2beta2
}

FakeReceivers implements ReceiverInterface

func (*FakeReceivers) Create

func (c *FakeReceivers) Create(ctx context.Context, receiver *v2beta2.Receiver, opts v1.CreateOptions) (result *v2beta2.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 *v2beta2.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 *v2beta2.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 *v2beta2.Receiver, err error)

Patch applies the patch and returns the patched receiver.

func (*FakeReceivers) Update

func (c *FakeReceivers) Update(ctx context.Context, receiver *v2beta2.Receiver, opts v1.UpdateOptions) (result *v2beta2.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 *v2beta2.Receiver, opts v1.UpdateOptions) (*v2beta2.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.

type FakeRouters

type FakeRouters struct {
	Fake *FakeNotificationV2beta2
}

FakeRouters implements RouterInterface

func (*FakeRouters) Create

func (c *FakeRouters) Create(ctx context.Context, router *v2beta2.Router, opts v1.CreateOptions) (result *v2beta2.Router, err error)

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

func (*FakeRouters) Delete

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

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

func (*FakeRouters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRouters) Get

func (c *FakeRouters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.Router, err error)

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

func (*FakeRouters) List

func (c *FakeRouters) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.RouterList, err error)

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

func (*FakeRouters) Patch

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

Patch applies the patch and returns the patched router.

func (*FakeRouters) Update

func (c *FakeRouters) Update(ctx context.Context, router *v2beta2.Router, opts v1.UpdateOptions) (result *v2beta2.Router, err error)

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

func (*FakeRouters) UpdateStatus

func (c *FakeRouters) UpdateStatus(ctx context.Context, router *v2beta2.Router, opts v1.UpdateOptions) (*v2beta2.Router, error)

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

func (*FakeRouters) Watch

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

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

type FakeSilences

type FakeSilences struct {
	Fake *FakeNotificationV2beta2
}

FakeSilences implements SilenceInterface

func (*FakeSilences) Create

func (c *FakeSilences) Create(ctx context.Context, silence *v2beta2.Silence, opts v1.CreateOptions) (result *v2beta2.Silence, err error)

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

func (*FakeSilences) Delete

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

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

func (*FakeSilences) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSilences) Get

func (c *FakeSilences) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2beta2.Silence, err error)

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

func (*FakeSilences) List

func (c *FakeSilences) List(ctx context.Context, opts v1.ListOptions) (result *v2beta2.SilenceList, err error)

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

func (*FakeSilences) Patch

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

Patch applies the patch and returns the patched silence.

func (*FakeSilences) Update

func (c *FakeSilences) Update(ctx context.Context, silence *v2beta2.Silence, opts v1.UpdateOptions) (result *v2beta2.Silence, err error)

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

func (*FakeSilences) UpdateStatus

func (c *FakeSilences) UpdateStatus(ctx context.Context, silence *v2beta2.Silence, opts v1.UpdateOptions) (*v2beta2.Silence, error)

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

func (*FakeSilences) Watch

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

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

Jump to

Keyboard shortcuts

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