fake

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 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 FakeAppsV1alpha1

type FakeAppsV1alpha1 struct {
	*testing.Fake
}

func (*FakeAppsV1alpha1) Bases added in v0.3.0

func (c *FakeAppsV1alpha1) Bases(namespace string) v1alpha1.BaseInterface

func (*FakeAppsV1alpha1) Descriptions

func (c *FakeAppsV1alpha1) Descriptions(namespace string) v1alpha1.DescriptionInterface

func (*FakeAppsV1alpha1) FeedInventories added in v0.9.0

func (c *FakeAppsV1alpha1) FeedInventories(namespace string) v1alpha1.FeedInventoryInterface

func (*FakeAppsV1alpha1) Globalizations added in v0.3.0

func (c *FakeAppsV1alpha1) Globalizations() v1alpha1.GlobalizationInterface

func (*FakeAppsV1alpha1) HelmCharts

func (c *FakeAppsV1alpha1) HelmCharts(namespace string) v1alpha1.HelmChartInterface

func (*FakeAppsV1alpha1) HelmReleases

func (c *FakeAppsV1alpha1) HelmReleases(namespace string) v1alpha1.HelmReleaseInterface

func (*FakeAppsV1alpha1) Localizations added in v0.3.0

func (c *FakeAppsV1alpha1) Localizations(namespace string) v1alpha1.LocalizationInterface

func (*FakeAppsV1alpha1) Manifests added in v0.3.0

func (c *FakeAppsV1alpha1) Manifests(namespace string) v1alpha1.ManifestInterface

func (*FakeAppsV1alpha1) RESTClient

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

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

func (*FakeAppsV1alpha1) Subscriptions

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

type FakeBases added in v0.3.0

type FakeBases struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeBases implements BaseInterface

func (*FakeBases) Create added in v0.3.0

func (c *FakeBases) Create(ctx context.Context, base *v1alpha1.Base, opts v1.CreateOptions) (result *v1alpha1.Base, err error)

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

func (*FakeBases) Delete added in v0.3.0

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

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

func (*FakeBases) DeleteCollection added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeBases) Get added in v0.3.0

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

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

func (*FakeBases) List added in v0.3.0

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

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

func (*FakeBases) Patch added in v0.3.0

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

Patch applies the patch and returns the patched base.

func (*FakeBases) Update added in v0.3.0

func (c *FakeBases) Update(ctx context.Context, base *v1alpha1.Base, opts v1.UpdateOptions) (result *v1alpha1.Base, err error)

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

func (*FakeBases) Watch added in v0.3.0

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

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

type FakeDescriptions

type FakeDescriptions struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeDescriptions implements DescriptionInterface

func (*FakeDescriptions) Create

func (c *FakeDescriptions) Create(ctx context.Context, description *v1alpha1.Description, opts v1.CreateOptions) (result *v1alpha1.Description, err error)

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

func (*FakeDescriptions) Delete

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

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

func (*FakeDescriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDescriptions) Get

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

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

func (*FakeDescriptions) List

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

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

func (*FakeDescriptions) Patch

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

Patch applies the patch and returns the patched description.

func (*FakeDescriptions) Update

func (c *FakeDescriptions) Update(ctx context.Context, description *v1alpha1.Description, opts v1.UpdateOptions) (result *v1alpha1.Description, err error)

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

func (*FakeDescriptions) UpdateStatus

func (c *FakeDescriptions) UpdateStatus(ctx context.Context, description *v1alpha1.Description, opts v1.UpdateOptions) (*v1alpha1.Description, error)

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

func (*FakeDescriptions) Watch

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

type FakeFeedInventories added in v0.9.0

type FakeFeedInventories struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeFeedInventories implements FeedInventoryInterface

func (*FakeFeedInventories) Create added in v0.9.0

func (c *FakeFeedInventories) Create(ctx context.Context, feedInventory *v1alpha1.FeedInventory, opts v1.CreateOptions) (result *v1alpha1.FeedInventory, err error)

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

func (*FakeFeedInventories) Delete added in v0.9.0

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

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

func (*FakeFeedInventories) DeleteCollection added in v0.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeFeedInventories) Get added in v0.9.0

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

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

func (*FakeFeedInventories) List added in v0.9.0

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

func (*FakeFeedInventories) Patch added in v0.9.0

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

Patch applies the patch and returns the patched feedInventory.

func (*FakeFeedInventories) Update added in v0.9.0

func (c *FakeFeedInventories) Update(ctx context.Context, feedInventory *v1alpha1.FeedInventory, opts v1.UpdateOptions) (result *v1alpha1.FeedInventory, err error)

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

func (*FakeFeedInventories) Watch added in v0.9.0

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

type FakeGlobalizations added in v0.3.0

type FakeGlobalizations struct {
	Fake *FakeAppsV1alpha1
}

FakeGlobalizations implements GlobalizationInterface

func (*FakeGlobalizations) Create added in v0.3.0

func (c *FakeGlobalizations) Create(ctx context.Context, globalization *v1alpha1.Globalization, opts v1.CreateOptions) (result *v1alpha1.Globalization, err error)

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

func (*FakeGlobalizations) Delete added in v0.3.0

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

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

func (*FakeGlobalizations) DeleteCollection added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalizations) Get added in v0.3.0

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

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

func (*FakeGlobalizations) List added in v0.3.0

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

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

func (*FakeGlobalizations) Patch added in v0.3.0

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

Patch applies the patch and returns the patched globalization.

func (*FakeGlobalizations) Update added in v0.3.0

func (c *FakeGlobalizations) Update(ctx context.Context, globalization *v1alpha1.Globalization, opts v1.UpdateOptions) (result *v1alpha1.Globalization, err error)

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

func (*FakeGlobalizations) Watch added in v0.3.0

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

type FakeHelmCharts

type FakeHelmCharts struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeHelmCharts implements HelmChartInterface

func (*FakeHelmCharts) Create

func (c *FakeHelmCharts) Create(ctx context.Context, helmChart *v1alpha1.HelmChart, opts v1.CreateOptions) (result *v1alpha1.HelmChart, err error)

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

func (*FakeHelmCharts) Delete

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

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

func (*FakeHelmCharts) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHelmCharts) Get

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

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

func (*FakeHelmCharts) List

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

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

func (*FakeHelmCharts) Patch

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

Patch applies the patch and returns the patched helmChart.

func (*FakeHelmCharts) Update

func (c *FakeHelmCharts) Update(ctx context.Context, helmChart *v1alpha1.HelmChart, opts v1.UpdateOptions) (result *v1alpha1.HelmChart, err error)

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

func (*FakeHelmCharts) UpdateStatus

func (c *FakeHelmCharts) UpdateStatus(ctx context.Context, helmChart *v1alpha1.HelmChart, opts v1.UpdateOptions) (*v1alpha1.HelmChart, error)

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

func (*FakeHelmCharts) Watch

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

type FakeHelmReleases

type FakeHelmReleases struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeHelmReleases implements HelmReleaseInterface

func (*FakeHelmReleases) Create

func (c *FakeHelmReleases) Create(ctx context.Context, helmRelease *v1alpha1.HelmRelease, opts v1.CreateOptions) (result *v1alpha1.HelmRelease, err error)

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

func (*FakeHelmReleases) Delete

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

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

func (*FakeHelmReleases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHelmReleases) Get

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

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

func (*FakeHelmReleases) List

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

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

func (*FakeHelmReleases) Patch

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

Patch applies the patch and returns the patched helmRelease.

func (*FakeHelmReleases) Update

func (c *FakeHelmReleases) Update(ctx context.Context, helmRelease *v1alpha1.HelmRelease, opts v1.UpdateOptions) (result *v1alpha1.HelmRelease, err error)

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

func (*FakeHelmReleases) UpdateStatus

func (c *FakeHelmReleases) UpdateStatus(ctx context.Context, helmRelease *v1alpha1.HelmRelease, opts v1.UpdateOptions) (*v1alpha1.HelmRelease, error)

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

func (*FakeHelmReleases) Watch

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

type FakeLocalizations added in v0.3.0

type FakeLocalizations struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeLocalizations implements LocalizationInterface

func (*FakeLocalizations) Create added in v0.3.0

func (c *FakeLocalizations) Create(ctx context.Context, localization *v1alpha1.Localization, opts v1.CreateOptions) (result *v1alpha1.Localization, err error)

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

func (*FakeLocalizations) Delete added in v0.3.0

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

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

func (*FakeLocalizations) DeleteCollection added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeLocalizations) Get added in v0.3.0

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

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

func (*FakeLocalizations) List added in v0.3.0

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

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

func (*FakeLocalizations) Patch added in v0.3.0

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

Patch applies the patch and returns the patched localization.

func (*FakeLocalizations) Update added in v0.3.0

func (c *FakeLocalizations) Update(ctx context.Context, localization *v1alpha1.Localization, opts v1.UpdateOptions) (result *v1alpha1.Localization, err error)

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

func (*FakeLocalizations) Watch added in v0.3.0

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

type FakeManifests added in v0.3.0

type FakeManifests struct {
	Fake *FakeAppsV1alpha1
	// contains filtered or unexported fields
}

FakeManifests implements ManifestInterface

func (*FakeManifests) Create added in v0.3.0

func (c *FakeManifests) Create(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.CreateOptions) (result *v1alpha1.Manifest, err error)

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

func (*FakeManifests) Delete added in v0.3.0

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

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

func (*FakeManifests) DeleteCollection added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeManifests) Get added in v0.3.0

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

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

func (*FakeManifests) List added in v0.3.0

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

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

func (*FakeManifests) Patch added in v0.3.0

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

Patch applies the patch and returns the patched manifest.

func (*FakeManifests) Update added in v0.3.0

func (c *FakeManifests) Update(ctx context.Context, manifest *v1alpha1.Manifest, opts v1.UpdateOptions) (result *v1alpha1.Manifest, err error)

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

func (*FakeManifests) Watch added in v0.3.0

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

type FakeSubscriptions

type FakeSubscriptions struct {
	Fake *FakeAppsV1alpha1
	// 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