fake

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 9 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 FakeCloudEventsSources

type FakeCloudEventsSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeCloudEventsSources implements CloudEventsSourceInterface

func (*FakeCloudEventsSources) Create

func (c *FakeCloudEventsSources) Create(ctx context.Context, cloudEventsSource *v1alpha1.CloudEventsSource, opts v1.CreateOptions) (result *v1alpha1.CloudEventsSource, err error)

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

func (*FakeCloudEventsSources) Delete

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

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

func (*FakeCloudEventsSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCloudEventsSources) Get

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

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

func (*FakeCloudEventsSources) List

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

func (*FakeCloudEventsSources) Patch

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

Patch applies the patch and returns the patched cloudEventsSource.

func (*FakeCloudEventsSources) Update

func (c *FakeCloudEventsSources) Update(ctx context.Context, cloudEventsSource *v1alpha1.CloudEventsSource, opts v1.UpdateOptions) (result *v1alpha1.CloudEventsSource, err error)

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

func (*FakeCloudEventsSources) UpdateStatus

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

func (*FakeCloudEventsSources) Watch

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

type FakeHTTPPollerSources

type FakeHTTPPollerSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeHTTPPollerSources implements HTTPPollerSourceInterface

func (*FakeHTTPPollerSources) Create

func (c *FakeHTTPPollerSources) Create(ctx context.Context, hTTPPollerSource *v1alpha1.HTTPPollerSource, opts v1.CreateOptions) (result *v1alpha1.HTTPPollerSource, err error)

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

func (*FakeHTTPPollerSources) Delete

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

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

func (*FakeHTTPPollerSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHTTPPollerSources) Get

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

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

func (*FakeHTTPPollerSources) List

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

func (*FakeHTTPPollerSources) Patch

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

Patch applies the patch and returns the patched hTTPPollerSource.

func (*FakeHTTPPollerSources) Update

func (c *FakeHTTPPollerSources) Update(ctx context.Context, hTTPPollerSource *v1alpha1.HTTPPollerSource, opts v1.UpdateOptions) (result *v1alpha1.HTTPPollerSource, err error)

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

func (*FakeHTTPPollerSources) UpdateStatus

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

func (*FakeHTTPPollerSources) Watch

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

type FakeKafkaSources

type FakeKafkaSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeKafkaSources implements KafkaSourceInterface

func (*FakeKafkaSources) Create

func (c *FakeKafkaSources) Create(ctx context.Context, kafkaSource *v1alpha1.KafkaSource, opts v1.CreateOptions) (result *v1alpha1.KafkaSource, err error)

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

func (*FakeKafkaSources) Delete

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

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

func (*FakeKafkaSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKafkaSources) Get

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

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

func (*FakeKafkaSources) List

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

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

func (*FakeKafkaSources) Patch

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

Patch applies the patch and returns the patched kafkaSource.

func (*FakeKafkaSources) Update

func (c *FakeKafkaSources) Update(ctx context.Context, kafkaSource *v1alpha1.KafkaSource, opts v1.UpdateOptions) (result *v1alpha1.KafkaSource, err error)

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

func (*FakeKafkaSources) UpdateStatus

func (c *FakeKafkaSources) UpdateStatus(ctx context.Context, kafkaSource *v1alpha1.KafkaSource, opts v1.UpdateOptions) (*v1alpha1.KafkaSource, error)

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

func (*FakeKafkaSources) Watch

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

type FakeOCIMetricsSources

type FakeOCIMetricsSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeOCIMetricsSources implements OCIMetricsSourceInterface

func (*FakeOCIMetricsSources) Create

func (c *FakeOCIMetricsSources) Create(ctx context.Context, oCIMetricsSource *v1alpha1.OCIMetricsSource, opts v1.CreateOptions) (result *v1alpha1.OCIMetricsSource, err error)

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

func (*FakeOCIMetricsSources) Delete

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

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

func (*FakeOCIMetricsSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeOCIMetricsSources) Get

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

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

func (*FakeOCIMetricsSources) List

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

func (*FakeOCIMetricsSources) Patch

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

Patch applies the patch and returns the patched oCIMetricsSource.

func (*FakeOCIMetricsSources) Update

func (c *FakeOCIMetricsSources) Update(ctx context.Context, oCIMetricsSource *v1alpha1.OCIMetricsSource, opts v1.UpdateOptions) (result *v1alpha1.OCIMetricsSource, err error)

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

func (*FakeOCIMetricsSources) UpdateStatus

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

func (*FakeOCIMetricsSources) Watch

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

type FakeSalesforceSources added in v0.1.14

type FakeSalesforceSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeSalesforceSources implements SalesforceSourceInterface

func (*FakeSalesforceSources) Create added in v0.1.14

func (c *FakeSalesforceSources) Create(ctx context.Context, salesforceSource *v1alpha1.SalesforceSource, opts v1.CreateOptions) (result *v1alpha1.SalesforceSource, err error)

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

func (*FakeSalesforceSources) Delete added in v0.1.14

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

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

func (*FakeSalesforceSources) DeleteCollection added in v0.1.14

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

DeleteCollection deletes a collection of objects.

func (*FakeSalesforceSources) Get added in v0.1.14

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

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

func (*FakeSalesforceSources) List added in v0.1.14

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

func (*FakeSalesforceSources) Patch added in v0.1.14

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

Patch applies the patch and returns the patched salesforceSource.

func (*FakeSalesforceSources) Update added in v0.1.14

func (c *FakeSalesforceSources) Update(ctx context.Context, salesforceSource *v1alpha1.SalesforceSource, opts v1.UpdateOptions) (result *v1alpha1.SalesforceSource, err error)

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

func (*FakeSalesforceSources) UpdateStatus added in v0.1.14

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

func (*FakeSalesforceSources) Watch added in v0.1.14

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

type FakeSourcesV1alpha1

type FakeSourcesV1alpha1 struct {
	*testing.Fake
}

func (*FakeSourcesV1alpha1) CloudEventsSources

func (c *FakeSourcesV1alpha1) CloudEventsSources(namespace string) v1alpha1.CloudEventsSourceInterface

func (*FakeSourcesV1alpha1) HTTPPollerSources

func (c *FakeSourcesV1alpha1) HTTPPollerSources(namespace string) v1alpha1.HTTPPollerSourceInterface

func (*FakeSourcesV1alpha1) KafkaSources

func (c *FakeSourcesV1alpha1) KafkaSources(namespace string) v1alpha1.KafkaSourceInterface

func (*FakeSourcesV1alpha1) OCIMetricsSources

func (c *FakeSourcesV1alpha1) OCIMetricsSources(namespace string) v1alpha1.OCIMetricsSourceInterface

func (*FakeSourcesV1alpha1) RESTClient

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

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

func (*FakeSourcesV1alpha1) SalesforceSources added in v0.1.14

func (c *FakeSourcesV1alpha1) SalesforceSources(namespace string) v1alpha1.SalesforceSourceInterface

func (*FakeSourcesV1alpha1) WebhookSources

func (c *FakeSourcesV1alpha1) WebhookSources(namespace string) v1alpha1.WebhookSourceInterface

type FakeWebhookSources

type FakeWebhookSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeWebhookSources implements WebhookSourceInterface

func (*FakeWebhookSources) Create

func (c *FakeWebhookSources) Create(ctx context.Context, webhookSource *v1alpha1.WebhookSource, opts v1.CreateOptions) (result *v1alpha1.WebhookSource, err error)

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

func (*FakeWebhookSources) Delete

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

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

func (*FakeWebhookSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWebhookSources) Get

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

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

func (*FakeWebhookSources) List

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

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

func (*FakeWebhookSources) Patch

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

Patch applies the patch and returns the patched webhookSource.

func (*FakeWebhookSources) Update

func (c *FakeWebhookSources) Update(ctx context.Context, webhookSource *v1alpha1.WebhookSource, opts v1.UpdateOptions) (result *v1alpha1.WebhookSource, err error)

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

func (*FakeWebhookSources) UpdateStatus

func (c *FakeWebhookSources) UpdateStatus(ctx context.Context, webhookSource *v1alpha1.WebhookSource, opts v1.UpdateOptions) (*v1alpha1.WebhookSource, error)

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

func (*FakeWebhookSources) Watch

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

Jump to

Keyboard shortcuts

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