fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeNotificationConfigs added in v0.4.0

type FakeNotificationConfigs struct {
	Fake *FakeSccV1alpha1
	// contains filtered or unexported fields
}

FakeNotificationConfigs implements NotificationConfigInterface

func (*FakeNotificationConfigs) Create added in v0.4.0

func (c *FakeNotificationConfigs) Create(ctx context.Context, notificationConfig *v1alpha1.NotificationConfig, opts v1.CreateOptions) (result *v1alpha1.NotificationConfig, err error)

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

func (*FakeNotificationConfigs) Delete added in v0.4.0

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

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

func (*FakeNotificationConfigs) DeleteCollection added in v0.4.0

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

DeleteCollection deletes a collection of objects.

func (*FakeNotificationConfigs) Get added in v0.4.0

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

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

func (*FakeNotificationConfigs) List added in v0.4.0

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

func (*FakeNotificationConfigs) Patch added in v0.4.0

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

Patch applies the patch and returns the patched notificationConfig.

func (*FakeNotificationConfigs) Update added in v0.4.0

func (c *FakeNotificationConfigs) Update(ctx context.Context, notificationConfig *v1alpha1.NotificationConfig, opts v1.UpdateOptions) (result *v1alpha1.NotificationConfig, err error)

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

func (*FakeNotificationConfigs) UpdateStatus added in v0.4.0

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

func (*FakeNotificationConfigs) Watch added in v0.4.0

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

type FakeSccV1alpha1

type FakeSccV1alpha1 struct {
	*testing.Fake
}

func (*FakeSccV1alpha1) NotificationConfigs added in v0.4.0

func (c *FakeSccV1alpha1) NotificationConfigs(namespace string) v1alpha1.NotificationConfigInterface

func (*FakeSccV1alpha1) RESTClient

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

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

func (*FakeSccV1alpha1) Sources

func (c *FakeSccV1alpha1) Sources(namespace string) v1alpha1.SourceInterface

type FakeSources

type FakeSources struct {
	Fake *FakeSccV1alpha1
	// contains filtered or unexported fields
}

FakeSources implements SourceInterface

func (*FakeSources) Create

func (c *FakeSources) Create(ctx context.Context, source *v1alpha1.Source, opts v1.CreateOptions) (result *v1alpha1.Source, err error)

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

func (*FakeSources) Delete

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

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

func (*FakeSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSources) Get

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

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

func (*FakeSources) List

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

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

func (*FakeSources) Patch

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

Patch applies the patch and returns the patched source.

func (*FakeSources) Update

func (c *FakeSources) Update(ctx context.Context, source *v1alpha1.Source, opts v1.UpdateOptions) (result *v1alpha1.Source, err error)

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

func (*FakeSources) UpdateStatus

func (c *FakeSources) UpdateStatus(ctx context.Context, source *v1alpha1.Source, opts v1.UpdateOptions) (*v1alpha1.Source, error)

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

func (*FakeSources) Watch

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

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

Jump to

Keyboard shortcuts

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