Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockStorage
- func (m *MockStorage) Close()
- func (m *MockStorage) CopyFrom(arg0 context.Context, arg1 schema.Resources, arg2 bool, ...) error
- func (m *MockStorage) Delete(arg0 context.Context, arg1 *schema.Table, arg2 []interface{}) error
- func (m *MockStorage) Dialect() schema.Dialect
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) error
- func (m *MockStorage) Insert(arg0 context.Context, arg1 *schema.Table, arg2 schema.Resources) error
- func (m *MockStorage) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
- func (m *MockStorage) RawCopyFrom(arg0 context.Context, arg1 io.Reader, arg2 string) error
- func (m *MockStorage) RawCopyTo(arg0 context.Context, arg1 io.Writer, arg2 string) error
- func (m *MockStorage) RemoveStaleData(arg0 context.Context, arg1 *schema.Table, arg2 time.Time, arg3 []interface{}) error
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) Close() *gomock.Call
- func (mr *MockStorageMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Dialect() *gomock.Call
- func (mr *MockStorageMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Insert(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) RawCopyFrom(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) RawCopyTo(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) RemoveStaleData(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) CopyFrom ¶
func (m *MockStorage) CopyFrom(arg0 context.Context, arg1 schema.Resources, arg2 bool, arg3 map[string]interface{}) error
CopyFrom mocks base method.
func (*MockStorage) Dialect ¶
func (m *MockStorage) Dialect() schema.Dialect
Dialect mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) Exec ¶
func (m *MockStorage) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) error
Exec mocks base method.
func (*MockStorage) Query ¶
func (m *MockStorage) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
Query mocks base method.
func (*MockStorage) RawCopyFrom ¶ added in v0.7.4
RawCopyFrom mocks base method.
func (*MockStorage) RemoveStaleData ¶
func (m *MockStorage) RemoveStaleData(arg0 context.Context, arg1 *schema.Table, arg2 time.Time, arg3 []interface{}) error
RemoveStaleData mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Close ¶
func (mr *MockStorageMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStorageMockRecorder) CopyFrom ¶
func (mr *MockStorageMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CopyFrom indicates an expected call of CopyFrom.
func (*MockStorageMockRecorder) Delete ¶
func (mr *MockStorageMockRecorder) Delete(arg0, arg1, arg2 interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStorageMockRecorder) Dialect ¶
func (mr *MockStorageMockRecorder) Dialect() *gomock.Call
Dialect indicates an expected call of Dialect.
func (*MockStorageMockRecorder) Exec ¶
func (mr *MockStorageMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockStorageMockRecorder) Insert ¶
func (mr *MockStorageMockRecorder) Insert(arg0, arg1, arg2 interface{}) *gomock.Call
Insert indicates an expected call of Insert.
func (*MockStorageMockRecorder) Query ¶
func (mr *MockStorageMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockStorageMockRecorder) RawCopyFrom ¶ added in v0.7.4
func (mr *MockStorageMockRecorder) RawCopyFrom(arg0, arg1, arg2 interface{}) *gomock.Call
RawCopyFrom indicates an expected call of RawCopyFrom.
func (*MockStorageMockRecorder) RawCopyTo ¶ added in v0.7.4
func (mr *MockStorageMockRecorder) RawCopyTo(arg0, arg1, arg2 interface{}) *gomock.Call
RawCopyTo indicates an expected call of RawCopyTo.
func (*MockStorageMockRecorder) RemoveStaleData ¶
func (mr *MockStorageMockRecorder) RemoveStaleData(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
RemoveStaleData indicates an expected call of RemoveStaleData.