fake

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 14 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 FakeBuilds

type FakeBuilds struct {
	Fake *FakeCamelV1
	// contains filtered or unexported fields
}

FakeBuilds implements BuildInterface

func (*FakeBuilds) Apply added in v1.12.0

Apply takes the given apply declarative configuration, applies it and returns the applied build.

func (*FakeBuilds) ApplyStatus added in v1.12.0

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

func (*FakeBuilds) Create

func (c *FakeBuilds) Create(ctx context.Context, build *camelv1.Build, opts v1.CreateOptions) (result *camelv1.Build, err error)

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

func (*FakeBuilds) Delete

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

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

func (*FakeBuilds) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBuilds) Get

func (c *FakeBuilds) Get(ctx context.Context, name string, options v1.GetOptions) (result *camelv1.Build, err error)

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

func (*FakeBuilds) List

func (c *FakeBuilds) List(ctx context.Context, opts v1.ListOptions) (result *camelv1.BuildList, err error)

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

func (*FakeBuilds) Patch

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

Patch applies the patch and returns the patched build.

func (*FakeBuilds) Update

func (c *FakeBuilds) Update(ctx context.Context, build *camelv1.Build, opts v1.UpdateOptions) (result *camelv1.Build, err error)

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

func (*FakeBuilds) UpdateStatus

func (c *FakeBuilds) UpdateStatus(ctx context.Context, build *camelv1.Build, opts v1.UpdateOptions) (*camelv1.Build, error)

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

func (*FakeBuilds) Watch

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

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

type FakeCamelCatalogs

type FakeCamelCatalogs struct {
	Fake *FakeCamelV1
	// contains filtered or unexported fields
}

FakeCamelCatalogs implements CamelCatalogInterface

func (*FakeCamelCatalogs) Apply added in v1.12.0

Apply takes the given apply declarative configuration, applies it and returns the applied camelCatalog.

func (*FakeCamelCatalogs) ApplyStatus added in v1.12.0

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

func (*FakeCamelCatalogs) Create

func (c *FakeCamelCatalogs) Create(ctx context.Context, camelCatalog *camelv1.CamelCatalog, opts v1.CreateOptions) (result *camelv1.CamelCatalog, err error)

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

func (*FakeCamelCatalogs) Delete

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

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

func (*FakeCamelCatalogs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCamelCatalogs) Get

func (c *FakeCamelCatalogs) Get(ctx context.Context, name string, options v1.GetOptions) (result *camelv1.CamelCatalog, err error)

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

func (*FakeCamelCatalogs) List

func (c *FakeCamelCatalogs) List(ctx context.Context, opts v1.ListOptions) (result *camelv1.CamelCatalogList, err error)

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

func (*FakeCamelCatalogs) Patch

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

Patch applies the patch and returns the patched camelCatalog.

func (*FakeCamelCatalogs) Update

func (c *FakeCamelCatalogs) Update(ctx context.Context, camelCatalog *camelv1.CamelCatalog, opts v1.UpdateOptions) (result *camelv1.CamelCatalog, err error)

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

func (*FakeCamelCatalogs) UpdateStatus

func (c *FakeCamelCatalogs) UpdateStatus(ctx context.Context, camelCatalog *camelv1.CamelCatalog, opts v1.UpdateOptions) (*camelv1.CamelCatalog, error)

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

func (*FakeCamelCatalogs) Watch

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

type FakeCamelV1

type FakeCamelV1 struct {
	*testing.Fake
}

func (*FakeCamelV1) Builds

func (c *FakeCamelV1) Builds(namespace string) v1.BuildInterface

func (*FakeCamelV1) CamelCatalogs

func (c *FakeCamelV1) CamelCatalogs(namespace string) v1.CamelCatalogInterface

func (*FakeCamelV1) IntegrationKits

func (c *FakeCamelV1) IntegrationKits(namespace string) v1.IntegrationKitInterface

func (*FakeCamelV1) IntegrationPlatforms

func (c *FakeCamelV1) IntegrationPlatforms(namespace string) v1.IntegrationPlatformInterface

func (*FakeCamelV1) Integrations

func (c *FakeCamelV1) Integrations(namespace string) v1.IntegrationInterface

func (*FakeCamelV1) RESTClient

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

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

type FakeIntegrationKits

type FakeIntegrationKits struct {
	Fake *FakeCamelV1
	// contains filtered or unexported fields
}

FakeIntegrationKits implements IntegrationKitInterface

func (*FakeIntegrationKits) Apply added in v1.12.0

Apply takes the given apply declarative configuration, applies it and returns the applied integrationKit.

func (*FakeIntegrationKits) ApplyStatus added in v1.12.0

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

func (*FakeIntegrationKits) Create

func (c *FakeIntegrationKits) Create(ctx context.Context, integrationKit *camelv1.IntegrationKit, opts v1.CreateOptions) (result *camelv1.IntegrationKit, err error)

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

func (*FakeIntegrationKits) Delete

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

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

func (*FakeIntegrationKits) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIntegrationKits) Get

func (c *FakeIntegrationKits) Get(ctx context.Context, name string, options v1.GetOptions) (result *camelv1.IntegrationKit, err error)

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

func (*FakeIntegrationKits) List

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

func (*FakeIntegrationKits) Patch

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

Patch applies the patch and returns the patched integrationKit.

func (*FakeIntegrationKits) Update

func (c *FakeIntegrationKits) Update(ctx context.Context, integrationKit *camelv1.IntegrationKit, opts v1.UpdateOptions) (result *camelv1.IntegrationKit, err error)

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

func (*FakeIntegrationKits) UpdateStatus

func (c *FakeIntegrationKits) UpdateStatus(ctx context.Context, integrationKit *camelv1.IntegrationKit, opts v1.UpdateOptions) (*camelv1.IntegrationKit, error)

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

func (*FakeIntegrationKits) Watch

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

type FakeIntegrationPlatforms

type FakeIntegrationPlatforms struct {
	Fake *FakeCamelV1
	// contains filtered or unexported fields
}

FakeIntegrationPlatforms implements IntegrationPlatformInterface

func (*FakeIntegrationPlatforms) Apply added in v1.12.0

Apply takes the given apply declarative configuration, applies it and returns the applied integrationPlatform.

func (*FakeIntegrationPlatforms) ApplyStatus added in v1.12.0

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

func (*FakeIntegrationPlatforms) Create

func (c *FakeIntegrationPlatforms) Create(ctx context.Context, integrationPlatform *camelv1.IntegrationPlatform, opts v1.CreateOptions) (result *camelv1.IntegrationPlatform, err error)

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

func (*FakeIntegrationPlatforms) Delete

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

func (*FakeIntegrationPlatforms) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIntegrationPlatforms) Get

func (c *FakeIntegrationPlatforms) Get(ctx context.Context, name string, options v1.GetOptions) (result *camelv1.IntegrationPlatform, err error)

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

func (*FakeIntegrationPlatforms) List

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

func (*FakeIntegrationPlatforms) Patch

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

Patch applies the patch and returns the patched integrationPlatform.

func (*FakeIntegrationPlatforms) Update

func (c *FakeIntegrationPlatforms) Update(ctx context.Context, integrationPlatform *camelv1.IntegrationPlatform, opts v1.UpdateOptions) (result *camelv1.IntegrationPlatform, err error)

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

func (*FakeIntegrationPlatforms) UpdateStatus

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

func (*FakeIntegrationPlatforms) Watch

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

type FakeIntegrations

type FakeIntegrations struct {
	Fake *FakeCamelV1
	// contains filtered or unexported fields
}

FakeIntegrations implements IntegrationInterface

func (*FakeIntegrations) Apply added in v1.12.0

Apply takes the given apply declarative configuration, applies it and returns the applied integration.

func (*FakeIntegrations) ApplyStatus added in v1.12.0

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

func (*FakeIntegrations) Create

func (c *FakeIntegrations) Create(ctx context.Context, integration *camelv1.Integration, opts v1.CreateOptions) (result *camelv1.Integration, err error)

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

func (*FakeIntegrations) Delete

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

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

func (*FakeIntegrations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeIntegrations) Get

func (c *FakeIntegrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *camelv1.Integration, err error)

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

func (*FakeIntegrations) GetScale added in v1.4.0

func (c *FakeIntegrations) GetScale(ctx context.Context, integrationName string, options v1.GetOptions) (result *autoscalingv1.Scale, err error)

GetScale takes name of the integration, and returns the corresponding scale object, and an error if there is any.

func (*FakeIntegrations) List

func (c *FakeIntegrations) List(ctx context.Context, opts v1.ListOptions) (result *camelv1.IntegrationList, err error)

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

func (*FakeIntegrations) Patch

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

Patch applies the patch and returns the patched integration.

func (*FakeIntegrations) Update

func (c *FakeIntegrations) Update(ctx context.Context, integration *camelv1.Integration, opts v1.UpdateOptions) (result *camelv1.Integration, err error)

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

func (*FakeIntegrations) UpdateScale added in v1.4.0

func (c *FakeIntegrations) UpdateScale(ctx context.Context, integrationName string, scale *autoscalingv1.Scale, opts v1.UpdateOptions) (result *autoscalingv1.Scale, err error)

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

func (*FakeIntegrations) UpdateStatus

func (c *FakeIntegrations) UpdateStatus(ctx context.Context, integration *camelv1.Integration, opts v1.UpdateOptions) (*camelv1.Integration, error)

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

func (*FakeIntegrations) Watch

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

Jump to

Keyboard shortcuts

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