fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeActiveDirectoryAdministrators

type FakeActiveDirectoryAdministrators struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeActiveDirectoryAdministrators implements ActiveDirectoryAdministratorInterface

func (*FakeActiveDirectoryAdministrators) Create

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

func (*FakeActiveDirectoryAdministrators) Delete

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

func (*FakeActiveDirectoryAdministrators) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeActiveDirectoryAdministrators) Get

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

func (*FakeActiveDirectoryAdministrators) List

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

func (*FakeActiveDirectoryAdministrators) Patch

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

Patch applies the patch and returns the patched activeDirectoryAdministrator.

func (*FakeActiveDirectoryAdministrators) Update

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

func (*FakeActiveDirectoryAdministrators) UpdateStatus

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

func (*FakeActiveDirectoryAdministrators) Watch

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

type FakeConfigurations

type FakeConfigurations struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeConfigurations implements ConfigurationInterface

func (*FakeConfigurations) Create

func (c *FakeConfigurations) Create(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.CreateOptions) (result *v1alpha1.Configuration, err error)

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

func (*FakeConfigurations) Delete

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

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

func (*FakeConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigurations) Get

func (c *FakeConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Configuration, err error)

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

func (*FakeConfigurations) List

func (c *FakeConfigurations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ConfigurationList, err error)

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

func (*FakeConfigurations) Patch

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

Patch applies the patch and returns the patched configuration.

func (*FakeConfigurations) Update

func (c *FakeConfigurations) Update(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.UpdateOptions) (result *v1alpha1.Configuration, err error)

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

func (*FakeConfigurations) UpdateStatus

func (c *FakeConfigurations) UpdateStatus(ctx context.Context, configuration *v1alpha1.Configuration, opts v1.UpdateOptions) (*v1alpha1.Configuration, error)

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

func (*FakeConfigurations) Watch

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

type FakeDatabases

type FakeDatabases struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeDatabases implements DatabaseInterface

func (*FakeDatabases) Create

func (c *FakeDatabases) Create(ctx context.Context, database *v1alpha1.Database, opts v1.CreateOptions) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) Delete

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

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

func (*FakeDatabases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabases) Get

func (c *FakeDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) List

func (c *FakeDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.DatabaseList, err error)

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

func (*FakeDatabases) Patch

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

Patch applies the patch and returns the patched database.

func (*FakeDatabases) Update

func (c *FakeDatabases) Update(ctx context.Context, database *v1alpha1.Database, opts v1.UpdateOptions) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) UpdateStatus

func (c *FakeDatabases) UpdateStatus(ctx context.Context, database *v1alpha1.Database, opts v1.UpdateOptions) (*v1alpha1.Database, error)

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

func (*FakeDatabases) Watch

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

type FakeFirewallRules

type FakeFirewallRules struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeFirewallRules implements FirewallRuleInterface

func (*FakeFirewallRules) Create

func (c *FakeFirewallRules) Create(ctx context.Context, firewallRule *v1alpha1.FirewallRule, opts v1.CreateOptions) (result *v1alpha1.FirewallRule, err error)

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

func (*FakeFirewallRules) Delete

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

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

func (*FakeFirewallRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFirewallRules) Get

func (c *FakeFirewallRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FirewallRule, err error)

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

func (*FakeFirewallRules) List

func (c *FakeFirewallRules) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.FirewallRuleList, err error)

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

func (*FakeFirewallRules) Patch

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

Patch applies the patch and returns the patched firewallRule.

func (*FakeFirewallRules) Update

func (c *FakeFirewallRules) Update(ctx context.Context, firewallRule *v1alpha1.FirewallRule, opts v1.UpdateOptions) (result *v1alpha1.FirewallRule, err error)

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

func (*FakeFirewallRules) UpdateStatus

func (c *FakeFirewallRules) UpdateStatus(ctx context.Context, firewallRule *v1alpha1.FirewallRule, opts v1.UpdateOptions) (*v1alpha1.FirewallRule, error)

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

func (*FakeFirewallRules) Watch

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

type FakeFlexibleDatabases added in v0.5.0

type FakeFlexibleDatabases struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeFlexibleDatabases implements FlexibleDatabaseInterface

func (*FakeFlexibleDatabases) Create added in v0.5.0

func (c *FakeFlexibleDatabases) Create(ctx context.Context, flexibleDatabase *v1alpha1.FlexibleDatabase, opts v1.CreateOptions) (result *v1alpha1.FlexibleDatabase, err error)

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

func (*FakeFlexibleDatabases) Delete added in v0.5.0

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

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

func (*FakeFlexibleDatabases) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeFlexibleDatabases) Get added in v0.5.0

func (c *FakeFlexibleDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FlexibleDatabase, err error)

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

func (*FakeFlexibleDatabases) List added in v0.5.0

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

func (*FakeFlexibleDatabases) Patch added in v0.5.0

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

Patch applies the patch and returns the patched flexibleDatabase.

func (*FakeFlexibleDatabases) Update added in v0.5.0

func (c *FakeFlexibleDatabases) Update(ctx context.Context, flexibleDatabase *v1alpha1.FlexibleDatabase, opts v1.UpdateOptions) (result *v1alpha1.FlexibleDatabase, err error)

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

func (*FakeFlexibleDatabases) UpdateStatus added in v0.5.0

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

func (*FakeFlexibleDatabases) Watch added in v0.5.0

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

type FakeFlexibleServerConfigurations added in v0.5.0

type FakeFlexibleServerConfigurations struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeFlexibleServerConfigurations implements FlexibleServerConfigurationInterface

func (*FakeFlexibleServerConfigurations) Create added in v0.5.0

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

func (*FakeFlexibleServerConfigurations) Delete added in v0.5.0

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

func (*FakeFlexibleServerConfigurations) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeFlexibleServerConfigurations) Get added in v0.5.0

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

func (*FakeFlexibleServerConfigurations) List added in v0.5.0

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

func (*FakeFlexibleServerConfigurations) Patch added in v0.5.0

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

Patch applies the patch and returns the patched flexibleServerConfiguration.

func (*FakeFlexibleServerConfigurations) Update added in v0.5.0

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

func (*FakeFlexibleServerConfigurations) UpdateStatus added in v0.5.0

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

func (*FakeFlexibleServerConfigurations) Watch added in v0.5.0

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

type FakeFlexibleServerFirewallRules added in v0.5.0

type FakeFlexibleServerFirewallRules struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeFlexibleServerFirewallRules implements FlexibleServerFirewallRuleInterface

func (*FakeFlexibleServerFirewallRules) Create added in v0.5.0

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

func (*FakeFlexibleServerFirewallRules) Delete added in v0.5.0

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

func (*FakeFlexibleServerFirewallRules) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeFlexibleServerFirewallRules) Get added in v0.5.0

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

func (*FakeFlexibleServerFirewallRules) List added in v0.5.0

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

func (*FakeFlexibleServerFirewallRules) Patch added in v0.5.0

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

Patch applies the patch and returns the patched flexibleServerFirewallRule.

func (*FakeFlexibleServerFirewallRules) Update added in v0.5.0

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

func (*FakeFlexibleServerFirewallRules) UpdateStatus added in v0.5.0

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

func (*FakeFlexibleServerFirewallRules) Watch added in v0.5.0

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

type FakeFlexibleServers added in v0.5.0

type FakeFlexibleServers struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeFlexibleServers implements FlexibleServerInterface

func (*FakeFlexibleServers) Create added in v0.5.0

func (c *FakeFlexibleServers) Create(ctx context.Context, flexibleServer *v1alpha1.FlexibleServer, opts v1.CreateOptions) (result *v1alpha1.FlexibleServer, err error)

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

func (*FakeFlexibleServers) Delete added in v0.5.0

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

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

func (*FakeFlexibleServers) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeFlexibleServers) Get added in v0.5.0

func (c *FakeFlexibleServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.FlexibleServer, err error)

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

func (*FakeFlexibleServers) List added in v0.5.0

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

func (*FakeFlexibleServers) Patch added in v0.5.0

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

Patch applies the patch and returns the patched flexibleServer.

func (*FakeFlexibleServers) Update added in v0.5.0

func (c *FakeFlexibleServers) Update(ctx context.Context, flexibleServer *v1alpha1.FlexibleServer, opts v1.UpdateOptions) (result *v1alpha1.FlexibleServer, err error)

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

func (*FakeFlexibleServers) UpdateStatus added in v0.5.0

func (c *FakeFlexibleServers) UpdateStatus(ctx context.Context, flexibleServer *v1alpha1.FlexibleServer, opts v1.UpdateOptions) (*v1alpha1.FlexibleServer, error)

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

func (*FakeFlexibleServers) Watch added in v0.5.0

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

type FakeMysqlV1alpha1

type FakeMysqlV1alpha1 struct {
	*testing.Fake
}

func (*FakeMysqlV1alpha1) ActiveDirectoryAdministrators

func (c *FakeMysqlV1alpha1) ActiveDirectoryAdministrators(namespace string) v1alpha1.ActiveDirectoryAdministratorInterface

func (*FakeMysqlV1alpha1) Configurations

func (c *FakeMysqlV1alpha1) Configurations(namespace string) v1alpha1.ConfigurationInterface

func (*FakeMysqlV1alpha1) Databases

func (c *FakeMysqlV1alpha1) Databases(namespace string) v1alpha1.DatabaseInterface

func (*FakeMysqlV1alpha1) FirewallRules

func (c *FakeMysqlV1alpha1) FirewallRules(namespace string) v1alpha1.FirewallRuleInterface

func (*FakeMysqlV1alpha1) FlexibleDatabases added in v0.5.0

func (c *FakeMysqlV1alpha1) FlexibleDatabases(namespace string) v1alpha1.FlexibleDatabaseInterface

func (*FakeMysqlV1alpha1) FlexibleServerConfigurations added in v0.5.0

func (c *FakeMysqlV1alpha1) FlexibleServerConfigurations(namespace string) v1alpha1.FlexibleServerConfigurationInterface

func (*FakeMysqlV1alpha1) FlexibleServerFirewallRules added in v0.5.0

func (c *FakeMysqlV1alpha1) FlexibleServerFirewallRules(namespace string) v1alpha1.FlexibleServerFirewallRuleInterface

func (*FakeMysqlV1alpha1) FlexibleServers added in v0.5.0

func (c *FakeMysqlV1alpha1) FlexibleServers(namespace string) v1alpha1.FlexibleServerInterface

func (*FakeMysqlV1alpha1) RESTClient

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

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

func (*FakeMysqlV1alpha1) ServerKeys

func (c *FakeMysqlV1alpha1) ServerKeys(namespace string) v1alpha1.ServerKeyInterface

func (*FakeMysqlV1alpha1) Servers

func (c *FakeMysqlV1alpha1) Servers(namespace string) v1alpha1.ServerInterface

func (*FakeMysqlV1alpha1) VirtualNetworkRules

func (c *FakeMysqlV1alpha1) VirtualNetworkRules(namespace string) v1alpha1.VirtualNetworkRuleInterface

type FakeServerKeys

type FakeServerKeys struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeServerKeys implements ServerKeyInterface

func (*FakeServerKeys) Create

func (c *FakeServerKeys) Create(ctx context.Context, serverKey *v1alpha1.ServerKey, opts v1.CreateOptions) (result *v1alpha1.ServerKey, err error)

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

func (*FakeServerKeys) Delete

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

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

func (*FakeServerKeys) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServerKeys) Get

func (c *FakeServerKeys) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ServerKey, err error)

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

func (*FakeServerKeys) List

func (c *FakeServerKeys) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServerKeyList, err error)

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

func (*FakeServerKeys) Patch

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

Patch applies the patch and returns the patched serverKey.

func (*FakeServerKeys) Update

func (c *FakeServerKeys) Update(ctx context.Context, serverKey *v1alpha1.ServerKey, opts v1.UpdateOptions) (result *v1alpha1.ServerKey, err error)

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

func (*FakeServerKeys) UpdateStatus

func (c *FakeServerKeys) UpdateStatus(ctx context.Context, serverKey *v1alpha1.ServerKey, opts v1.UpdateOptions) (*v1alpha1.ServerKey, error)

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

func (*FakeServerKeys) Watch

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

type FakeServers

type FakeServers struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeServers implements ServerInterface

func (*FakeServers) Create

func (c *FakeServers) Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (result *v1alpha1.Server, err error)

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

func (*FakeServers) Delete

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

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

func (*FakeServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServers) Get

func (c *FakeServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Server, err error)

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

func (*FakeServers) List

func (c *FakeServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServerList, err error)

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

func (*FakeServers) Patch

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

Patch applies the patch and returns the patched server.

func (*FakeServers) Update

func (c *FakeServers) Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error)

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

func (*FakeServers) UpdateStatus

func (c *FakeServers) UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error)

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

func (*FakeServers) Watch

func (c *FakeServers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeVirtualNetworkRules

type FakeVirtualNetworkRules struct {
	Fake *FakeMysqlV1alpha1
	// contains filtered or unexported fields
}

FakeVirtualNetworkRules implements VirtualNetworkRuleInterface

func (*FakeVirtualNetworkRules) Create

func (c *FakeVirtualNetworkRules) Create(ctx context.Context, virtualNetworkRule *v1alpha1.VirtualNetworkRule, opts v1.CreateOptions) (result *v1alpha1.VirtualNetworkRule, err error)

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

func (*FakeVirtualNetworkRules) Delete

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

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

func (*FakeVirtualNetworkRules) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualNetworkRules) Get

func (c *FakeVirtualNetworkRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.VirtualNetworkRule, err error)

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

func (*FakeVirtualNetworkRules) List

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

func (*FakeVirtualNetworkRules) Patch

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

Patch applies the patch and returns the patched virtualNetworkRule.

func (*FakeVirtualNetworkRules) Update

func (c *FakeVirtualNetworkRules) Update(ctx context.Context, virtualNetworkRule *v1alpha1.VirtualNetworkRule, opts v1.UpdateOptions) (result *v1alpha1.VirtualNetworkRule, err error)

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

func (*FakeVirtualNetworkRules) UpdateStatus

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

func (*FakeVirtualNetworkRules) Watch

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

Jump to

Keyboard shortcuts

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