fake

package
v0.0.0-...-1aaef2a Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0, BSD-3-Clause, CC-BY-3.0, + 1 more 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 FakeResourceV1alpha1

type FakeResourceV1alpha1 struct {
	*testing.Fake
}

func (*FakeResourceV1alpha1) RESTClient

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

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

func (*FakeResourceV1alpha1) SFClusters

func (c *FakeResourceV1alpha1) SFClusters(namespace string) v1alpha1.SFClusterInterface

type FakeSFClusters

type FakeSFClusters struct {
	Fake *FakeResourceV1alpha1
	// contains filtered or unexported fields
}

FakeSFClusters implements SFClusterInterface

func (*FakeSFClusters) Create

func (c *FakeSFClusters) Create(ctx context.Context, sFCluster *v1alpha1.SFCluster, opts v1.CreateOptions) (result *v1alpha1.SFCluster, err error)

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

func (*FakeSFClusters) Delete

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

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

func (*FakeSFClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSFClusters) Get

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

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

func (*FakeSFClusters) List

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

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

func (*FakeSFClusters) Patch

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

Patch applies the patch and returns the patched sFCluster.

func (*FakeSFClusters) Update

func (c *FakeSFClusters) Update(ctx context.Context, sFCluster *v1alpha1.SFCluster, opts v1.UpdateOptions) (result *v1alpha1.SFCluster, err error)

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

func (*FakeSFClusters) UpdateStatus

func (c *FakeSFClusters) UpdateStatus(ctx context.Context, sFCluster *v1alpha1.SFCluster, opts v1.UpdateOptions) (*v1alpha1.SFCluster, error)

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

func (*FakeSFClusters) Watch

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

Jump to

Keyboard shortcuts

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