fake

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 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 FakeScyllaClusters

type FakeScyllaClusters struct {
	Fake *FakeScyllaV1
	// contains filtered or unexported fields
}

FakeScyllaClusters implements ScyllaClusterInterface

func (*FakeScyllaClusters) Create

func (c *FakeScyllaClusters) Create(ctx context.Context, scyllaCluster *scyllav1.ScyllaCluster, opts v1.CreateOptions) (result *scyllav1.ScyllaCluster, err error)

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

func (*FakeScyllaClusters) Delete

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

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

func (*FakeScyllaClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeScyllaClusters) Get

func (c *FakeScyllaClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *scyllav1.ScyllaCluster, err error)

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

func (*FakeScyllaClusters) List

func (c *FakeScyllaClusters) List(ctx context.Context, opts v1.ListOptions) (result *scyllav1.ScyllaClusterList, err error)

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

func (*FakeScyllaClusters) Patch

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

Patch applies the patch and returns the patched scyllaCluster.

func (*FakeScyllaClusters) Update

func (c *FakeScyllaClusters) Update(ctx context.Context, scyllaCluster *scyllav1.ScyllaCluster, opts v1.UpdateOptions) (result *scyllav1.ScyllaCluster, err error)

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

func (*FakeScyllaClusters) UpdateStatus

func (c *FakeScyllaClusters) UpdateStatus(ctx context.Context, scyllaCluster *scyllav1.ScyllaCluster, opts v1.UpdateOptions) (*scyllav1.ScyllaCluster, error)

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

func (*FakeScyllaClusters) Watch

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

type FakeScyllaV1

type FakeScyllaV1 struct {
	*testing.Fake
}

func (*FakeScyllaV1) RESTClient

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

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

func (*FakeScyllaV1) ScyllaClusters

func (c *FakeScyllaV1) ScyllaClusters(namespace string) v1.ScyllaClusterInterface

Jump to

Keyboard shortcuts

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