Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeApisV1alpha1
- func (c *FakeApisV1alpha1) MysqlBackups(namespace string) v1alpha1.MysqlBackupInterface
- func (c *FakeApisV1alpha1) Mysqls(namespace string) v1alpha1.MysqlInterface
- func (c *FakeApisV1alpha1) ProxySQLs(namespace string) v1alpha1.ProxySQLInterface
- func (c *FakeApisV1alpha1) RESTClient() rest.Interface
- func (c *FakeApisV1alpha1) Redises(namespace string) v1alpha1.RedisInterface
- type FakeMysqlBackups
- func (c *FakeMysqlBackups) Create(ctx context.Context, mysqlBackup *v1alpha1.MysqlBackup, opts v1.CreateOptions) (result *v1alpha1.MysqlBackup, err error)
- func (c *FakeMysqlBackups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMysqlBackups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMysqlBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MysqlBackup, err error)
- func (c *FakeMysqlBackups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MysqlBackupList, err error)
- func (c *FakeMysqlBackups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.MysqlBackup, err error)
- func (c *FakeMysqlBackups) Update(ctx context.Context, mysqlBackup *v1alpha1.MysqlBackup, opts v1.UpdateOptions) (result *v1alpha1.MysqlBackup, err error)
- func (c *FakeMysqlBackups) UpdateStatus(ctx context.Context, mysqlBackup *v1alpha1.MysqlBackup, opts v1.UpdateOptions) (*v1alpha1.MysqlBackup, error)
- func (c *FakeMysqlBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMysqls
- func (c *FakeMysqls) Create(ctx context.Context, mysql *v1alpha1.Mysql, opts v1.CreateOptions) (result *v1alpha1.Mysql, err error)
- func (c *FakeMysqls) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeMysqls) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeMysqls) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Mysql, err error)
- func (c *FakeMysqls) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MysqlList, err error)
- func (c *FakeMysqls) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Mysql, err error)
- func (c *FakeMysqls) Update(ctx context.Context, mysql *v1alpha1.Mysql, opts v1.UpdateOptions) (result *v1alpha1.Mysql, err error)
- func (c *FakeMysqls) UpdateStatus(ctx context.Context, mysql *v1alpha1.Mysql, opts v1.UpdateOptions) (*v1alpha1.Mysql, error)
- func (c *FakeMysqls) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeProxySQLs
- func (c *FakeProxySQLs) Create(ctx context.Context, proxySQL *v1alpha1.ProxySQL, opts v1.CreateOptions) (result *v1alpha1.ProxySQL, err error)
- func (c *FakeProxySQLs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeProxySQLs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeProxySQLs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQL, err error)
- func (c *FakeProxySQLs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLList, err error)
- func (c *FakeProxySQLs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.ProxySQL, err error)
- func (c *FakeProxySQLs) Update(ctx context.Context, proxySQL *v1alpha1.ProxySQL, opts v1.UpdateOptions) (result *v1alpha1.ProxySQL, err error)
- func (c *FakeProxySQLs) UpdateStatus(ctx context.Context, proxySQL *v1alpha1.ProxySQL, opts v1.UpdateOptions) (*v1alpha1.ProxySQL, error)
- func (c *FakeProxySQLs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeRedises
- func (c *FakeRedises) Create(ctx context.Context, redis *v1alpha1.Redis, opts v1.CreateOptions) (result *v1alpha1.Redis, err error)
- func (c *FakeRedises) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRedises) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRedises) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Redis, err error)
- func (c *FakeRedises) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisList, err error)
- func (c *FakeRedises) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Redis, err error)
- func (c *FakeRedises) Update(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (result *v1alpha1.Redis, err error)
- func (c *FakeRedises) UpdateStatus(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (*v1alpha1.Redis, error)
- func (c *FakeRedises) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeApisV1alpha1 ¶
func (*FakeApisV1alpha1) MysqlBackups ¶
func (c *FakeApisV1alpha1) MysqlBackups(namespace string) v1alpha1.MysqlBackupInterface
func (*FakeApisV1alpha1) Mysqls ¶
func (c *FakeApisV1alpha1) Mysqls(namespace string) v1alpha1.MysqlInterface
func (*FakeApisV1alpha1) ProxySQLs ¶
func (c *FakeApisV1alpha1) ProxySQLs(namespace string) v1alpha1.ProxySQLInterface
func (*FakeApisV1alpha1) RESTClient ¶
func (c *FakeApisV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeApisV1alpha1) Redises ¶
func (c *FakeApisV1alpha1) Redises(namespace string) v1alpha1.RedisInterface
type FakeMysqlBackups ¶
type FakeMysqlBackups struct { Fake *FakeApisV1alpha1 // contains filtered or unexported fields }
FakeMysqlBackups implements MysqlBackupInterface
func (*FakeMysqlBackups) Create ¶
func (c *FakeMysqlBackups) Create(ctx context.Context, mysqlBackup *v1alpha1.MysqlBackup, opts v1.CreateOptions) (result *v1alpha1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMysqlBackups) Get ¶
func (c *FakeMysqlBackups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MysqlBackup, err error)
Patch applies the patch and returns the patched mysqlBackup.
func (*FakeMysqlBackups) Update ¶
func (c *FakeMysqlBackups) Update(ctx context.Context, mysqlBackup *v1alpha1.MysqlBackup, opts v1.UpdateOptions) (result *v1alpha1.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) UpdateStatus ¶
func (c *FakeMysqlBackups) UpdateStatus(ctx context.Context, mysqlBackup *v1alpha1.MysqlBackup, opts v1.UpdateOptions) (*v1alpha1.MysqlBackup, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMysqlBackups) Watch ¶
func (c *FakeMysqlBackups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested mysqlBackups.
type FakeMysqls ¶
type FakeMysqls struct { Fake *FakeApisV1alpha1 // contains filtered or unexported fields }
FakeMysqls implements MysqlInterface
func (*FakeMysqls) Create ¶
func (c *FakeMysqls) Create(ctx context.Context, mysql *v1alpha1.Mysql, opts v1.CreateOptions) (result *v1alpha1.Mysql, err error)
Create takes the representation of a mysql and creates it. Returns the server's representation of the mysql, and an error, if there is any.
func (*FakeMysqls) Delete ¶
func (c *FakeMysqls) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the mysql and deletes it. Returns an error if one occurs.
func (*FakeMysqls) DeleteCollection ¶
func (c *FakeMysqls) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeMysqls) Get ¶
func (c *FakeMysqls) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Mysql, err error)
Get takes name of the mysql, and returns the corresponding mysql object, and an error if there is any.
func (*FakeMysqls) List ¶
func (c *FakeMysqls) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MysqlList, err error)
List takes label and field selectors, and returns the list of Mysqls that match those selectors.
func (*FakeMysqls) Patch ¶
func (c *FakeMysqls) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Mysql, err error)
Patch applies the patch and returns the patched mysql.
func (*FakeMysqls) Update ¶
func (c *FakeMysqls) Update(ctx context.Context, mysql *v1alpha1.Mysql, opts v1.UpdateOptions) (result *v1alpha1.Mysql, err error)
Update takes the representation of a mysql and updates it. Returns the server's representation of the mysql, and an error, if there is any.
func (*FakeMysqls) UpdateStatus ¶
func (c *FakeMysqls) UpdateStatus(ctx context.Context, mysql *v1alpha1.Mysql, opts v1.UpdateOptions) (*v1alpha1.Mysql, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeMysqls) Watch ¶
func (c *FakeMysqls) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested mysqls.
type FakeProxySQLs ¶
type FakeProxySQLs struct { Fake *FakeApisV1alpha1 // contains filtered or unexported fields }
FakeProxySQLs implements ProxySQLInterface
func (*FakeProxySQLs) Create ¶
func (c *FakeProxySQLs) Create(ctx context.Context, proxySQL *v1alpha1.ProxySQL, opts v1.CreateOptions) (result *v1alpha1.ProxySQL, err error)
Create takes the representation of a proxySQL and creates it. Returns the server's representation of the proxySQL, and an error, if there is any.
func (*FakeProxySQLs) Delete ¶
func (c *FakeProxySQLs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the proxySQL and deletes it. Returns an error if one occurs.
func (*FakeProxySQLs) DeleteCollection ¶
func (c *FakeProxySQLs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeProxySQLs) Get ¶
func (c *FakeProxySQLs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ProxySQL, err error)
Get takes name of the proxySQL, and returns the corresponding proxySQL object, and an error if there is any.
func (*FakeProxySQLs) List ¶
func (c *FakeProxySQLs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ProxySQLList, err error)
List takes label and field selectors, and returns the list of ProxySQLs that match those selectors.
func (*FakeProxySQLs) Patch ¶
func (c *FakeProxySQLs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ProxySQL, err error)
Patch applies the patch and returns the patched proxySQL.
func (*FakeProxySQLs) Update ¶
func (c *FakeProxySQLs) Update(ctx context.Context, proxySQL *v1alpha1.ProxySQL, opts v1.UpdateOptions) (result *v1alpha1.ProxySQL, err error)
Update takes the representation of a proxySQL and updates it. Returns the server's representation of the proxySQL, and an error, if there is any.
func (*FakeProxySQLs) UpdateStatus ¶
func (c *FakeProxySQLs) UpdateStatus(ctx context.Context, proxySQL *v1alpha1.ProxySQL, opts v1.UpdateOptions) (*v1alpha1.ProxySQL, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeProxySQLs) Watch ¶
func (c *FakeProxySQLs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested proxySQLs.
type FakeRedises ¶
type FakeRedises struct { Fake *FakeApisV1alpha1 // contains filtered or unexported fields }
FakeRedises implements RedisInterface
func (*FakeRedises) Create ¶
func (c *FakeRedises) Create(ctx context.Context, redis *v1alpha1.Redis, opts v1.CreateOptions) (result *v1alpha1.Redis, err error)
Create takes the representation of a redis and creates it. Returns the server's representation of the redis, and an error, if there is any.
func (*FakeRedises) Delete ¶
func (c *FakeRedises) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the redis and deletes it. Returns an error if one occurs.
func (*FakeRedises) DeleteCollection ¶
func (c *FakeRedises) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRedises) Get ¶
func (c *FakeRedises) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Redis, err error)
Get takes name of the redis, and returns the corresponding redis object, and an error if there is any.
func (*FakeRedises) List ¶
func (c *FakeRedises) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisList, err error)
List takes label and field selectors, and returns the list of Redises that match those selectors.
func (*FakeRedises) Patch ¶
func (c *FakeRedises) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Redis, err error)
Patch applies the patch and returns the patched redis.
func (*FakeRedises) Update ¶
func (c *FakeRedises) Update(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (result *v1alpha1.Redis, err error)
Update takes the representation of a redis and updates it. Returns the server's representation of the redis, and an error, if there is any.
func (*FakeRedises) UpdateStatus ¶
func (c *FakeRedises) UpdateStatus(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (*v1alpha1.Redis, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeRedises) Watch ¶
func (c *FakeRedises) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested redises.