github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/apiserver/facades/client/application/mocks/charmstore_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/juju/juju/apiserver/facades/client/application (interfaces: State) 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 application "github.com/juju/juju/apiserver/facades/client/application" 12 controller "github.com/juju/juju/controller" 13 state "github.com/juju/juju/state" 14 charm_v6 "gopkg.in/juju/charm.v6" 15 mgo_v2 "gopkg.in/mgo.v2" 16 ) 17 18 // MockState is a mock of State interface 19 type MockState struct { 20 ctrl *gomock.Controller 21 recorder *MockStateMockRecorder 22 } 23 24 // MockStateMockRecorder is the mock recorder for MockState 25 type MockStateMockRecorder struct { 26 mock *MockState 27 } 28 29 // NewMockState creates a new mock instance 30 func NewMockState(ctrl *gomock.Controller) *MockState { 31 mock := &MockState{ctrl: ctrl} 32 mock.recorder = &MockStateMockRecorder{mock} 33 return mock 34 } 35 36 // EXPECT returns an object that allows the caller to indicate expected use 37 func (m *MockState) EXPECT() *MockStateMockRecorder { 38 return m.recorder 39 } 40 41 // ControllerConfig mocks base method 42 func (m *MockState) ControllerConfig() (controller.Config, error) { 43 ret := m.ctrl.Call(m, "ControllerConfig") 44 ret0, _ := ret[0].(controller.Config) 45 ret1, _ := ret[1].(error) 46 return ret0, ret1 47 } 48 49 // ControllerConfig indicates an expected call of ControllerConfig 50 func (mr *MockStateMockRecorder) ControllerConfig() *gomock.Call { 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ControllerConfig", reflect.TypeOf((*MockState)(nil).ControllerConfig)) 52 } 53 54 // Model mocks base method 55 func (m *MockState) Model() (application.StateModel, error) { 56 ret := m.ctrl.Call(m, "Model") 57 ret0, _ := ret[0].(application.StateModel) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // Model indicates an expected call of Model 63 func (mr *MockStateMockRecorder) Model() *gomock.Call { 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Model", reflect.TypeOf((*MockState)(nil).Model)) 65 } 66 67 // ModelUUID mocks base method 68 func (m *MockState) ModelUUID() string { 69 ret := m.ctrl.Call(m, "ModelUUID") 70 ret0, _ := ret[0].(string) 71 return ret0 72 } 73 74 // ModelUUID indicates an expected call of ModelUUID 75 func (mr *MockStateMockRecorder) ModelUUID() *gomock.Call { 76 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModelUUID", reflect.TypeOf((*MockState)(nil).ModelUUID)) 77 } 78 79 // MongoSession mocks base method 80 func (m *MockState) MongoSession() *mgo_v2.Session { 81 ret := m.ctrl.Call(m, "MongoSession") 82 ret0, _ := ret[0].(*mgo_v2.Session) 83 return ret0 84 } 85 86 // MongoSession indicates an expected call of MongoSession 87 func (mr *MockStateMockRecorder) MongoSession() *gomock.Call { 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MongoSession", reflect.TypeOf((*MockState)(nil).MongoSession)) 89 } 90 91 // PrepareStoreCharmUpload mocks base method 92 func (m *MockState) PrepareStoreCharmUpload(arg0 *charm_v6.URL) (application.StateCharm, error) { 93 ret := m.ctrl.Call(m, "PrepareStoreCharmUpload", arg0) 94 ret0, _ := ret[0].(application.StateCharm) 95 ret1, _ := ret[1].(error) 96 return ret0, ret1 97 } 98 99 // PrepareStoreCharmUpload indicates an expected call of PrepareStoreCharmUpload 100 func (mr *MockStateMockRecorder) PrepareStoreCharmUpload(arg0 interface{}) *gomock.Call { 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrepareStoreCharmUpload", reflect.TypeOf((*MockState)(nil).PrepareStoreCharmUpload), arg0) 102 } 103 104 // UpdateUploadedCharm mocks base method 105 func (m *MockState) UpdateUploadedCharm(arg0 state.CharmInfo) (*state.Charm, error) { 106 ret := m.ctrl.Call(m, "UpdateUploadedCharm", arg0) 107 ret0, _ := ret[0].(*state.Charm) 108 ret1, _ := ret[1].(error) 109 return ret0, ret1 110 } 111 112 // UpdateUploadedCharm indicates an expected call of UpdateUploadedCharm 113 func (mr *MockStateMockRecorder) UpdateUploadedCharm(arg0 interface{}) *gomock.Call { 114 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateUploadedCharm", reflect.TypeOf((*MockState)(nil).UpdateUploadedCharm), arg0) 115 }