Documentation ¶
Index ¶
- type MockClient
- func (m *MockClient) CheckExistence(ctx context.Context, resourceGroupName string) (result autorest.Response, err error)
- func (m *MockClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, parameters resources.Group) (result resources.Group, err error)
- func (m *MockClient) Delete(ctx context.Context, resourceGroupName string) (result resources.GroupsDeleteFuture, err error)
- func (m *MockClient) Get(ctx context.Context, resourceGroupName string) (result resources.Group, err error)
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.
Click to show internal directories.
Click to hide internal directories.