fake

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeCatalogSources

type FakeCatalogSources struct {
	Fake *FakeOperatorsV1alpha1
	// contains filtered or unexported fields
}

FakeCatalogSources implements CatalogSourceInterface

func (*FakeCatalogSources) Create

func (c *FakeCatalogSources) Create(ctx context.Context, catalogSource *v1alpha1.CatalogSource, opts v1.CreateOptions) (result *v1alpha1.CatalogSource, err error)

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

func (*FakeCatalogSources) Delete

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

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

func (*FakeCatalogSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCatalogSources) Get

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

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

func (*FakeCatalogSources) List

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

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

func (*FakeCatalogSources) Patch

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

Patch applies the patch and returns the patched catalogSource.

func (*FakeCatalogSources) Update

func (c *FakeCatalogSources) Update(ctx context.Context, catalogSource *v1alpha1.CatalogSource, opts v1.UpdateOptions) (result *v1alpha1.CatalogSource, err error)

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

func (*FakeCatalogSources) UpdateStatus

func (c *FakeCatalogSources) UpdateStatus(ctx context.Context, catalogSource *v1alpha1.CatalogSource, opts v1.UpdateOptions) (*v1alpha1.CatalogSource, error)

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

func (*FakeCatalogSources) Watch

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

type FakeClusterServiceVersions

type FakeClusterServiceVersions struct {
	Fake *FakeOperatorsV1alpha1
	// contains filtered or unexported fields
}

FakeClusterServiceVersions implements ClusterServiceVersionInterface

func (*FakeClusterServiceVersions) Create

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

func (*FakeClusterServiceVersions) Delete

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

func (*FakeClusterServiceVersions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterServiceVersions) Get

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

func (*FakeClusterServiceVersions) List

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

func (*FakeClusterServiceVersions) Patch

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

Patch applies the patch and returns the patched clusterServiceVersion.

func (*FakeClusterServiceVersions) Update

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

func (*FakeClusterServiceVersions) UpdateStatus

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

func (*FakeClusterServiceVersions) Watch

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

type FakeInstallPlans

type FakeInstallPlans struct {
	Fake *FakeOperatorsV1alpha1
	// contains filtered or unexported fields
}

FakeInstallPlans implements InstallPlanInterface

func (*FakeInstallPlans) Create

func (c *FakeInstallPlans) Create(ctx context.Context, installPlan *v1alpha1.InstallPlan, opts v1.CreateOptions) (result *v1alpha1.InstallPlan, err error)

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

func (*FakeInstallPlans) Delete

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

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

func (*FakeInstallPlans) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInstallPlans) Get

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

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

func (*FakeInstallPlans) List

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

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

func (*FakeInstallPlans) Patch

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

Patch applies the patch and returns the patched installPlan.

func (*FakeInstallPlans) Update

func (c *FakeInstallPlans) Update(ctx context.Context, installPlan *v1alpha1.InstallPlan, opts v1.UpdateOptions) (result *v1alpha1.InstallPlan, err error)

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

func (*FakeInstallPlans) UpdateStatus

func (c *FakeInstallPlans) UpdateStatus(ctx context.Context, installPlan *v1alpha1.InstallPlan, opts v1.UpdateOptions) (*v1alpha1.InstallPlan, error)

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

func (*FakeInstallPlans) Watch

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

type FakeOperatorsV1alpha1

type FakeOperatorsV1alpha1 struct {
	*testing.Fake
}

func (*FakeOperatorsV1alpha1) CatalogSources

func (c *FakeOperatorsV1alpha1) CatalogSources(namespace string) v1alpha1.CatalogSourceInterface

func (*FakeOperatorsV1alpha1) ClusterServiceVersions

func (c *FakeOperatorsV1alpha1) ClusterServiceVersions(namespace string) v1alpha1.ClusterServiceVersionInterface

func (*FakeOperatorsV1alpha1) InstallPlans

func (c *FakeOperatorsV1alpha1) InstallPlans(namespace string) v1alpha1.InstallPlanInterface

func (*FakeOperatorsV1alpha1) RESTClient

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

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

func (*FakeOperatorsV1alpha1) Subscriptions

func (c *FakeOperatorsV1alpha1) Subscriptions(namespace string) v1alpha1.SubscriptionInterface

type FakeSubscriptions

type FakeSubscriptions struct {
	Fake *FakeOperatorsV1alpha1
	// contains filtered or unexported fields
}

FakeSubscriptions implements SubscriptionInterface

func (*FakeSubscriptions) Create

func (c *FakeSubscriptions) Create(ctx context.Context, subscription *v1alpha1.Subscription, opts v1.CreateOptions) (result *v1alpha1.Subscription, err error)

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

func (*FakeSubscriptions) Delete

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

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

func (*FakeSubscriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSubscriptions) Get

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

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

func (*FakeSubscriptions) List

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

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

func (*FakeSubscriptions) Patch

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

Patch applies the patch and returns the patched subscription.

func (*FakeSubscriptions) Update

func (c *FakeSubscriptions) Update(ctx context.Context, subscription *v1alpha1.Subscription, opts v1.UpdateOptions) (result *v1alpha1.Subscription, err error)

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

func (*FakeSubscriptions) UpdateStatus

func (c *FakeSubscriptions) UpdateStatus(ctx context.Context, subscription *v1alpha1.Subscription, opts v1.UpdateOptions) (*v1alpha1.Subscription, error)

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

func (*FakeSubscriptions) Watch

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

Jump to

Keyboard shortcuts

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