/
apicalls_mock.go
133 lines (114 loc) · 5.06 KB
/
apicalls_mock.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/juju/container/broker (interfaces: APICalls)
//
// Generated by this command:
//
// mockgen -package mocks -destination mocks/apicalls_mock.go github.com/juju/juju/container/broker APICalls
//
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
provisioner "github.com/juju/juju/api/agent/provisioner"
network "github.com/juju/juju/core/network"
network0 "github.com/juju/juju/network"
params "github.com/juju/juju/rpc/params"
names "github.com/juju/names/v5"
gomock "go.uber.org/mock/gomock"
)
// MockAPICalls is a mock of APICalls interface.
type MockAPICalls struct {
ctrl *gomock.Controller
recorder *MockAPICallsMockRecorder
}
// MockAPICallsMockRecorder is the mock recorder for MockAPICalls.
type MockAPICallsMockRecorder struct {
mock *MockAPICalls
}
// NewMockAPICalls creates a new mock instance.
func NewMockAPICalls(ctrl *gomock.Controller) *MockAPICalls {
mock := &MockAPICalls{ctrl: ctrl}
mock.recorder = &MockAPICallsMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAPICalls) EXPECT() *MockAPICallsMockRecorder {
return m.recorder
}
// ContainerConfig mocks base method.
func (m *MockAPICalls) ContainerConfig() (params.ContainerConfig, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ContainerConfig")
ret0, _ := ret[0].(params.ContainerConfig)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ContainerConfig indicates an expected call of ContainerConfig.
func (mr *MockAPICallsMockRecorder) ContainerConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerConfig", reflect.TypeOf((*MockAPICalls)(nil).ContainerConfig))
}
// GetContainerProfileInfo mocks base method.
func (m *MockAPICalls) GetContainerProfileInfo(arg0 names.MachineTag) ([]*provisioner.LXDProfileResult, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetContainerProfileInfo", arg0)
ret0, _ := ret[0].([]*provisioner.LXDProfileResult)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetContainerProfileInfo indicates an expected call of GetContainerProfileInfo.
func (mr *MockAPICallsMockRecorder) GetContainerProfileInfo(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContainerProfileInfo", reflect.TypeOf((*MockAPICalls)(nil).GetContainerProfileInfo), arg0)
}
// HostChangesForContainer mocks base method.
func (m *MockAPICalls) HostChangesForContainer(arg0 names.MachineTag) ([]network0.DeviceToBridge, int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HostChangesForContainer", arg0)
ret0, _ := ret[0].([]network0.DeviceToBridge)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// HostChangesForContainer indicates an expected call of HostChangesForContainer.
func (mr *MockAPICallsMockRecorder) HostChangesForContainer(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HostChangesForContainer", reflect.TypeOf((*MockAPICalls)(nil).HostChangesForContainer), arg0)
}
// PrepareContainerInterfaceInfo mocks base method.
func (m *MockAPICalls) PrepareContainerInterfaceInfo(arg0 names.MachineTag) (network.InterfaceInfos, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrepareContainerInterfaceInfo", arg0)
ret0, _ := ret[0].(network.InterfaceInfos)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PrepareContainerInterfaceInfo indicates an expected call of PrepareContainerInterfaceInfo.
func (mr *MockAPICallsMockRecorder) PrepareContainerInterfaceInfo(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareContainerInterfaceInfo", reflect.TypeOf((*MockAPICalls)(nil).PrepareContainerInterfaceInfo), arg0)
}
// ReleaseContainerAddresses mocks base method.
func (m *MockAPICalls) ReleaseContainerAddresses(arg0 names.MachineTag) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReleaseContainerAddresses", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// ReleaseContainerAddresses indicates an expected call of ReleaseContainerAddresses.
func (mr *MockAPICallsMockRecorder) ReleaseContainerAddresses(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseContainerAddresses", reflect.TypeOf((*MockAPICalls)(nil).ReleaseContainerAddresses), arg0)
}
// SetHostMachineNetworkConfig mocks base method.
func (m *MockAPICalls) SetHostMachineNetworkConfig(arg0 names.MachineTag, arg1 []params.NetworkConfig) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetHostMachineNetworkConfig", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SetHostMachineNetworkConfig indicates an expected call of SetHostMachineNetworkConfig.
func (mr *MockAPICallsMockRecorder) SetHostMachineNetworkConfig(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHostMachineNetworkConfig", reflect.TypeOf((*MockAPICalls)(nil).SetHostMachineNetworkConfig), arg0, arg1)
}