-
Notifications
You must be signed in to change notification settings - Fork 51
/
arm.go
83 lines (69 loc) · 2.75 KB
/
arm.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
// Code generated by MockGen. DO NOT EDIT.
// Source: arm.go
// Package mock_arm is a generated GoMock package.
package mock_arm
import (
context "context"
reflect "reflect"
compute "github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2018-10-01/compute"
gomock "github.com/golang/mock/gomock"
api "github.com/openshift/openshift-azure/pkg/api"
)
// MockInterface is a mock of Interface interface
type MockInterface struct {
ctrl *gomock.Controller
recorder *MockInterfaceMockRecorder
}
// MockInterfaceMockRecorder is the mock recorder for MockInterface
type MockInterfaceMockRecorder struct {
mock *MockInterface
}
// NewMockInterface creates a new mock instance
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
mock := &MockInterface{ctrl: ctrl}
mock.recorder = &MockInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
return m.recorder
}
// Generate mocks base method
func (m *MockInterface) Generate(ctx context.Context, backupBlob string, isUpdate bool, suffix string) (map[string]interface{}, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Generate", ctx, backupBlob, isUpdate, suffix)
ret0, _ := ret[0].(map[string]interface{})
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Generate indicates an expected call of Generate
func (mr *MockInterfaceMockRecorder) Generate(ctx, backupBlob, isUpdate, suffix interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Generate", reflect.TypeOf((*MockInterface)(nil).Generate), ctx, backupBlob, isUpdate, suffix)
}
// Vmss mocks base method
func (m *MockInterface) Vmss(app *api.AgentPoolProfile, backupBlob, suffix string) (*compute.VirtualMachineScaleSet, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Vmss", app, backupBlob, suffix)
ret0, _ := ret[0].(*compute.VirtualMachineScaleSet)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Vmss indicates an expected call of Vmss
func (mr *MockInterfaceMockRecorder) Vmss(app, backupBlob, suffix interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Vmss", reflect.TypeOf((*MockInterface)(nil).Vmss), app, backupBlob, suffix)
}
// Hash mocks base method
func (m *MockInterface) Hash(app *api.AgentPoolProfile) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Hash", app)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Hash indicates an expected call of Hash
func (mr *MockInterfaceMockRecorder) Hash(app interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockInterface)(nil).Hash), app)
}