-
Notifications
You must be signed in to change notification settings - Fork 4
/
compute.go
101 lines (84 loc) · 3.74 KB
/
compute.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/jim-minter/rp/pkg/util/azureclient/compute (interfaces: DisksClient,VirtualMachinesClient)
// Package mock_compute is a generated GoMock package.
package mock_compute
import (
context "context"
reflect "reflect"
compute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-03-01/compute"
gomock "github.com/golang/mock/gomock"
)
// MockDisksClient is a mock of DisksClient interface
type MockDisksClient struct {
ctrl *gomock.Controller
recorder *MockDisksClientMockRecorder
}
// MockDisksClientMockRecorder is the mock recorder for MockDisksClient
type MockDisksClientMockRecorder struct {
mock *MockDisksClient
}
// NewMockDisksClient creates a new mock instance
func NewMockDisksClient(ctrl *gomock.Controller) *MockDisksClient {
mock := &MockDisksClient{ctrl: ctrl}
mock.recorder = &MockDisksClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockDisksClient) EXPECT() *MockDisksClientMockRecorder {
return m.recorder
}
// DeleteAndWait mocks base method
func (m *MockDisksClient) DeleteAndWait(arg0 context.Context, arg1, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteAndWait", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteAndWait indicates an expected call of DeleteAndWait
func (mr *MockDisksClientMockRecorder) DeleteAndWait(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAndWait", reflect.TypeOf((*MockDisksClient)(nil).DeleteAndWait), arg0, arg1, arg2)
}
// MockVirtualMachinesClient is a mock of VirtualMachinesClient interface
type MockVirtualMachinesClient struct {
ctrl *gomock.Controller
recorder *MockVirtualMachinesClientMockRecorder
}
// MockVirtualMachinesClientMockRecorder is the mock recorder for MockVirtualMachinesClient
type MockVirtualMachinesClientMockRecorder struct {
mock *MockVirtualMachinesClient
}
// NewMockVirtualMachinesClient creates a new mock instance
func NewMockVirtualMachinesClient(ctrl *gomock.Controller) *MockVirtualMachinesClient {
mock := &MockVirtualMachinesClient{ctrl: ctrl}
mock.recorder = &MockVirtualMachinesClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockVirtualMachinesClient) EXPECT() *MockVirtualMachinesClientMockRecorder {
return m.recorder
}
// CreateOrUpdateAndWait mocks base method
func (m *MockVirtualMachinesClient) CreateOrUpdateAndWait(arg0 context.Context, arg1, arg2 string, arg3 compute.VirtualMachine) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateOrUpdateAndWait", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(error)
return ret0
}
// CreateOrUpdateAndWait indicates an expected call of CreateOrUpdateAndWait
func (mr *MockVirtualMachinesClientMockRecorder) CreateOrUpdateAndWait(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateAndWait", reflect.TypeOf((*MockVirtualMachinesClient)(nil).CreateOrUpdateAndWait), arg0, arg1, arg2, arg3)
}
// DeleteAndWait mocks base method
func (m *MockVirtualMachinesClient) DeleteAndWait(arg0 context.Context, arg1, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteAndWait", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteAndWait indicates an expected call of DeleteAndWait
func (mr *MockVirtualMachinesClientMockRecorder) DeleteAndWait(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAndWait", reflect.TypeOf((*MockVirtualMachinesClient)(nil).DeleteAndWait), arg0, arg1, arg2)
}