fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSubnetsClient

type MockSubnetsClient struct {
	networkapi.SubnetsClientAPI

	MockCreateOrUpdate func(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, subnetParameters network.Subnet) (result network.SubnetsCreateOrUpdateFuture, err error)
	MockDelete         func(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)
	MockGet            func(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)
	MockList           func(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)
}

MockSubnetsClient is a fake implementation of network.SubnetsClient.

func (*MockSubnetsClient) CreateOrUpdate

func (c *MockSubnetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, subnetParameters network.Subnet) (result network.SubnetsCreateOrUpdateFuture, err error)

CreateOrUpdate calls the MockSubnetsClient's MockCreateOrUpdate method.

func (*MockSubnetsClient) Delete

func (c *MockSubnetsClient) Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string) (result network.SubnetsDeleteFuture, err error)

Delete calls the MockSubnetsClient's MockDelete method.

func (*MockSubnetsClient) Get

func (c *MockSubnetsClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, subnetName string, expand string) (result network.Subnet, err error)

Get calls the MockSubnetsClient's MockGet method.

func (*MockSubnetsClient) List

func (c *MockSubnetsClient) List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.SubnetListResultPage, err error)

List calls the MockSubnetsClient's MockListKeys method.

type MockVirtualNetworksClient

type MockVirtualNetworksClient struct {
	networkapi.VirtualNetworksClientAPI

	MockCreateOrUpdate func(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.VirtualNetwork) (result network.VirtualNetworksCreateOrUpdateFuture, err error)
	MockDelete         func(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)
	MockGet            func(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
	MockList           func(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
}

MockVirtualNetworksClient is a fake implementation of network.VirtualNetworksClient.

func (*MockVirtualNetworksClient) CreateOrUpdate

func (c *MockVirtualNetworksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.VirtualNetwork) (result network.VirtualNetworksCreateOrUpdateFuture, err error)

CreateOrUpdate calls the MockVirtualNetworksClient's MockCreateOrUpdate method.

func (*MockVirtualNetworksClient) Delete

func (c *MockVirtualNetworksClient) Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (result network.VirtualNetworksDeleteFuture, err error)

Delete calls the MockVirtualNetworksClient's MockDelete method.

func (*MockVirtualNetworksClient) Get

func (c *MockVirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)

Get calls the MockVirtualNetworksClient's MockGet method.

func (*MockVirtualNetworksClient) List

func (c *MockVirtualNetworksClient) List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)

List calls the MockVirtualNetworksClient's MockListKeys method.

Jump to

Keyboard shortcuts

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