fake

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMySQLFirewallRulesClient

type MockMySQLFirewallRulesClient struct {
	mysqlapi.FirewallRulesClientAPI

	MockCreateOrUpdate func(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters mysql.FirewallRule) (result mysql.FirewallRulesCreateOrUpdateFuture, err error)
	MockDelete         func(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result mysql.FirewallRulesDeleteFuture, err error)
	MockGet            func(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result mysql.FirewallRule, err error)
}

MockMySQLFirewallRulesClient is a fake implementation of mysql.FirewallRulesClient.

func (*MockMySQLFirewallRulesClient) CreateOrUpdate

func (c *MockMySQLFirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters mysql.FirewallRule) (result mysql.FirewallRulesCreateOrUpdateFuture, err error)

CreateOrUpdate calls the MockMySQLFirewallRulesClient's MockCreateOrUpdate method.

func (*MockMySQLFirewallRulesClient) Delete

func (c *MockMySQLFirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result mysql.FirewallRulesDeleteFuture, err error)

Delete calls the MockMySQLFirewallRulesClient's MockDelete method.

func (*MockMySQLFirewallRulesClient) Get

func (c *MockMySQLFirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result mysql.FirewallRule, err error)

Get calls the MockMySQLFirewallRulesClient's MockGet method.

type MockMySQLVirtualNetworkRulesClient

type MockMySQLVirtualNetworkRulesClient struct {
	mysqlapi.VirtualNetworkRulesClientAPI

	MockCreateOrUpdate func(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters mysql.VirtualNetworkRule) (result mysql.VirtualNetworkRulesCreateOrUpdateFuture, err error)
	MockDelete         func(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result mysql.VirtualNetworkRulesDeleteFuture, err error)
	MockGet            func(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result mysql.VirtualNetworkRule, err error)
}

MockMySQLVirtualNetworkRulesClient is a fake implementation of mysql.VirtualNetworkRulesClient.

func (*MockMySQLVirtualNetworkRulesClient) CreateOrUpdate

func (c *MockMySQLVirtualNetworkRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters mysql.VirtualNetworkRule) (result mysql.VirtualNetworkRulesCreateOrUpdateFuture, err error)

CreateOrUpdate calls the MockMySQLVirtualNetworkRulesClient's MockCreateOrUpdate method.

func (*MockMySQLVirtualNetworkRulesClient) Delete

func (c *MockMySQLVirtualNetworkRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result mysql.VirtualNetworkRulesDeleteFuture, err error)

Delete calls the MockMySQLVirtualNetworkRulesClient's MockDelete method.

func (*MockMySQLVirtualNetworkRulesClient) Get

func (c *MockMySQLVirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result mysql.VirtualNetworkRule, err error)

Get calls the MockMySQLVirtualNetworkRulesClient's MockGet method.

type MockPostgreSQLFirewallRulesClient

type MockPostgreSQLFirewallRulesClient struct {
	postgresqlapi.FirewallRulesClientAPI

	MockCreateOrUpdate func(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters postgresql.FirewallRule) (result postgresql.FirewallRulesCreateOrUpdateFuture, err error)
	MockDelete         func(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result postgresql.FirewallRulesDeleteFuture, err error)
	MockGet            func(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result postgresql.FirewallRule, err error)
}

MockPostgreSQLFirewallRulesClient is a fake implementation of postgresql.FirewallRulesClient.

func (*MockPostgreSQLFirewallRulesClient) CreateOrUpdate

func (c *MockPostgreSQLFirewallRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string, parameters postgresql.FirewallRule) (result postgresql.FirewallRulesCreateOrUpdateFuture, err error)

CreateOrUpdate calls the MockPostgreSQLFirewallRulesClient's MockCreateOrUpdate method.

func (*MockPostgreSQLFirewallRulesClient) Delete

func (c *MockPostgreSQLFirewallRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result postgresql.FirewallRulesDeleteFuture, err error)

Delete calls the MockPostgreSQLFirewallRulesClient's MockDelete method.

func (*MockPostgreSQLFirewallRulesClient) Get

func (c *MockPostgreSQLFirewallRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, firewallRuleName string) (result postgresql.FirewallRule, err error)

Get calls the MockPostgreSQLFirewallRulesClient's MockGet method.

type MockPostgreSQLVirtualNetworkRulesClient

type MockPostgreSQLVirtualNetworkRulesClient struct {
	postgresqlapi.VirtualNetworkRulesClientAPI

	MockCreateOrUpdate func(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters postgresql.VirtualNetworkRule) (result postgresql.VirtualNetworkRulesCreateOrUpdateFuture, err error)
	MockDelete         func(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result postgresql.VirtualNetworkRulesDeleteFuture, err error)
	MockGet            func(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result postgresql.VirtualNetworkRule, err error)
}

MockPostgreSQLVirtualNetworkRulesClient is a fake implementation of postgresql.VirtualNetworkRulesClient.

func (*MockPostgreSQLVirtualNetworkRulesClient) CreateOrUpdate

func (c *MockPostgreSQLVirtualNetworkRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string, parameters postgresql.VirtualNetworkRule) (result postgresql.VirtualNetworkRulesCreateOrUpdateFuture, err error)

CreateOrUpdate calls the MockPostgreSQLVirtualNetworkRulesClient's MockCreateOrUpdate method.

func (*MockPostgreSQLVirtualNetworkRulesClient) Delete

func (c *MockPostgreSQLVirtualNetworkRulesClient) Delete(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result postgresql.VirtualNetworkRulesDeleteFuture, err error)

Delete calls the MockPostgreSQLVirtualNetworkRulesClient's MockDelete method.

func (*MockPostgreSQLVirtualNetworkRulesClient) Get

func (c *MockPostgreSQLVirtualNetworkRulesClient) Get(ctx context.Context, resourceGroupName string, serverName string, virtualNetworkRuleName string) (result postgresql.VirtualNetworkRule, err error)

Get calls the MockPostgreSQLVirtualNetworkRulesClient's MockGet method.

Jump to

Keyboard shortcuts

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