fake

package
v0.0.0-...-6b6aee0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: GPL-3.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 FakeHelmReleases

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

FakeHelmReleases implements HelmReleaseInterface

func (*FakeHelmReleases) Create

func (c *FakeHelmReleases) Create(ctx context.Context, helmRelease *helmfluxcdiov1.HelmRelease, opts v1.CreateOptions) (result *helmfluxcdiov1.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 *helmfluxcdiov1.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

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 *helmfluxcdiov1.HelmRelease, err error)

Patch applies the patch and returns the patched helmRelease.

func (*FakeHelmReleases) Update

func (c *FakeHelmReleases) Update(ctx context.Context, helmRelease *helmfluxcdiov1.HelmRelease, opts v1.UpdateOptions) (result *helmfluxcdiov1.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

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 FakeHelmV1

type FakeHelmV1 struct {
	*testing.Fake
}

func (*FakeHelmV1) HelmReleases

func (c *FakeHelmV1) HelmReleases(namespace string) v1.HelmReleaseInterface

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