github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/agent/provisioner/mocks/machine_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/apiserver/facades/agent/provisioner (interfaces: Machine) 3 4 // Package mocks is a generated GoMock package. 5 package mocks 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 set "github.com/juju/collections/set" 12 constraints "github.com/juju/juju/core/constraints" 13 instance "github.com/juju/juju/core/instance" 14 containerizer "github.com/juju/juju/network/containerizer" 15 state "github.com/juju/juju/state" 16 names_v2 "gopkg.in/juju/names.v2" 17 ) 18 19 // MockMachine is a mock of Machine interface 20 type MockMachine struct { 21 ctrl *gomock.Controller 22 recorder *MockMachineMockRecorder 23 } 24 25 // MockMachineMockRecorder is the mock recorder for MockMachine 26 type MockMachineMockRecorder struct { 27 mock *MockMachine 28 } 29 30 // NewMockMachine creates a new mock instance 31 func NewMockMachine(ctrl *gomock.Controller) *MockMachine { 32 mock := &MockMachine{ctrl: ctrl} 33 mock.recorder = &MockMachineMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use 38 func (m *MockMachine) EXPECT() *MockMachineMockRecorder { 39 return m.recorder 40 } 41 42 // AllLinkLayerDevices mocks base method 43 func (m *MockMachine) AllLinkLayerDevices() ([]containerizer.LinkLayerDevice, error) { 44 ret := m.ctrl.Call(m, "AllLinkLayerDevices") 45 ret0, _ := ret[0].([]containerizer.LinkLayerDevice) 46 ret1, _ := ret[1].(error) 47 return ret0, ret1 48 } 49 50 // AllLinkLayerDevices indicates an expected call of AllLinkLayerDevices 51 func (mr *MockMachineMockRecorder) AllLinkLayerDevices() *gomock.Call { 52 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllLinkLayerDevices", reflect.TypeOf((*MockMachine)(nil).AllLinkLayerDevices)) 53 } 54 55 // AllSpaces mocks base method 56 func (m *MockMachine) AllSpaces() (set.Strings, error) { 57 ret := m.ctrl.Call(m, "AllSpaces") 58 ret0, _ := ret[0].(set.Strings) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // AllSpaces indicates an expected call of AllSpaces 64 func (mr *MockMachineMockRecorder) AllSpaces() *gomock.Call { 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllSpaces", reflect.TypeOf((*MockMachine)(nil).AllSpaces)) 66 } 67 68 // ContainerType mocks base method 69 func (m *MockMachine) ContainerType() instance.ContainerType { 70 ret := m.ctrl.Call(m, "ContainerType") 71 ret0, _ := ret[0].(instance.ContainerType) 72 return ret0 73 } 74 75 // ContainerType indicates an expected call of ContainerType 76 func (mr *MockMachineMockRecorder) ContainerType() *gomock.Call { 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ContainerType", reflect.TypeOf((*MockMachine)(nil).ContainerType)) 78 } 79 80 // DesiredSpaces mocks base method 81 func (m *MockMachine) DesiredSpaces() (set.Strings, error) { 82 ret := m.ctrl.Call(m, "DesiredSpaces") 83 ret0, _ := ret[0].(set.Strings) 84 ret1, _ := ret[1].(error) 85 return ret0, ret1 86 } 87 88 // DesiredSpaces indicates an expected call of DesiredSpaces 89 func (mr *MockMachineMockRecorder) DesiredSpaces() *gomock.Call { 90 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DesiredSpaces", reflect.TypeOf((*MockMachine)(nil).DesiredSpaces)) 91 } 92 93 // Id mocks base method 94 func (m *MockMachine) Id() string { 95 ret := m.ctrl.Call(m, "Id") 96 ret0, _ := ret[0].(string) 97 return ret0 98 } 99 100 // Id indicates an expected call of Id 101 func (mr *MockMachineMockRecorder) Id() *gomock.Call { 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Id", reflect.TypeOf((*MockMachine)(nil).Id)) 103 } 104 105 // InstanceId mocks base method 106 func (m *MockMachine) InstanceId() (instance.Id, error) { 107 ret := m.ctrl.Call(m, "InstanceId") 108 ret0, _ := ret[0].(instance.Id) 109 ret1, _ := ret[1].(error) 110 return ret0, ret1 111 } 112 113 // InstanceId indicates an expected call of InstanceId 114 func (mr *MockMachineMockRecorder) InstanceId() *gomock.Call { 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InstanceId", reflect.TypeOf((*MockMachine)(nil).InstanceId)) 116 } 117 118 // IsManual mocks base method 119 func (m *MockMachine) IsManual() (bool, error) { 120 ret := m.ctrl.Call(m, "IsManual") 121 ret0, _ := ret[0].(bool) 122 ret1, _ := ret[1].(error) 123 return ret0, ret1 124 } 125 126 // IsManual indicates an expected call of IsManual 127 func (mr *MockMachineMockRecorder) IsManual() *gomock.Call { 128 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsManual", reflect.TypeOf((*MockMachine)(nil).IsManual)) 129 } 130 131 // LinkLayerDevicesForSpaces mocks base method 132 func (m *MockMachine) LinkLayerDevicesForSpaces(arg0 []string) (map[string][]containerizer.LinkLayerDevice, error) { 133 ret := m.ctrl.Call(m, "LinkLayerDevicesForSpaces", arg0) 134 ret0, _ := ret[0].(map[string][]containerizer.LinkLayerDevice) 135 ret1, _ := ret[1].(error) 136 return ret0, ret1 137 } 138 139 // LinkLayerDevicesForSpaces indicates an expected call of LinkLayerDevicesForSpaces 140 func (mr *MockMachineMockRecorder) LinkLayerDevicesForSpaces(arg0 interface{}) *gomock.Call { 141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LinkLayerDevicesForSpaces", reflect.TypeOf((*MockMachine)(nil).LinkLayerDevicesForSpaces), arg0) 142 } 143 144 // MachineTag mocks base method 145 func (m *MockMachine) MachineTag() names_v2.MachineTag { 146 ret := m.ctrl.Call(m, "MachineTag") 147 ret0, _ := ret[0].(names_v2.MachineTag) 148 return ret0 149 } 150 151 // MachineTag indicates an expected call of MachineTag 152 func (mr *MockMachineMockRecorder) MachineTag() *gomock.Call { 153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MachineTag", reflect.TypeOf((*MockMachine)(nil).MachineTag)) 154 } 155 156 // Raw mocks base method 157 func (m *MockMachine) Raw() *state.Machine { 158 ret := m.ctrl.Call(m, "Raw") 159 ret0, _ := ret[0].(*state.Machine) 160 return ret0 161 } 162 163 // Raw indicates an expected call of Raw 164 func (mr *MockMachineMockRecorder) Raw() *gomock.Call { 165 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Raw", reflect.TypeOf((*MockMachine)(nil).Raw)) 166 } 167 168 // RemoveAllAddresses mocks base method 169 func (m *MockMachine) RemoveAllAddresses() error { 170 ret := m.ctrl.Call(m, "RemoveAllAddresses") 171 ret0, _ := ret[0].(error) 172 return ret0 173 } 174 175 // RemoveAllAddresses indicates an expected call of RemoveAllAddresses 176 func (mr *MockMachineMockRecorder) RemoveAllAddresses() *gomock.Call { 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveAllAddresses", reflect.TypeOf((*MockMachine)(nil).RemoveAllAddresses)) 178 } 179 180 // SetConstraints mocks base method 181 func (m *MockMachine) SetConstraints(arg0 constraints.Value) error { 182 ret := m.ctrl.Call(m, "SetConstraints", arg0) 183 ret0, _ := ret[0].(error) 184 return ret0 185 } 186 187 // SetConstraints indicates an expected call of SetConstraints 188 func (mr *MockMachineMockRecorder) SetConstraints(arg0 interface{}) *gomock.Call { 189 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetConstraints", reflect.TypeOf((*MockMachine)(nil).SetConstraints), arg0) 190 } 191 192 // SetDevicesAddresses mocks base method 193 func (m *MockMachine) SetDevicesAddresses(arg0 ...state.LinkLayerDeviceAddress) error { 194 varargs := []interface{}{} 195 for _, a := range arg0 { 196 varargs = append(varargs, a) 197 } 198 ret := m.ctrl.Call(m, "SetDevicesAddresses", varargs...) 199 ret0, _ := ret[0].(error) 200 return ret0 201 } 202 203 // SetDevicesAddresses indicates an expected call of SetDevicesAddresses 204 func (mr *MockMachineMockRecorder) SetDevicesAddresses(arg0 ...interface{}) *gomock.Call { 205 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetDevicesAddresses", reflect.TypeOf((*MockMachine)(nil).SetDevicesAddresses), arg0...) 206 } 207 208 // SetLinkLayerDevices mocks base method 209 func (m *MockMachine) SetLinkLayerDevices(arg0 ...state.LinkLayerDeviceArgs) error { 210 varargs := []interface{}{} 211 for _, a := range arg0 { 212 varargs = append(varargs, a) 213 } 214 ret := m.ctrl.Call(m, "SetLinkLayerDevices", varargs...) 215 ret0, _ := ret[0].(error) 216 return ret0 217 } 218 219 // SetLinkLayerDevices indicates an expected call of SetLinkLayerDevices 220 func (mr *MockMachineMockRecorder) SetLinkLayerDevices(arg0 ...interface{}) *gomock.Call { 221 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLinkLayerDevices", reflect.TypeOf((*MockMachine)(nil).SetLinkLayerDevices), arg0...) 222 } 223 224 // SetParentLinkLayerDevicesBeforeTheirChildren mocks base method 225 func (m *MockMachine) SetParentLinkLayerDevicesBeforeTheirChildren(arg0 []state.LinkLayerDeviceArgs) error { 226 ret := m.ctrl.Call(m, "SetParentLinkLayerDevicesBeforeTheirChildren", arg0) 227 ret0, _ := ret[0].(error) 228 return ret0 229 } 230 231 // SetParentLinkLayerDevicesBeforeTheirChildren indicates an expected call of SetParentLinkLayerDevicesBeforeTheirChildren 232 func (mr *MockMachineMockRecorder) SetParentLinkLayerDevicesBeforeTheirChildren(arg0 interface{}) *gomock.Call { 233 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetParentLinkLayerDevicesBeforeTheirChildren", reflect.TypeOf((*MockMachine)(nil).SetParentLinkLayerDevicesBeforeTheirChildren), arg0) 234 } 235 236 // Units mocks base method 237 func (m *MockMachine) Units() ([]containerizer.Unit, error) { 238 ret := m.ctrl.Call(m, "Units") 239 ret0, _ := ret[0].([]containerizer.Unit) 240 ret1, _ := ret[1].(error) 241 return ret0, ret1 242 } 243 244 // Units indicates an expected call of Units 245 func (mr *MockMachineMockRecorder) Units() *gomock.Call { 246 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Units", reflect.TypeOf((*MockMachine)(nil).Units)) 247 }