fake

package
v0.0.0-...-87ef7df Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: Apache-2.0 Imports: 9 Imported by: 2

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 FakeCrV1

type FakeCrV1 struct {
	*testing.Fake
}

func (*FakeCrV1) MySQLBackupInstances

func (c *FakeCrV1) MySQLBackupInstances(namespace string) v1.MySQLBackupInstanceInterface

func (*FakeCrV1) MySQLBackupSchedules

func (c *FakeCrV1) MySQLBackupSchedules(namespace string) v1.MySQLBackupScheduleInterface

func (*FakeCrV1) MySQLClusters

func (c *FakeCrV1) MySQLClusters(namespace string) v1.MySQLClusterInterface

func (*FakeCrV1) RESTClient

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

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

type FakeMySQLBackupInstances

type FakeMySQLBackupInstances struct {
	Fake *FakeCrV1
	// contains filtered or unexported fields
}

FakeMySQLBackupInstances implements MySQLBackupInstanceInterface

func (*FakeMySQLBackupInstances) Create

func (c *FakeMySQLBackupInstances) Create(mySQLBackupInstance *cr_v1.MySQLBackupInstance) (result *cr_v1.MySQLBackupInstance, err error)

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

func (*FakeMySQLBackupInstances) Delete

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

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

func (*FakeMySQLBackupInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMySQLBackupInstances) Get

func (c *FakeMySQLBackupInstances) Get(name string, options v1.GetOptions) (result *cr_v1.MySQLBackupInstance, err error)

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

func (*FakeMySQLBackupInstances) List

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

func (*FakeMySQLBackupInstances) Patch

func (c *FakeMySQLBackupInstances) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cr_v1.MySQLBackupInstance, err error)

Patch applies the patch and returns the patched mySQLBackupInstance.

func (*FakeMySQLBackupInstances) Update

func (c *FakeMySQLBackupInstances) Update(mySQLBackupInstance *cr_v1.MySQLBackupInstance) (result *cr_v1.MySQLBackupInstance, err error)

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

func (*FakeMySQLBackupInstances) UpdateStatus

func (c *FakeMySQLBackupInstances) UpdateStatus(mySQLBackupInstance *cr_v1.MySQLBackupInstance) (*cr_v1.MySQLBackupInstance, error)

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

func (*FakeMySQLBackupInstances) Watch

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

type FakeMySQLBackupSchedules

type FakeMySQLBackupSchedules struct {
	Fake *FakeCrV1
	// contains filtered or unexported fields
}

FakeMySQLBackupSchedules implements MySQLBackupScheduleInterface

func (*FakeMySQLBackupSchedules) Create

func (c *FakeMySQLBackupSchedules) Create(mySQLBackupSchedule *cr_v1.MySQLBackupSchedule) (result *cr_v1.MySQLBackupSchedule, err error)

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

func (*FakeMySQLBackupSchedules) Delete

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

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

func (*FakeMySQLBackupSchedules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMySQLBackupSchedules) Get

func (c *FakeMySQLBackupSchedules) Get(name string, options v1.GetOptions) (result *cr_v1.MySQLBackupSchedule, err error)

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

func (*FakeMySQLBackupSchedules) List

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

func (*FakeMySQLBackupSchedules) Patch

func (c *FakeMySQLBackupSchedules) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cr_v1.MySQLBackupSchedule, err error)

Patch applies the patch and returns the patched mySQLBackupSchedule.

func (*FakeMySQLBackupSchedules) Update

func (c *FakeMySQLBackupSchedules) Update(mySQLBackupSchedule *cr_v1.MySQLBackupSchedule) (result *cr_v1.MySQLBackupSchedule, err error)

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

func (*FakeMySQLBackupSchedules) Watch

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

type FakeMySQLClusters

type FakeMySQLClusters struct {
	Fake *FakeCrV1
	// contains filtered or unexported fields
}

FakeMySQLClusters implements MySQLClusterInterface

func (*FakeMySQLClusters) Create

func (c *FakeMySQLClusters) Create(mySQLCluster *cr_v1.MySQLCluster) (result *cr_v1.MySQLCluster, err error)

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

func (*FakeMySQLClusters) Delete

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

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

func (*FakeMySQLClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMySQLClusters) Get

func (c *FakeMySQLClusters) Get(name string, options v1.GetOptions) (result *cr_v1.MySQLCluster, err error)

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

func (*FakeMySQLClusters) List

func (c *FakeMySQLClusters) List(opts v1.ListOptions) (result *cr_v1.MySQLClusterList, err error)

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

func (*FakeMySQLClusters) Patch

func (c *FakeMySQLClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *cr_v1.MySQLCluster, err error)

Patch applies the patch and returns the patched mySQLCluster.

func (*FakeMySQLClusters) Update

func (c *FakeMySQLClusters) Update(mySQLCluster *cr_v1.MySQLCluster) (result *cr_v1.MySQLCluster, err error)

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

func (*FakeMySQLClusters) Watch

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

Jump to

Keyboard shortcuts

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