Documentation ¶
Overview ¶
Package mock_virtualmachineclient is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) BeginAttachDetachDataDisks(ctx context.Context, resourceGroupName, vmName string, ...) (*runtime.Poller[armcompute.VirtualMachinesClientAttachDetachDataDisksResponse], ...)
- func (m *MockInterface) BeginUpdate(ctx context.Context, resourceGroupName, vmName string, ...) (*runtime.Poller[armcompute.VirtualMachinesClientUpdateResponse], error)
- func (m *MockInterface) CreateOrUpdate(ctx context.Context, resourceGroupName, resourceName string, ...) (*armcompute.VirtualMachine, error)
- func (m *MockInterface) Delete(ctx context.Context, resourceGroupName, resourceName string) error
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Get(ctx context.Context, resourceGroupName, resourceName string, expand *string) (*armcompute.VirtualMachine, error)
- func (m *MockInterface) InstanceView(ctx context.Context, resourceGroupName, vmName string) (*armcompute.VirtualMachineInstanceView, error)
- func (m *MockInterface) List(ctx context.Context, resourceGroupName string) ([]*armcompute.VirtualMachine, error)
- func (m *MockInterface) ListVMInstanceView(ctx context.Context, resourceGroupName string) ([]*armcompute.VirtualMachine, error)
- type MockInterfaceBeginAttachDetachDataDisksCall
- func (c *MockInterfaceBeginAttachDetachDataDisksCall) Do(...) *MockInterfaceBeginAttachDetachDataDisksCall
- func (c *MockInterfaceBeginAttachDetachDataDisksCall) DoAndReturn(...) *MockInterfaceBeginAttachDetachDataDisksCall
- func (c *MockInterfaceBeginAttachDetachDataDisksCall) Return(...) *MockInterfaceBeginAttachDetachDataDisksCall
- type MockInterfaceBeginUpdateCall
- func (c *MockInterfaceBeginUpdateCall) Do(...) *MockInterfaceBeginUpdateCall
- func (c *MockInterfaceBeginUpdateCall) DoAndReturn(...) *MockInterfaceBeginUpdateCall
- func (c *MockInterfaceBeginUpdateCall) Return(arg0 *runtime.Poller[armcompute.VirtualMachinesClientUpdateResponse], ...) *MockInterfaceBeginUpdateCall
- type MockInterfaceCreateOrUpdateCall
- func (c *MockInterfaceCreateOrUpdateCall) Do(...) *MockInterfaceCreateOrUpdateCall
- func (c *MockInterfaceCreateOrUpdateCall) DoAndReturn(...) *MockInterfaceCreateOrUpdateCall
- func (c *MockInterfaceCreateOrUpdateCall) Return(arg0 *armcompute.VirtualMachine, arg1 error) *MockInterfaceCreateOrUpdateCall
- type MockInterfaceDeleteCall
- func (c *MockInterfaceDeleteCall) Do(f func(context.Context, string, string) error) *MockInterfaceDeleteCall
- func (c *MockInterfaceDeleteCall) DoAndReturn(f func(context.Context, string, string) error) *MockInterfaceDeleteCall
- func (c *MockInterfaceDeleteCall) Return(arg0 error) *MockInterfaceDeleteCall
- type MockInterfaceGetCall
- type MockInterfaceInstanceViewCall
- func (c *MockInterfaceInstanceViewCall) Do(...) *MockInterfaceInstanceViewCall
- func (c *MockInterfaceInstanceViewCall) DoAndReturn(...) *MockInterfaceInstanceViewCall
- func (c *MockInterfaceInstanceViewCall) Return(arg0 *armcompute.VirtualMachineInstanceView, arg1 error) *MockInterfaceInstanceViewCall
- type MockInterfaceListCall
- func (c *MockInterfaceListCall) Do(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListCall
- func (c *MockInterfaceListCall) DoAndReturn(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListCall
- func (c *MockInterfaceListCall) Return(result []*armcompute.VirtualMachine, rerr error) *MockInterfaceListCall
- type MockInterfaceListVMInstanceViewCall
- func (c *MockInterfaceListVMInstanceViewCall) Do(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListVMInstanceViewCall
- func (c *MockInterfaceListVMInstanceViewCall) DoAndReturn(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListVMInstanceViewCall
- func (c *MockInterfaceListVMInstanceViewCall) Return(result []*armcompute.VirtualMachine, rerr error) *MockInterfaceListVMInstanceViewCall
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) BeginAttachDetachDataDisks(ctx, resourceGroupName, vmName, parameters, options any) *MockInterfaceBeginAttachDetachDataDisksCall
- func (mr *MockInterfaceMockRecorder) BeginUpdate(ctx, resourceGroupName, vmName, parameters, options any) *MockInterfaceBeginUpdateCall
- func (mr *MockInterfaceMockRecorder) CreateOrUpdate(ctx, resourceGroupName, resourceName, resourceParam any) *MockInterfaceCreateOrUpdateCall
- func (mr *MockInterfaceMockRecorder) Delete(ctx, resourceGroupName, resourceName any) *MockInterfaceDeleteCall
- func (mr *MockInterfaceMockRecorder) Get(ctx, resourceGroupName, resourceName, expand any) *MockInterfaceGetCall
- func (mr *MockInterfaceMockRecorder) InstanceView(ctx, resourceGroupName, vmName any) *MockInterfaceInstanceViewCall
- func (mr *MockInterfaceMockRecorder) List(ctx, resourceGroupName any) *MockInterfaceListCall
- func (mr *MockInterfaceMockRecorder) ListVMInstanceView(ctx, resourceGroupName any) *MockInterfaceListVMInstanceViewCall
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) BeginAttachDetachDataDisks ¶
func (m *MockInterface) BeginAttachDetachDataDisks(ctx context.Context, resourceGroupName, vmName string, parameters armcompute.AttachDetachDataDisksRequest, options *armcompute.VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*runtime.Poller[armcompute.VirtualMachinesClientAttachDetachDataDisksResponse], error)
BeginAttachDetachDataDisks mocks base method.
func (*MockInterface) BeginUpdate ¶
func (m *MockInterface) BeginUpdate(ctx context.Context, resourceGroupName, vmName string, parameters armcompute.VirtualMachineUpdate, options *armcompute.VirtualMachinesClientBeginUpdateOptions) (*runtime.Poller[armcompute.VirtualMachinesClientUpdateResponse], error)
BeginUpdate mocks base method.
func (*MockInterface) CreateOrUpdate ¶
func (m *MockInterface) CreateOrUpdate(ctx context.Context, resourceGroupName, resourceName string, resourceParam armcompute.VirtualMachine) (*armcompute.VirtualMachine, error)
CreateOrUpdate mocks base method.
func (*MockInterface) Delete ¶
func (m *MockInterface) Delete(ctx context.Context, resourceGroupName, resourceName string) error
Delete mocks base method.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) Get ¶
func (m *MockInterface) Get(ctx context.Context, resourceGroupName, resourceName string, expand *string) (*armcompute.VirtualMachine, error)
Get mocks base method.
func (*MockInterface) InstanceView ¶
func (m *MockInterface) InstanceView(ctx context.Context, resourceGroupName, vmName string) (*armcompute.VirtualMachineInstanceView, error)
InstanceView mocks base method.
func (*MockInterface) List ¶
func (m *MockInterface) List(ctx context.Context, resourceGroupName string) ([]*armcompute.VirtualMachine, error)
List mocks base method.
func (*MockInterface) ListVMInstanceView ¶
func (m *MockInterface) ListVMInstanceView(ctx context.Context, resourceGroupName string) ([]*armcompute.VirtualMachine, error)
ListVMInstanceView mocks base method.
type MockInterfaceBeginAttachDetachDataDisksCall ¶ added in v0.2.2
MockInterfaceBeginAttachDetachDataDisksCall wrap *gomock.Call
func (*MockInterfaceBeginAttachDetachDataDisksCall) Do ¶ added in v0.2.2
func (c *MockInterfaceBeginAttachDetachDataDisksCall) Do(f func(context.Context, string, string, armcompute.AttachDetachDataDisksRequest, *armcompute.VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*runtime.Poller[armcompute.VirtualMachinesClientAttachDetachDataDisksResponse], error)) *MockInterfaceBeginAttachDetachDataDisksCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceBeginAttachDetachDataDisksCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceBeginAttachDetachDataDisksCall) DoAndReturn(f func(context.Context, string, string, armcompute.AttachDetachDataDisksRequest, *armcompute.VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*runtime.Poller[armcompute.VirtualMachinesClientAttachDetachDataDisksResponse], error)) *MockInterfaceBeginAttachDetachDataDisksCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceBeginAttachDetachDataDisksCall) Return ¶ added in v0.2.2
func (c *MockInterfaceBeginAttachDetachDataDisksCall) Return(arg0 *runtime.Poller[armcompute.VirtualMachinesClientAttachDetachDataDisksResponse], arg1 error) *MockInterfaceBeginAttachDetachDataDisksCall
Return rewrite *gomock.Call.Return
type MockInterfaceBeginUpdateCall ¶ added in v0.2.2
MockInterfaceBeginUpdateCall wrap *gomock.Call
func (*MockInterfaceBeginUpdateCall) Do ¶ added in v0.2.2
func (c *MockInterfaceBeginUpdateCall) Do(f func(context.Context, string, string, armcompute.VirtualMachineUpdate, *armcompute.VirtualMachinesClientBeginUpdateOptions) (*runtime.Poller[armcompute.VirtualMachinesClientUpdateResponse], error)) *MockInterfaceBeginUpdateCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceBeginUpdateCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceBeginUpdateCall) DoAndReturn(f func(context.Context, string, string, armcompute.VirtualMachineUpdate, *armcompute.VirtualMachinesClientBeginUpdateOptions) (*runtime.Poller[armcompute.VirtualMachinesClientUpdateResponse], error)) *MockInterfaceBeginUpdateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceBeginUpdateCall) Return ¶ added in v0.2.2
func (c *MockInterfaceBeginUpdateCall) Return(arg0 *runtime.Poller[armcompute.VirtualMachinesClientUpdateResponse], arg1 error) *MockInterfaceBeginUpdateCall
Return rewrite *gomock.Call.Return
type MockInterfaceCreateOrUpdateCall ¶ added in v0.2.2
MockInterfaceCreateOrUpdateCall wrap *gomock.Call
func (*MockInterfaceCreateOrUpdateCall) Do ¶ added in v0.2.2
func (c *MockInterfaceCreateOrUpdateCall) Do(f func(context.Context, string, string, armcompute.VirtualMachine) (*armcompute.VirtualMachine, error)) *MockInterfaceCreateOrUpdateCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceCreateOrUpdateCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceCreateOrUpdateCall) DoAndReturn(f func(context.Context, string, string, armcompute.VirtualMachine) (*armcompute.VirtualMachine, error)) *MockInterfaceCreateOrUpdateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceCreateOrUpdateCall) Return ¶ added in v0.2.2
func (c *MockInterfaceCreateOrUpdateCall) Return(arg0 *armcompute.VirtualMachine, arg1 error) *MockInterfaceCreateOrUpdateCall
Return rewrite *gomock.Call.Return
type MockInterfaceDeleteCall ¶ added in v0.2.2
MockInterfaceDeleteCall wrap *gomock.Call
func (*MockInterfaceDeleteCall) Do ¶ added in v0.2.2
func (c *MockInterfaceDeleteCall) Do(f func(context.Context, string, string) error) *MockInterfaceDeleteCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceDeleteCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceDeleteCall) DoAndReturn(f func(context.Context, string, string) error) *MockInterfaceDeleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceDeleteCall) Return ¶ added in v0.2.2
func (c *MockInterfaceDeleteCall) Return(arg0 error) *MockInterfaceDeleteCall
Return rewrite *gomock.Call.Return
type MockInterfaceGetCall ¶ added in v0.2.2
MockInterfaceGetCall wrap *gomock.Call
func (*MockInterfaceGetCall) Do ¶ added in v0.2.2
func (c *MockInterfaceGetCall) Do(f func(context.Context, string, string, *string) (*armcompute.VirtualMachine, error)) *MockInterfaceGetCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceGetCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceGetCall) DoAndReturn(f func(context.Context, string, string, *string) (*armcompute.VirtualMachine, error)) *MockInterfaceGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceGetCall) Return ¶ added in v0.2.2
func (c *MockInterfaceGetCall) Return(result *armcompute.VirtualMachine, rerr error) *MockInterfaceGetCall
Return rewrite *gomock.Call.Return
type MockInterfaceInstanceViewCall ¶ added in v0.2.2
MockInterfaceInstanceViewCall wrap *gomock.Call
func (*MockInterfaceInstanceViewCall) Do ¶ added in v0.2.2
func (c *MockInterfaceInstanceViewCall) Do(f func(context.Context, string, string) (*armcompute.VirtualMachineInstanceView, error)) *MockInterfaceInstanceViewCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceInstanceViewCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceInstanceViewCall) DoAndReturn(f func(context.Context, string, string) (*armcompute.VirtualMachineInstanceView, error)) *MockInterfaceInstanceViewCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceInstanceViewCall) Return ¶ added in v0.2.2
func (c *MockInterfaceInstanceViewCall) Return(arg0 *armcompute.VirtualMachineInstanceView, arg1 error) *MockInterfaceInstanceViewCall
Return rewrite *gomock.Call.Return
type MockInterfaceListCall ¶ added in v0.2.2
MockInterfaceListCall wrap *gomock.Call
func (*MockInterfaceListCall) Do ¶ added in v0.2.2
func (c *MockInterfaceListCall) Do(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceListCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceListCall) DoAndReturn(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceListCall) Return ¶ added in v0.2.2
func (c *MockInterfaceListCall) Return(result []*armcompute.VirtualMachine, rerr error) *MockInterfaceListCall
Return rewrite *gomock.Call.Return
type MockInterfaceListVMInstanceViewCall ¶ added in v0.2.2
MockInterfaceListVMInstanceViewCall wrap *gomock.Call
func (*MockInterfaceListVMInstanceViewCall) Do ¶ added in v0.2.2
func (c *MockInterfaceListVMInstanceViewCall) Do(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListVMInstanceViewCall
Do rewrite *gomock.Call.Do
func (*MockInterfaceListVMInstanceViewCall) DoAndReturn ¶ added in v0.2.2
func (c *MockInterfaceListVMInstanceViewCall) DoAndReturn(f func(context.Context, string) ([]*armcompute.VirtualMachine, error)) *MockInterfaceListVMInstanceViewCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockInterfaceListVMInstanceViewCall) Return ¶ added in v0.2.2
func (c *MockInterfaceListVMInstanceViewCall) Return(result []*armcompute.VirtualMachine, rerr error) *MockInterfaceListVMInstanceViewCall
Return rewrite *gomock.Call.Return
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) BeginAttachDetachDataDisks ¶
func (mr *MockInterfaceMockRecorder) BeginAttachDetachDataDisks(ctx, resourceGroupName, vmName, parameters, options any) *MockInterfaceBeginAttachDetachDataDisksCall
BeginAttachDetachDataDisks indicates an expected call of BeginAttachDetachDataDisks.
func (*MockInterfaceMockRecorder) BeginUpdate ¶
func (mr *MockInterfaceMockRecorder) BeginUpdate(ctx, resourceGroupName, vmName, parameters, options any) *MockInterfaceBeginUpdateCall
BeginUpdate indicates an expected call of BeginUpdate.
func (*MockInterfaceMockRecorder) CreateOrUpdate ¶
func (mr *MockInterfaceMockRecorder) CreateOrUpdate(ctx, resourceGroupName, resourceName, resourceParam any) *MockInterfaceCreateOrUpdateCall
CreateOrUpdate indicates an expected call of CreateOrUpdate.
func (*MockInterfaceMockRecorder) Delete ¶
func (mr *MockInterfaceMockRecorder) Delete(ctx, resourceGroupName, resourceName any) *MockInterfaceDeleteCall
Delete indicates an expected call of Delete.
func (*MockInterfaceMockRecorder) Get ¶
func (mr *MockInterfaceMockRecorder) Get(ctx, resourceGroupName, resourceName, expand any) *MockInterfaceGetCall
Get indicates an expected call of Get.
func (*MockInterfaceMockRecorder) InstanceView ¶
func (mr *MockInterfaceMockRecorder) InstanceView(ctx, resourceGroupName, vmName any) *MockInterfaceInstanceViewCall
InstanceView indicates an expected call of InstanceView.
func (*MockInterfaceMockRecorder) List ¶
func (mr *MockInterfaceMockRecorder) List(ctx, resourceGroupName any) *MockInterfaceListCall
List indicates an expected call of List.
func (*MockInterfaceMockRecorder) ListVMInstanceView ¶
func (mr *MockInterfaceMockRecorder) ListVMInstanceView(ctx, resourceGroupName any) *MockInterfaceListVMInstanceViewCall
ListVMInstanceView indicates an expected call of ListVMInstanceView.