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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	resourcesapi.GroupsClientAPI

	MockCreateOrUpdate func(ctx context.Context, resourceGroupName string, parameters resources.Group) (result resources.Group, err error)
	MockCheckExistence func(ctx context.Context, resourceGroupName string) (result autorest.Response, err error)
	MockDelete         func(ctx context.Context, resourceGroupName string) (result resources.GroupsDeleteFuture, err error)
}

MockClient is a fake implementation of the azure groups client.

func (*MockClient) CheckExistence

func (m *MockClient) CheckExistence(ctx context.Context, resourceGroupName string) (result autorest.Response, err error)

CheckExistence calls the underlying MockCheckExistence method.

func (*MockClient) CreateOrUpdate

func (m *MockClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, parameters resources.Group) (result resources.Group, err error)

CreateOrUpdate calls the underlying MockCreateOrUpdate method.

func (*MockClient) Delete

func (m *MockClient) Delete(ctx context.Context, resourceGroupName string) (result resources.GroupsDeleteFuture, err error)

Delete calls the underlying MockDeleteGroup method.

Jump to

Keyboard shortcuts

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