go.temporal.io/server@v1.23.0/common/archiver/provider/provider_mock.go (about) 1 // The MIT License 2 // 3 // Copyright (c) 2020 Temporal Technologies Inc. All rights reserved. 4 // 5 // Copyright (c) 2020 Uber Technologies, Inc. 6 // 7 // Permission is hereby granted, free of charge, to any person obtaining a copy 8 // of this software and associated documentation files (the "Software"), to deal 9 // in the Software without restriction, including without limitation the rights 10 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 // copies of the Software, and to permit persons to whom the Software is 12 // furnished to do so, subject to the following conditions: 13 // 14 // The above copyright notice and this permission notice shall be included in 15 // all copies or substantial portions of the Software. 16 // 17 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 // THE SOFTWARE. 24 25 // Code generated by MockGen. DO NOT EDIT. 26 // Source: provider.go 27 28 // Package provider is a generated GoMock package. 29 package provider 30 31 import ( 32 reflect "reflect" 33 34 gomock "github.com/golang/mock/gomock" 35 archiver "go.temporal.io/server/common/archiver" 36 ) 37 38 // MockArchiverProvider is a mock of ArchiverProvider interface. 39 type MockArchiverProvider struct { 40 ctrl *gomock.Controller 41 recorder *MockArchiverProviderMockRecorder 42 } 43 44 // MockArchiverProviderMockRecorder is the mock recorder for MockArchiverProvider. 45 type MockArchiverProviderMockRecorder struct { 46 mock *MockArchiverProvider 47 } 48 49 // NewMockArchiverProvider creates a new mock instance. 50 func NewMockArchiverProvider(ctrl *gomock.Controller) *MockArchiverProvider { 51 mock := &MockArchiverProvider{ctrl: ctrl} 52 mock.recorder = &MockArchiverProviderMockRecorder{mock} 53 return mock 54 } 55 56 // EXPECT returns an object that allows the caller to indicate expected use. 57 func (m *MockArchiverProvider) EXPECT() *MockArchiverProviderMockRecorder { 58 return m.recorder 59 } 60 61 // GetHistoryArchiver mocks base method. 62 func (m *MockArchiverProvider) GetHistoryArchiver(scheme, serviceName string) (archiver.HistoryArchiver, error) { 63 m.ctrl.T.Helper() 64 ret := m.ctrl.Call(m, "GetHistoryArchiver", scheme, serviceName) 65 ret0, _ := ret[0].(archiver.HistoryArchiver) 66 ret1, _ := ret[1].(error) 67 return ret0, ret1 68 } 69 70 // GetHistoryArchiver indicates an expected call of GetHistoryArchiver. 71 func (mr *MockArchiverProviderMockRecorder) GetHistoryArchiver(scheme, serviceName interface{}) *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistoryArchiver", reflect.TypeOf((*MockArchiverProvider)(nil).GetHistoryArchiver), scheme, serviceName) 74 } 75 76 // GetVisibilityArchiver mocks base method. 77 func (m *MockArchiverProvider) GetVisibilityArchiver(scheme, serviceName string) (archiver.VisibilityArchiver, error) { 78 m.ctrl.T.Helper() 79 ret := m.ctrl.Call(m, "GetVisibilityArchiver", scheme, serviceName) 80 ret0, _ := ret[0].(archiver.VisibilityArchiver) 81 ret1, _ := ret[1].(error) 82 return ret0, ret1 83 } 84 85 // GetVisibilityArchiver indicates an expected call of GetVisibilityArchiver. 86 func (mr *MockArchiverProviderMockRecorder) GetVisibilityArchiver(scheme, serviceName interface{}) *gomock.Call { 87 mr.mock.ctrl.T.Helper() 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetVisibilityArchiver", reflect.TypeOf((*MockArchiverProvider)(nil).GetVisibilityArchiver), scheme, serviceName) 89 } 90 91 // RegisterBootstrapContainer mocks base method. 92 func (m *MockArchiverProvider) RegisterBootstrapContainer(serviceName string, historyContainer *archiver.HistoryBootstrapContainer, visibilityContainter *archiver.VisibilityBootstrapContainer) error { 93 m.ctrl.T.Helper() 94 ret := m.ctrl.Call(m, "RegisterBootstrapContainer", serviceName, historyContainer, visibilityContainter) 95 ret0, _ := ret[0].(error) 96 return ret0 97 } 98 99 // RegisterBootstrapContainer indicates an expected call of RegisterBootstrapContainer. 100 func (mr *MockArchiverProviderMockRecorder) RegisterBootstrapContainer(serviceName, historyContainer, visibilityContainter interface{}) *gomock.Call { 101 mr.mock.ctrl.T.Helper() 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterBootstrapContainer", reflect.TypeOf((*MockArchiverProvider)(nil).RegisterBootstrapContainer), serviceName, historyContainer, visibilityContainter) 103 }