mockvmssclient

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package mockvmssclient implements the mock client for VMSS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

type MockInterface struct {
	// contains filtered or unexported fields
}

MockInterface is a mock of Interface interface

func NewMockInterface

func NewMockInterface(ctrl *gomock.Controller) *MockInterface

NewMockInterface creates a new mock instance

func (*MockInterface) CreateOrUpdate

func (m *MockInterface) CreateOrUpdate(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSet) *retry.Error

CreateOrUpdate mocks base method

func (*MockInterface) CreateOrUpdateAsync

func (m *MockInterface) CreateOrUpdateAsync(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSet) (*azure.Future, *retry.Error)

CreateOrUpdateAsync mocks base method

func (*MockInterface) DeallocateInstancesAsync

func (m *MockInterface) DeallocateInstancesAsync(ctx context.Context, resourceGroupName, VMScaleSetName string, vmInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs) (*azure.Future, *retry.Error)

DeallocateInstancesAsync mocks base method

func (*MockInterface) DeleteInstances

func (m *MockInterface) DeleteInstances(ctx context.Context, resourceGroupName, vmScaleSetName string, vmInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs) *retry.Error

DeleteInstances mocks base method

func (*MockInterface) DeleteInstancesAsync

func (m *MockInterface) DeleteInstancesAsync(ctx context.Context, resourceGroupName, VMScaleSetName string, vmInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs) (*azure.Future, *retry.Error)

DeleteInstancesAsync mocks base method

func (*MockInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockInterface) Get

func (m *MockInterface) Get(ctx context.Context, resourceGroupName, VMScaleSetName string) (compute.VirtualMachineScaleSet, *retry.Error)

Get mocks base method

func (*MockInterface) List

func (m *MockInterface) List(ctx context.Context, resourceGroupName string) ([]compute.VirtualMachineScaleSet, *retry.Error)

List mocks base method

func (*MockInterface) StartInstancesAsync

func (m *MockInterface) StartInstancesAsync(ctx context.Context, resourceGroupName, VMScaleSetName string, vmInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs) (*azure.Future, *retry.Error)

StartInstancesAsync mocks base method

func (*MockInterface) WaitForAsyncOperationResult

func (m *MockInterface) WaitForAsyncOperationResult(ctx context.Context, future *azure.Future) (*http.Response, error)

WaitForAsyncOperationResult mocks base method

func (*MockInterface) WaitForCreateOrUpdateResult

func (m *MockInterface) WaitForCreateOrUpdateResult(ctx context.Context, future *azure.Future, resourceGroupName string) (*http.Response, error)

WaitForCreateOrUpdateResult mocks base method

func (*MockInterface) WaitForDeallocateInstancesResult

func (m *MockInterface) WaitForDeallocateInstancesResult(ctx context.Context, future *azure.Future, resourceGroupName string) (*http.Response, error)

WaitForDeallocateInstancesResult mocks base method

func (*MockInterface) WaitForDeleteInstancesResult

func (m *MockInterface) WaitForDeleteInstancesResult(ctx context.Context, future *azure.Future, resourceGroupName string) (*http.Response, error)

WaitForDeleteInstancesResult mocks base method

func (*MockInterface) WaitForStartInstancesResult

func (m *MockInterface) WaitForStartInstancesResult(ctx context.Context, future *azure.Future, resourceGroupName string) (*http.Response, error)

WaitForStartInstancesResult mocks base method

type MockInterfaceMockRecorder

type MockInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockInterfaceMockRecorder is the mock recorder for MockInterface

func (*MockInterfaceMockRecorder) CreateOrUpdate

func (mr *MockInterfaceMockRecorder) CreateOrUpdate(ctx, resourceGroupName, VMScaleSetName, parameters interface{}) *gomock.Call

CreateOrUpdate indicates an expected call of CreateOrUpdate

func (*MockInterfaceMockRecorder) CreateOrUpdateAsync

func (mr *MockInterfaceMockRecorder) CreateOrUpdateAsync(ctx, resourceGroupName, VMScaleSetName, parameters interface{}) *gomock.Call

CreateOrUpdateAsync indicates an expected call of CreateOrUpdateAsync

func (*MockInterfaceMockRecorder) DeallocateInstancesAsync

func (mr *MockInterfaceMockRecorder) DeallocateInstancesAsync(ctx, resourceGroupName, VMScaleSetName, vmInstanceIDs interface{}) *gomock.Call

DeallocateInstancesAsync indicates an expected call of DeleteInstancesAsync

func (*MockInterfaceMockRecorder) DeleteInstances

func (mr *MockInterfaceMockRecorder) DeleteInstances(ctx, resourceGroupName, vmScaleSetName, vmInstanceIDs interface{}) *gomock.Call

DeleteInstances indicates an expected call of DeleteInstances

func (*MockInterfaceMockRecorder) DeleteInstancesAsync

func (mr *MockInterfaceMockRecorder) DeleteInstancesAsync(ctx, resourceGroupName, VMScaleSetName, vmInstanceIDs interface{}) *gomock.Call

DeleteInstancesAsync indicates an expected call of DeleteInstancesAsync

func (*MockInterfaceMockRecorder) Get

func (mr *MockInterfaceMockRecorder) Get(ctx, resourceGroupName, VMScaleSetName interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockInterfaceMockRecorder) List

func (mr *MockInterfaceMockRecorder) List(ctx, resourceGroupName interface{}) *gomock.Call

List indicates an expected call of List

func (*MockInterfaceMockRecorder) StartInstancesAsync

func (mr *MockInterfaceMockRecorder) StartInstancesAsync(ctx, resourceGroupName, VMScaleSetName, vmInstanceIDs interface{}) *gomock.Call

StartInstancesAsync indicates an expected call of DeleteInstancesAsync

func (*MockInterfaceMockRecorder) WaitForAsyncOperationResult

func (mr *MockInterfaceMockRecorder) WaitForAsyncOperationResult(ctx, future interface{}) *gomock.Call

WaitForAsyncOperationResult indicates an expected call of WaitForAsyncOperationResult

func (*MockInterfaceMockRecorder) WaitForCreateOrUpdateResult

func (mr *MockInterfaceMockRecorder) WaitForCreateOrUpdateResult(ctx, future interface{}, resourceGroupName string) *gomock.Call

WaitForCreateOrUpdateResult indicates an expected call of WaitForCreateOrUpdateResult

func (*MockInterfaceMockRecorder) WaitForDeallocateInstancesResult

func (mr *MockInterfaceMockRecorder) WaitForDeallocateInstancesResult(ctx, future interface{}, resourceGroupName string) *gomock.Call

WaitForDeallocateInstancesResult indicates an expected call of WaitForDeallocateInstancesResult

func (*MockInterfaceMockRecorder) WaitForDeleteInstancesResult

func (mr *MockInterfaceMockRecorder) WaitForDeleteInstancesResult(ctx, future interface{}, resourceGroupName string) *gomock.Call

WaitForDeleteInstancesResult indicates an expected call of WaitForDeleteInstancesResult

func (*MockInterfaceMockRecorder) WaitForStartInstancesResult

func (mr *MockInterfaceMockRecorder) WaitForStartInstancesResult(ctx, future interface{}, resourceGroupName string) *gomock.Call

WaitForStartInstancesResult indicates an expected call of WaitForStartInstancesResult

Jump to

Keyboard shortcuts

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