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: 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)
	MockGet            func(ctx context.Context, resourceGroupName string) (result resources.Group, 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.

func (*MockClient) Get

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

Get calls the underlying MockGet method.

Jump to

Keyboard shortcuts

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