github.com/release-engineering/exodus-rsync@v1.11.2/internal/gw/mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: gw.go 3 4 // Package gw is a generated GoMock package. 5 package gw 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 conf "github.com/release-engineering/exodus-rsync/internal/conf" 13 walk "github.com/release-engineering/exodus-rsync/internal/walk" 14 ) 15 16 // MockInterface is a mock of Interface interface. 17 type MockInterface struct { 18 ctrl *gomock.Controller 19 recorder *MockInterfaceMockRecorder 20 } 21 22 // MockInterfaceMockRecorder is the mock recorder for MockInterface. 23 type MockInterfaceMockRecorder struct { 24 mock *MockInterface 25 } 26 27 // NewMockInterface creates a new mock instance. 28 func NewMockInterface(ctrl *gomock.Controller) *MockInterface { 29 mock := &MockInterface{ctrl: ctrl} 30 mock.recorder = &MockInterfaceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use. 35 func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder { 36 return m.recorder 37 } 38 39 // NewClient mocks base method. 40 func (m *MockInterface) NewClient(arg0 context.Context, arg1 conf.Config) (Client, error) { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "NewClient", arg0, arg1) 43 ret0, _ := ret[0].(Client) 44 ret1, _ := ret[1].(error) 45 return ret0, ret1 46 } 47 48 // NewClient indicates an expected call of NewClient. 49 func (mr *MockInterfaceMockRecorder) NewClient(arg0, arg1 interface{}) *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewClient", reflect.TypeOf((*MockInterface)(nil).NewClient), arg0, arg1) 52 } 53 54 // NewDryRunClient mocks base method. 55 func (m *MockInterface) NewDryRunClient(arg0 context.Context, arg1 conf.Config) (Client, error) { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "NewDryRunClient", arg0, arg1) 58 ret0, _ := ret[0].(Client) 59 ret1, _ := ret[1].(error) 60 return ret0, ret1 61 } 62 63 // NewDryRunClient indicates an expected call of NewDryRunClient. 64 func (mr *MockInterfaceMockRecorder) NewDryRunClient(arg0, arg1 interface{}) *gomock.Call { 65 mr.mock.ctrl.T.Helper() 66 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDryRunClient", reflect.TypeOf((*MockInterface)(nil).NewDryRunClient), arg0, arg1) 67 } 68 69 // MockClient is a mock of Client interface. 70 type MockClient struct { 71 ctrl *gomock.Controller 72 recorder *MockClientMockRecorder 73 } 74 75 // MockClientMockRecorder is the mock recorder for MockClient. 76 type MockClientMockRecorder struct { 77 mock *MockClient 78 } 79 80 // NewMockClient creates a new mock instance. 81 func NewMockClient(ctrl *gomock.Controller) *MockClient { 82 mock := &MockClient{ctrl: ctrl} 83 mock.recorder = &MockClientMockRecorder{mock} 84 return mock 85 } 86 87 // EXPECT returns an object that allows the caller to indicate expected use. 88 func (m *MockClient) EXPECT() *MockClientMockRecorder { 89 return m.recorder 90 } 91 92 // EnsureUploaded mocks base method. 93 func (m *MockClient) EnsureUploaded(ctx context.Context, items []walk.SyncItem, onUploaded, onPresent, onDuplicate func(walk.SyncItem) error) error { 94 m.ctrl.T.Helper() 95 ret := m.ctrl.Call(m, "EnsureUploaded", ctx, items, onUploaded, onPresent, onDuplicate) 96 ret0, _ := ret[0].(error) 97 return ret0 98 } 99 100 // EnsureUploaded indicates an expected call of EnsureUploaded. 101 func (mr *MockClientMockRecorder) EnsureUploaded(ctx, items, onUploaded, onPresent, onDuplicate interface{}) *gomock.Call { 102 mr.mock.ctrl.T.Helper() 103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnsureUploaded", reflect.TypeOf((*MockClient)(nil).EnsureUploaded), ctx, items, onUploaded, onPresent, onDuplicate) 104 } 105 106 // GetPublish mocks base method. 107 func (m *MockClient) GetPublish(ctx context.Context, id string) (Publish, error) { 108 m.ctrl.T.Helper() 109 ret := m.ctrl.Call(m, "GetPublish", ctx, id) 110 ret0, _ := ret[0].(Publish) 111 ret1, _ := ret[1].(error) 112 return ret0, ret1 113 } 114 115 // GetPublish indicates an expected call of GetPublish. 116 func (mr *MockClientMockRecorder) GetPublish(ctx, id interface{}) *gomock.Call { 117 mr.mock.ctrl.T.Helper() 118 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPublish", reflect.TypeOf((*MockClient)(nil).GetPublish), ctx, id) 119 } 120 121 // NewPublish mocks base method. 122 func (m *MockClient) NewPublish(arg0 context.Context) (Publish, error) { 123 m.ctrl.T.Helper() 124 ret := m.ctrl.Call(m, "NewPublish", arg0) 125 ret0, _ := ret[0].(Publish) 126 ret1, _ := ret[1].(error) 127 return ret0, ret1 128 } 129 130 // NewPublish indicates an expected call of NewPublish. 131 func (mr *MockClientMockRecorder) NewPublish(arg0 interface{}) *gomock.Call { 132 mr.mock.ctrl.T.Helper() 133 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewPublish", reflect.TypeOf((*MockClient)(nil).NewPublish), arg0) 134 } 135 136 // WhoAmI mocks base method. 137 func (m *MockClient) WhoAmI(arg0 context.Context) (map[string]interface{}, error) { 138 m.ctrl.T.Helper() 139 ret := m.ctrl.Call(m, "WhoAmI", arg0) 140 ret0, _ := ret[0].(map[string]interface{}) 141 ret1, _ := ret[1].(error) 142 return ret0, ret1 143 } 144 145 // WhoAmI indicates an expected call of WhoAmI. 146 func (mr *MockClientMockRecorder) WhoAmI(arg0 interface{}) *gomock.Call { 147 mr.mock.ctrl.T.Helper() 148 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WhoAmI", reflect.TypeOf((*MockClient)(nil).WhoAmI), arg0) 149 } 150 151 // MockPublish is a mock of Publish interface. 152 type MockPublish struct { 153 ctrl *gomock.Controller 154 recorder *MockPublishMockRecorder 155 } 156 157 // MockPublishMockRecorder is the mock recorder for MockPublish. 158 type MockPublishMockRecorder struct { 159 mock *MockPublish 160 } 161 162 // NewMockPublish creates a new mock instance. 163 func NewMockPublish(ctrl *gomock.Controller) *MockPublish { 164 mock := &MockPublish{ctrl: ctrl} 165 mock.recorder = &MockPublishMockRecorder{mock} 166 return mock 167 } 168 169 // EXPECT returns an object that allows the caller to indicate expected use. 170 func (m *MockPublish) EXPECT() *MockPublishMockRecorder { 171 return m.recorder 172 } 173 174 // AddItems mocks base method. 175 func (m *MockPublish) AddItems(arg0 context.Context, arg1 []ItemInput) error { 176 m.ctrl.T.Helper() 177 ret := m.ctrl.Call(m, "AddItems", arg0, arg1) 178 ret0, _ := ret[0].(error) 179 return ret0 180 } 181 182 // AddItems indicates an expected call of AddItems. 183 func (mr *MockPublishMockRecorder) AddItems(arg0, arg1 interface{}) *gomock.Call { 184 mr.mock.ctrl.T.Helper() 185 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddItems", reflect.TypeOf((*MockPublish)(nil).AddItems), arg0, arg1) 186 } 187 188 // Commit mocks base method. 189 func (m *MockPublish) Commit(ctx context.Context, mode string) error { 190 m.ctrl.T.Helper() 191 ret := m.ctrl.Call(m, "Commit", ctx, mode) 192 ret0, _ := ret[0].(error) 193 return ret0 194 } 195 196 // Commit indicates an expected call of Commit. 197 func (mr *MockPublishMockRecorder) Commit(ctx, mode interface{}) *gomock.Call { 198 mr.mock.ctrl.T.Helper() 199 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockPublish)(nil).Commit), ctx, mode) 200 } 201 202 // ID mocks base method. 203 func (m *MockPublish) ID() string { 204 m.ctrl.T.Helper() 205 ret := m.ctrl.Call(m, "ID") 206 ret0, _ := ret[0].(string) 207 return ret0 208 } 209 210 // ID indicates an expected call of ID. 211 func (mr *MockPublishMockRecorder) ID() *gomock.Call { 212 mr.mock.ctrl.T.Helper() 213 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockPublish)(nil).ID)) 214 } 215 216 // MockTask is a mock of Task interface. 217 type MockTask struct { 218 ctrl *gomock.Controller 219 recorder *MockTaskMockRecorder 220 } 221 222 // MockTaskMockRecorder is the mock recorder for MockTask. 223 type MockTaskMockRecorder struct { 224 mock *MockTask 225 } 226 227 // NewMockTask creates a new mock instance. 228 func NewMockTask(ctrl *gomock.Controller) *MockTask { 229 mock := &MockTask{ctrl: ctrl} 230 mock.recorder = &MockTaskMockRecorder{mock} 231 return mock 232 } 233 234 // EXPECT returns an object that allows the caller to indicate expected use. 235 func (m *MockTask) EXPECT() *MockTaskMockRecorder { 236 return m.recorder 237 } 238 239 // Await mocks base method. 240 func (m *MockTask) Await(arg0 context.Context) error { 241 m.ctrl.T.Helper() 242 ret := m.ctrl.Call(m, "Await", arg0) 243 ret0, _ := ret[0].(error) 244 return ret0 245 } 246 247 // Await indicates an expected call of Await. 248 func (mr *MockTaskMockRecorder) Await(arg0 interface{}) *gomock.Call { 249 mr.mock.ctrl.T.Helper() 250 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Await", reflect.TypeOf((*MockTask)(nil).Await), arg0) 251 } 252 253 // ID mocks base method. 254 func (m *MockTask) ID() string { 255 m.ctrl.T.Helper() 256 ret := m.ctrl.Call(m, "ID") 257 ret0, _ := ret[0].(string) 258 return ret0 259 } 260 261 // ID indicates an expected call of ID. 262 func (mr *MockTaskMockRecorder) ID() *gomock.Call { 263 mr.mock.ctrl.T.Helper() 264 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ID", reflect.TypeOf((*MockTask)(nil).ID)) 265 }