github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/agent/provisioner/mocks/containerizer_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/network/containerizer (interfaces: LinkLayerDevice,Unit,Application,Charm)
     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  	containerizer "github.com/juju/juju/network/containerizer"
    12  	state "github.com/juju/juju/state"
    13  	charm_v6 "gopkg.in/juju/charm.v6"
    14  )
    15  
    16  // MockLinkLayerDevice is a mock of LinkLayerDevice interface
    17  type MockLinkLayerDevice struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockLinkLayerDeviceMockRecorder
    20  }
    21  
    22  // MockLinkLayerDeviceMockRecorder is the mock recorder for MockLinkLayerDevice
    23  type MockLinkLayerDeviceMockRecorder struct {
    24  	mock *MockLinkLayerDevice
    25  }
    26  
    27  // NewMockLinkLayerDevice creates a new mock instance
    28  func NewMockLinkLayerDevice(ctrl *gomock.Controller) *MockLinkLayerDevice {
    29  	mock := &MockLinkLayerDevice{ctrl: ctrl}
    30  	mock.recorder = &MockLinkLayerDeviceMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use
    35  func (m *MockLinkLayerDevice) EXPECT() *MockLinkLayerDeviceMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Addresses mocks base method
    40  func (m *MockLinkLayerDevice) Addresses() ([]*state.Address, error) {
    41  	ret := m.ctrl.Call(m, "Addresses")
    42  	ret0, _ := ret[0].([]*state.Address)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // Addresses indicates an expected call of Addresses
    48  func (mr *MockLinkLayerDeviceMockRecorder) Addresses() *gomock.Call {
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Addresses", reflect.TypeOf((*MockLinkLayerDevice)(nil).Addresses))
    50  }
    51  
    52  // EthernetDeviceForBridge mocks base method
    53  func (m *MockLinkLayerDevice) EthernetDeviceForBridge(arg0 string) (state.LinkLayerDeviceArgs, error) {
    54  	ret := m.ctrl.Call(m, "EthernetDeviceForBridge", arg0)
    55  	ret0, _ := ret[0].(state.LinkLayerDeviceArgs)
    56  	ret1, _ := ret[1].(error)
    57  	return ret0, ret1
    58  }
    59  
    60  // EthernetDeviceForBridge indicates an expected call of EthernetDeviceForBridge
    61  func (mr *MockLinkLayerDeviceMockRecorder) EthernetDeviceForBridge(arg0 interface{}) *gomock.Call {
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EthernetDeviceForBridge", reflect.TypeOf((*MockLinkLayerDevice)(nil).EthernetDeviceForBridge), arg0)
    63  }
    64  
    65  // IsAutoStart mocks base method
    66  func (m *MockLinkLayerDevice) IsAutoStart() bool {
    67  	ret := m.ctrl.Call(m, "IsAutoStart")
    68  	ret0, _ := ret[0].(bool)
    69  	return ret0
    70  }
    71  
    72  // IsAutoStart indicates an expected call of IsAutoStart
    73  func (mr *MockLinkLayerDeviceMockRecorder) IsAutoStart() *gomock.Call {
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsAutoStart", reflect.TypeOf((*MockLinkLayerDevice)(nil).IsAutoStart))
    75  }
    76  
    77  // IsUp mocks base method
    78  func (m *MockLinkLayerDevice) IsUp() bool {
    79  	ret := m.ctrl.Call(m, "IsUp")
    80  	ret0, _ := ret[0].(bool)
    81  	return ret0
    82  }
    83  
    84  // IsUp indicates an expected call of IsUp
    85  func (mr *MockLinkLayerDeviceMockRecorder) IsUp() *gomock.Call {
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsUp", reflect.TypeOf((*MockLinkLayerDevice)(nil).IsUp))
    87  }
    88  
    89  // MACAddress mocks base method
    90  func (m *MockLinkLayerDevice) MACAddress() string {
    91  	ret := m.ctrl.Call(m, "MACAddress")
    92  	ret0, _ := ret[0].(string)
    93  	return ret0
    94  }
    95  
    96  // MACAddress indicates an expected call of MACAddress
    97  func (mr *MockLinkLayerDeviceMockRecorder) MACAddress() *gomock.Call {
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MACAddress", reflect.TypeOf((*MockLinkLayerDevice)(nil).MACAddress))
    99  }
   100  
   101  // MTU mocks base method
   102  func (m *MockLinkLayerDevice) MTU() uint {
   103  	ret := m.ctrl.Call(m, "MTU")
   104  	ret0, _ := ret[0].(uint)
   105  	return ret0
   106  }
   107  
   108  // MTU indicates an expected call of MTU
   109  func (mr *MockLinkLayerDeviceMockRecorder) MTU() *gomock.Call {
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MTU", reflect.TypeOf((*MockLinkLayerDevice)(nil).MTU))
   111  }
   112  
   113  // Name mocks base method
   114  func (m *MockLinkLayerDevice) Name() string {
   115  	ret := m.ctrl.Call(m, "Name")
   116  	ret0, _ := ret[0].(string)
   117  	return ret0
   118  }
   119  
   120  // Name indicates an expected call of Name
   121  func (mr *MockLinkLayerDeviceMockRecorder) Name() *gomock.Call {
   122  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockLinkLayerDevice)(nil).Name))
   123  }
   124  
   125  // ParentDevice mocks base method
   126  func (m *MockLinkLayerDevice) ParentDevice() (containerizer.LinkLayerDevice, error) {
   127  	ret := m.ctrl.Call(m, "ParentDevice")
   128  	ret0, _ := ret[0].(containerizer.LinkLayerDevice)
   129  	ret1, _ := ret[1].(error)
   130  	return ret0, ret1
   131  }
   132  
   133  // ParentDevice indicates an expected call of ParentDevice
   134  func (mr *MockLinkLayerDeviceMockRecorder) ParentDevice() *gomock.Call {
   135  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParentDevice", reflect.TypeOf((*MockLinkLayerDevice)(nil).ParentDevice))
   136  }
   137  
   138  // ParentName mocks base method
   139  func (m *MockLinkLayerDevice) ParentName() string {
   140  	ret := m.ctrl.Call(m, "ParentName")
   141  	ret0, _ := ret[0].(string)
   142  	return ret0
   143  }
   144  
   145  // ParentName indicates an expected call of ParentName
   146  func (mr *MockLinkLayerDeviceMockRecorder) ParentName() *gomock.Call {
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParentName", reflect.TypeOf((*MockLinkLayerDevice)(nil).ParentName))
   148  }
   149  
   150  // Type mocks base method
   151  func (m *MockLinkLayerDevice) Type() state.LinkLayerDeviceType {
   152  	ret := m.ctrl.Call(m, "Type")
   153  	ret0, _ := ret[0].(state.LinkLayerDeviceType)
   154  	return ret0
   155  }
   156  
   157  // Type indicates an expected call of Type
   158  func (mr *MockLinkLayerDeviceMockRecorder) Type() *gomock.Call {
   159  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockLinkLayerDevice)(nil).Type))
   160  }
   161  
   162  // MockUnit is a mock of Unit interface
   163  type MockUnit struct {
   164  	ctrl     *gomock.Controller
   165  	recorder *MockUnitMockRecorder
   166  }
   167  
   168  // MockUnitMockRecorder is the mock recorder for MockUnit
   169  type MockUnitMockRecorder struct {
   170  	mock *MockUnit
   171  }
   172  
   173  // NewMockUnit creates a new mock instance
   174  func NewMockUnit(ctrl *gomock.Controller) *MockUnit {
   175  	mock := &MockUnit{ctrl: ctrl}
   176  	mock.recorder = &MockUnitMockRecorder{mock}
   177  	return mock
   178  }
   179  
   180  // EXPECT returns an object that allows the caller to indicate expected use
   181  func (m *MockUnit) EXPECT() *MockUnitMockRecorder {
   182  	return m.recorder
   183  }
   184  
   185  // Application mocks base method
   186  func (m *MockUnit) Application() (containerizer.Application, error) {
   187  	ret := m.ctrl.Call(m, "Application")
   188  	ret0, _ := ret[0].(containerizer.Application)
   189  	ret1, _ := ret[1].(error)
   190  	return ret0, ret1
   191  }
   192  
   193  // Application indicates an expected call of Application
   194  func (mr *MockUnitMockRecorder) Application() *gomock.Call {
   195  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Application", reflect.TypeOf((*MockUnit)(nil).Application))
   196  }
   197  
   198  // Name mocks base method
   199  func (m *MockUnit) Name() string {
   200  	ret := m.ctrl.Call(m, "Name")
   201  	ret0, _ := ret[0].(string)
   202  	return ret0
   203  }
   204  
   205  // Name indicates an expected call of Name
   206  func (mr *MockUnitMockRecorder) Name() *gomock.Call {
   207  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockUnit)(nil).Name))
   208  }
   209  
   210  // MockApplication is a mock of Application interface
   211  type MockApplication struct {
   212  	ctrl     *gomock.Controller
   213  	recorder *MockApplicationMockRecorder
   214  }
   215  
   216  // MockApplicationMockRecorder is the mock recorder for MockApplication
   217  type MockApplicationMockRecorder struct {
   218  	mock *MockApplication
   219  }
   220  
   221  // NewMockApplication creates a new mock instance
   222  func NewMockApplication(ctrl *gomock.Controller) *MockApplication {
   223  	mock := &MockApplication{ctrl: ctrl}
   224  	mock.recorder = &MockApplicationMockRecorder{mock}
   225  	return mock
   226  }
   227  
   228  // EXPECT returns an object that allows the caller to indicate expected use
   229  func (m *MockApplication) EXPECT() *MockApplicationMockRecorder {
   230  	return m.recorder
   231  }
   232  
   233  // Charm mocks base method
   234  func (m *MockApplication) Charm() (containerizer.Charm, bool, error) {
   235  	ret := m.ctrl.Call(m, "Charm")
   236  	ret0, _ := ret[0].(containerizer.Charm)
   237  	ret1, _ := ret[1].(bool)
   238  	ret2, _ := ret[2].(error)
   239  	return ret0, ret1, ret2
   240  }
   241  
   242  // Charm indicates an expected call of Charm
   243  func (mr *MockApplicationMockRecorder) Charm() *gomock.Call {
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Charm", reflect.TypeOf((*MockApplication)(nil).Charm))
   245  }
   246  
   247  // Name mocks base method
   248  func (m *MockApplication) Name() string {
   249  	ret := m.ctrl.Call(m, "Name")
   250  	ret0, _ := ret[0].(string)
   251  	return ret0
   252  }
   253  
   254  // Name indicates an expected call of Name
   255  func (mr *MockApplicationMockRecorder) Name() *gomock.Call {
   256  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockApplication)(nil).Name))
   257  }
   258  
   259  // MockCharm is a mock of Charm interface
   260  type MockCharm struct {
   261  	ctrl     *gomock.Controller
   262  	recorder *MockCharmMockRecorder
   263  }
   264  
   265  // MockCharmMockRecorder is the mock recorder for MockCharm
   266  type MockCharmMockRecorder struct {
   267  	mock *MockCharm
   268  }
   269  
   270  // NewMockCharm creates a new mock instance
   271  func NewMockCharm(ctrl *gomock.Controller) *MockCharm {
   272  	mock := &MockCharm{ctrl: ctrl}
   273  	mock.recorder = &MockCharmMockRecorder{mock}
   274  	return mock
   275  }
   276  
   277  // EXPECT returns an object that allows the caller to indicate expected use
   278  func (m *MockCharm) EXPECT() *MockCharmMockRecorder {
   279  	return m.recorder
   280  }
   281  
   282  // LXDProfile mocks base method
   283  func (m *MockCharm) LXDProfile() *charm_v6.LXDProfile {
   284  	ret := m.ctrl.Call(m, "LXDProfile")
   285  	ret0, _ := ret[0].(*charm_v6.LXDProfile)
   286  	return ret0
   287  }
   288  
   289  // LXDProfile indicates an expected call of LXDProfile
   290  func (mr *MockCharmMockRecorder) LXDProfile() *gomock.Call {
   291  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LXDProfile", reflect.TypeOf((*MockCharm)(nil).LXDProfile))
   292  }
   293  
   294  // Revision mocks base method
   295  func (m *MockCharm) Revision() int {
   296  	ret := m.ctrl.Call(m, "Revision")
   297  	ret0, _ := ret[0].(int)
   298  	return ret0
   299  }
   300  
   301  // Revision indicates an expected call of Revision
   302  func (mr *MockCharmMockRecorder) Revision() *gomock.Call {
   303  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Revision", reflect.TypeOf((*MockCharm)(nil).Revision))
   304  }