mockvmssclient

package
v0.25.7-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mockvmssclient implements the mock client for VMSS.

Package mockvmssclient is a generated GoMock package.

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 added in v0.19.0

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

CreateOrUpdateAsync mocks base method.

func (*MockInterface) DeallocateInstancesAsync added in v0.20.0

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 added in v0.19.0

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 added in v0.20.0

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

StartInstancesAsync mocks base method.

func (*MockInterface) WaitForAsyncOperationResult added in v0.19.0

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

WaitForAsyncOperationResult mocks base method.

func (*MockInterface) WaitForCreateOrUpdateResult added in v0.20.0

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

WaitForCreateOrUpdateResult mocks base method.

func (*MockInterface) WaitForDeallocateInstancesResult added in v0.20.0

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

WaitForDeallocateInstancesResult mocks base method.

func (*MockInterface) WaitForDeleteInstancesResult added in v0.20.0

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

WaitForDeleteInstancesResult mocks base method.

func (*MockInterface) WaitForStartInstancesResult added in v0.20.0

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 added in v0.19.0

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

CreateOrUpdateAsync indicates an expected call of CreateOrUpdateAsync.

func (*MockInterfaceMockRecorder) DeallocateInstancesAsync added in v0.20.0

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

DeallocateInstancesAsync indicates an expected call of DeallocateInstancesAsync.

func (*MockInterfaceMockRecorder) DeleteInstances

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

DeleteInstances indicates an expected call of DeleteInstances.

func (*MockInterfaceMockRecorder) DeleteInstancesAsync added in v0.19.0

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 added in v0.20.0

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

StartInstancesAsync indicates an expected call of StartInstancesAsync.

func (*MockInterfaceMockRecorder) WaitForAsyncOperationResult added in v0.19.0

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

WaitForAsyncOperationResult indicates an expected call of WaitForAsyncOperationResult.

func (*MockInterfaceMockRecorder) WaitForCreateOrUpdateResult added in v0.20.0

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

WaitForCreateOrUpdateResult indicates an expected call of WaitForCreateOrUpdateResult.

func (*MockInterfaceMockRecorder) WaitForDeallocateInstancesResult added in v0.20.0

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

WaitForDeallocateInstancesResult indicates an expected call of WaitForDeallocateInstancesResult.

func (*MockInterfaceMockRecorder) WaitForDeleteInstancesResult added in v0.20.0

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

WaitForDeleteInstancesResult indicates an expected call of WaitForDeleteInstancesResult.

func (*MockInterfaceMockRecorder) WaitForStartInstancesResult added in v0.20.0

func (mr *MockInterfaceMockRecorder) WaitForStartInstancesResult(ctx, future, resourceGroupName interface{}) *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