github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/worker/provisioner/mocks/lxdprofileinstancebroker_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/juju/juju/worker/provisioner (interfaces: LXDProfileInstanceBroker)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	instance "github.com/juju/juju/core/instance"
    10  	environs "github.com/juju/juju/environs"
    11  	context "github.com/juju/juju/environs/context"
    12  	instances "github.com/juju/juju/environs/instances"
    13  	charm_v6 "gopkg.in/juju/charm.v6"
    14  	reflect "reflect"
    15  )
    16  
    17  // MockLXDProfileInstanceBroker is a mock of LXDProfileInstanceBroker interface
    18  type MockLXDProfileInstanceBroker struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockLXDProfileInstanceBrokerMockRecorder
    21  }
    22  
    23  // MockLXDProfileInstanceBrokerMockRecorder is the mock recorder for MockLXDProfileInstanceBroker
    24  type MockLXDProfileInstanceBrokerMockRecorder struct {
    25  	mock *MockLXDProfileInstanceBroker
    26  }
    27  
    28  // NewMockLXDProfileInstanceBroker creates a new mock instance
    29  func NewMockLXDProfileInstanceBroker(ctrl *gomock.Controller) *MockLXDProfileInstanceBroker {
    30  	mock := &MockLXDProfileInstanceBroker{ctrl: ctrl}
    31  	mock.recorder = &MockLXDProfileInstanceBrokerMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use
    36  func (m *MockLXDProfileInstanceBroker) EXPECT() *MockLXDProfileInstanceBrokerMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // AllInstances mocks base method
    41  func (m *MockLXDProfileInstanceBroker) AllInstances(arg0 context.ProviderCallContext) ([]instances.Instance, error) {
    42  	ret := m.ctrl.Call(m, "AllInstances", arg0)
    43  	ret0, _ := ret[0].([]instances.Instance)
    44  	ret1, _ := ret[1].(error)
    45  	return ret0, ret1
    46  }
    47  
    48  // AllInstances indicates an expected call of AllInstances
    49  func (mr *MockLXDProfileInstanceBrokerMockRecorder) AllInstances(arg0 interface{}) *gomock.Call {
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AllInstances", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).AllInstances), arg0)
    51  }
    52  
    53  // LXDProfileNames mocks base method
    54  func (m *MockLXDProfileInstanceBroker) LXDProfileNames(arg0 string) ([]string, error) {
    55  	ret := m.ctrl.Call(m, "LXDProfileNames", arg0)
    56  	ret0, _ := ret[0].([]string)
    57  	ret1, _ := ret[1].(error)
    58  	return ret0, ret1
    59  }
    60  
    61  // LXDProfileNames indicates an expected call of LXDProfileNames
    62  func (mr *MockLXDProfileInstanceBrokerMockRecorder) LXDProfileNames(arg0 interface{}) *gomock.Call {
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LXDProfileNames", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).LXDProfileNames), arg0)
    64  }
    65  
    66  // MaintainInstance mocks base method
    67  func (m *MockLXDProfileInstanceBroker) MaintainInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) error {
    68  	ret := m.ctrl.Call(m, "MaintainInstance", arg0, arg1)
    69  	ret0, _ := ret[0].(error)
    70  	return ret0
    71  }
    72  
    73  // MaintainInstance indicates an expected call of MaintainInstance
    74  func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaintainInstance(arg0, arg1 interface{}) *gomock.Call {
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaintainInstance", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).MaintainInstance), arg0, arg1)
    76  }
    77  
    78  // MaybeWriteLXDProfile mocks base method
    79  func (m *MockLXDProfileInstanceBroker) MaybeWriteLXDProfile(arg0 string, arg1 *charm_v6.LXDProfile) error {
    80  	ret := m.ctrl.Call(m, "MaybeWriteLXDProfile", arg0, arg1)
    81  	ret0, _ := ret[0].(error)
    82  	return ret0
    83  }
    84  
    85  // MaybeWriteLXDProfile indicates an expected call of MaybeWriteLXDProfile
    86  func (mr *MockLXDProfileInstanceBrokerMockRecorder) MaybeWriteLXDProfile(arg0, arg1 interface{}) *gomock.Call {
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybeWriteLXDProfile", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).MaybeWriteLXDProfile), arg0, arg1)
    88  }
    89  
    90  // ReplaceOrAddInstanceProfile mocks base method
    91  func (m *MockLXDProfileInstanceBroker) ReplaceOrAddInstanceProfile(arg0, arg1, arg2 string, arg3 *charm_v6.LXDProfile) ([]string, error) {
    92  	ret := m.ctrl.Call(m, "ReplaceOrAddInstanceProfile", arg0, arg1, arg2, arg3)
    93  	ret0, _ := ret[0].([]string)
    94  	ret1, _ := ret[1].(error)
    95  	return ret0, ret1
    96  }
    97  
    98  // ReplaceOrAddInstanceProfile indicates an expected call of ReplaceOrAddInstanceProfile
    99  func (mr *MockLXDProfileInstanceBrokerMockRecorder) ReplaceOrAddInstanceProfile(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   100  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplaceOrAddInstanceProfile", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).ReplaceOrAddInstanceProfile), arg0, arg1, arg2, arg3)
   101  }
   102  
   103  // StartInstance mocks base method
   104  func (m *MockLXDProfileInstanceBroker) StartInstance(arg0 context.ProviderCallContext, arg1 environs.StartInstanceParams) (*environs.StartInstanceResult, error) {
   105  	ret := m.ctrl.Call(m, "StartInstance", arg0, arg1)
   106  	ret0, _ := ret[0].(*environs.StartInstanceResult)
   107  	ret1, _ := ret[1].(error)
   108  	return ret0, ret1
   109  }
   110  
   111  // StartInstance indicates an expected call of StartInstance
   112  func (mr *MockLXDProfileInstanceBrokerMockRecorder) StartInstance(arg0, arg1 interface{}) *gomock.Call {
   113  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartInstance", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).StartInstance), arg0, arg1)
   114  }
   115  
   116  // StopInstances mocks base method
   117  func (m *MockLXDProfileInstanceBroker) StopInstances(arg0 context.ProviderCallContext, arg1 ...instance.Id) error {
   118  	varargs := []interface{}{arg0}
   119  	for _, a := range arg1 {
   120  		varargs = append(varargs, a)
   121  	}
   122  	ret := m.ctrl.Call(m, "StopInstances", varargs...)
   123  	ret0, _ := ret[0].(error)
   124  	return ret0
   125  }
   126  
   127  // StopInstances indicates an expected call of StopInstances
   128  func (mr *MockLXDProfileInstanceBrokerMockRecorder) StopInstances(arg0 interface{}, arg1 ...interface{}) *gomock.Call {
   129  	varargs := append([]interface{}{arg0}, arg1...)
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StopInstances", reflect.TypeOf((*MockLXDProfileInstanceBroker)(nil).StopInstances), varargs...)
   131  }