fake

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 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 FakeHelmChartConfigs

type FakeHelmChartConfigs struct {
	Fake *FakeHelmV1
	// contains filtered or unexported fields
}

FakeHelmChartConfigs implements HelmChartConfigInterface

func (*FakeHelmChartConfigs) Create

func (c *FakeHelmChartConfigs) Create(ctx context.Context, helmChartConfig *v1.HelmChartConfig, opts metav1.CreateOptions) (result *v1.HelmChartConfig, err error)

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

func (*FakeHelmChartConfigs) Delete

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

func (*FakeHelmChartConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHelmChartConfigs) Get

func (c *FakeHelmChartConfigs) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.HelmChartConfig, err error)

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

func (*FakeHelmChartConfigs) List

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

func (*FakeHelmChartConfigs) Patch

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

Patch applies the patch and returns the patched helmChartConfig.

func (*FakeHelmChartConfigs) Update

func (c *FakeHelmChartConfigs) Update(ctx context.Context, helmChartConfig *v1.HelmChartConfig, opts metav1.UpdateOptions) (result *v1.HelmChartConfig, err error)

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

func (*FakeHelmChartConfigs) Watch

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

type FakeHelmCharts

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

FakeHelmCharts implements HelmChartInterface

func (*FakeHelmCharts) Create

func (c *FakeHelmCharts) Create(ctx context.Context, helmChart *v1.HelmChart, opts metav1.CreateOptions) (result *v1.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 metav1.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 metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHelmCharts) Get

func (c *FakeHelmCharts) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.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 metav1.ListOptions) (result *v1.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 metav1.PatchOptions, subresources ...string) (result *v1.HelmChart, err error)

Patch applies the patch and returns the patched helmChart.

func (*FakeHelmCharts) Update

func (c *FakeHelmCharts) Update(ctx context.Context, helmChart *v1.HelmChart, opts metav1.UpdateOptions) (result *v1.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 *v1.HelmChart, opts metav1.UpdateOptions) (*v1.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 FakeHelmV1

type FakeHelmV1 struct {
	*testing.Fake
}

func (*FakeHelmV1) HelmChartConfigs

func (c *FakeHelmV1) HelmChartConfigs(namespace string) v1.HelmChartConfigInterface

func (*FakeHelmV1) HelmCharts

func (c *FakeHelmV1) HelmCharts(namespace string) v1.HelmChartInterface

func (*FakeHelmV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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