fake

package
v0.0.0-...-c2ba8ab Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 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 FakeMySQLBackupSchedules

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

FakeMySQLBackupSchedules implements MySQLBackupScheduleInterface

func (*FakeMySQLBackupSchedules) Create

func (c *FakeMySQLBackupSchedules) Create(mySQLBackupSchedule *mysql_v1.MySQLBackupSchedule) (result *mysql_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 *mysql_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 *mysql_v1.MySQLBackupSchedule, err error)

Patch applies the patch and returns the patched mySQLBackupSchedule.

func (*FakeMySQLBackupSchedules) Update

func (c *FakeMySQLBackupSchedules) Update(mySQLBackupSchedule *mysql_v1.MySQLBackupSchedule) (result *mysql_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 FakeMySQLBackups

type FakeMySQLBackups struct {
	Fake *FakeMysqlV1
	// contains filtered or unexported fields
}

FakeMySQLBackups implements MySQLBackupInterface

func (*FakeMySQLBackups) Create

func (c *FakeMySQLBackups) Create(mySQLBackup *mysql_v1.MySQLBackup) (result *mysql_v1.MySQLBackup, err error)

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

func (*FakeMySQLBackups) Delete

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

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

func (*FakeMySQLBackups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMySQLBackups) Get

func (c *FakeMySQLBackups) Get(name string, options v1.GetOptions) (result *mysql_v1.MySQLBackup, err error)

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

func (*FakeMySQLBackups) List

func (c *FakeMySQLBackups) List(opts v1.ListOptions) (result *mysql_v1.MySQLBackupList, err error)

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

func (*FakeMySQLBackups) Patch

func (c *FakeMySQLBackups) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *mysql_v1.MySQLBackup, err error)

Patch applies the patch and returns the patched mySQLBackup.

func (*FakeMySQLBackups) Update

func (c *FakeMySQLBackups) Update(mySQLBackup *mysql_v1.MySQLBackup) (result *mysql_v1.MySQLBackup, err error)

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

func (*FakeMySQLBackups) Watch

func (c *FakeMySQLBackups) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeMySQLClusters

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

FakeMySQLClusters implements MySQLClusterInterface

func (*FakeMySQLClusters) Create

func (c *FakeMySQLClusters) Create(mySQLCluster *mysql_v1.MySQLCluster) (result *mysql_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 *mysql_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 *mysql_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 *mysql_v1.MySQLCluster, err error)

Patch applies the patch and returns the patched mySQLCluster.

func (*FakeMySQLClusters) Update

func (c *FakeMySQLClusters) Update(mySQLCluster *mysql_v1.MySQLCluster) (result *mysql_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.

type FakeMySQLRestores

type FakeMySQLRestores struct {
	Fake *FakeMysqlV1
	// contains filtered or unexported fields
}

FakeMySQLRestores implements MySQLRestoreInterface

func (*FakeMySQLRestores) Create

func (c *FakeMySQLRestores) Create(mySQLRestore *mysql_v1.MySQLRestore) (result *mysql_v1.MySQLRestore, err error)

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

func (*FakeMySQLRestores) Delete

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

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

func (*FakeMySQLRestores) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMySQLRestores) Get

func (c *FakeMySQLRestores) Get(name string, options v1.GetOptions) (result *mysql_v1.MySQLRestore, err error)

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

func (*FakeMySQLRestores) List

func (c *FakeMySQLRestores) List(opts v1.ListOptions) (result *mysql_v1.MySQLRestoreList, err error)

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

func (*FakeMySQLRestores) Patch

func (c *FakeMySQLRestores) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *mysql_v1.MySQLRestore, err error)

Patch applies the patch and returns the patched mySQLRestore.

func (*FakeMySQLRestores) Update

func (c *FakeMySQLRestores) Update(mySQLRestore *mysql_v1.MySQLRestore) (result *mysql_v1.MySQLRestore, err error)

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

func (*FakeMySQLRestores) Watch

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

type FakeMysqlV1

type FakeMysqlV1 struct {
	*testing.Fake
}

func (*FakeMysqlV1) MySQLBackupSchedules

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

func (*FakeMysqlV1) MySQLBackups

func (c *FakeMysqlV1) MySQLBackups(namespace string) v1.MySQLBackupInterface

func (*FakeMysqlV1) MySQLClusters

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

func (*FakeMysqlV1) MySQLRestores

func (c *FakeMysqlV1) MySQLRestores(namespace string) v1.MySQLRestoreInterface

func (*FakeMysqlV1) RESTClient

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