fake

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 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 FakeCassandraDatacenters

type FakeCassandraDatacenters struct {
	Fake *FakeCassandraV1beta1
	// contains filtered or unexported fields
}

FakeCassandraDatacenters implements CassandraDatacenterInterface

func (*FakeCassandraDatacenters) Create

func (c *FakeCassandraDatacenters) Create(cassandraDatacenter *v1beta1.CassandraDatacenter) (result *v1beta1.CassandraDatacenter, err error)

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

func (*FakeCassandraDatacenters) Delete

func (c *FakeCassandraDatacenters) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeCassandraDatacenters) DeleteCollection

func (c *FakeCassandraDatacenters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeCassandraDatacenters) Get

func (c *FakeCassandraDatacenters) Get(name string, options v1.GetOptions) (result *v1beta1.CassandraDatacenter, err error)

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

func (*FakeCassandraDatacenters) List

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

func (*FakeCassandraDatacenters) Patch

func (c *FakeCassandraDatacenters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.CassandraDatacenter, err error)

Patch applies the patch and returns the patched cassandraDatacenter.

func (*FakeCassandraDatacenters) Update

func (c *FakeCassandraDatacenters) Update(cassandraDatacenter *v1beta1.CassandraDatacenter) (result *v1beta1.CassandraDatacenter, err error)

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

func (*FakeCassandraDatacenters) UpdateStatus

func (c *FakeCassandraDatacenters) UpdateStatus(cassandraDatacenter *v1beta1.CassandraDatacenter) (*v1beta1.CassandraDatacenter, error)

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

func (*FakeCassandraDatacenters) Watch

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

type FakeCassandraV1beta1

type FakeCassandraV1beta1 struct {
	*testing.Fake
}

func (*FakeCassandraV1beta1) CassandraDatacenters

func (c *FakeCassandraV1beta1) CassandraDatacenters(namespace string) v1beta1.CassandraDatacenterInterface

func (*FakeCassandraV1beta1) RESTClient

func (c *FakeCassandraV1beta1) 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