Documentation
¶
Index ¶
- type ConnectorService
- type ConnectorService_Expecter
- type ConnectorService_GetContentConnector_Call
- func (_c *ConnectorService_GetContentConnector_Call) Return(_a0 connector.ContentConnectorService) *ConnectorService_GetContentConnector_Call
- func (_c *ConnectorService_GetContentConnector_Call) Run(run func()) *ConnectorService_GetContentConnector_Call
- func (_c *ConnectorService_GetContentConnector_Call) RunAndReturn(run func() connector.ContentConnectorService) *ConnectorService_GetContentConnector_Call
- type ConnectorService_GetFileConnector_Call
- func (_c *ConnectorService_GetFileConnector_Call) Return(_a0 connector.FileConnectorService) *ConnectorService_GetFileConnector_Call
- func (_c *ConnectorService_GetFileConnector_Call) Run(run func()) *ConnectorService_GetFileConnector_Call
- func (_c *ConnectorService_GetFileConnector_Call) RunAndReturn(run func() connector.FileConnectorService) *ConnectorService_GetFileConnector_Call
- type ContentConnectorService
- func (_m *ContentConnectorService) EXPECT() *ContentConnectorService_Expecter
- func (_m *ContentConnectorService) GetFile(ctx context.Context, w http.ResponseWriter) error
- func (_m *ContentConnectorService) PutFile(ctx context.Context, stream io.Reader, streamLength int64, lockID string) (*connector.ConnectorResponse, error)
- type ContentConnectorService_Expecter
- type ContentConnectorService_GetFile_Call
- func (_c *ContentConnectorService_GetFile_Call) Return(_a0 error) *ContentConnectorService_GetFile_Call
- func (_c *ContentConnectorService_GetFile_Call) Run(run func(ctx context.Context, w http.ResponseWriter)) *ContentConnectorService_GetFile_Call
- func (_c *ContentConnectorService_GetFile_Call) RunAndReturn(run func(context.Context, http.ResponseWriter) error) *ContentConnectorService_GetFile_Call
- type ContentConnectorService_PutFile_Call
- func (_c *ContentConnectorService_PutFile_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *ContentConnectorService_PutFile_Call
- func (_c *ContentConnectorService_PutFile_Call) Run(...) *ContentConnectorService_PutFile_Call
- func (_c *ContentConnectorService_PutFile_Call) RunAndReturn(...) *ContentConnectorService_PutFile_Call
- type FileConnectorService
- func (_m *FileConnectorService) CheckFileInfo(ctx context.Context) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) DeleteFile(ctx context.Context, lockID string) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) EXPECT() *FileConnectorService_Expecter
- func (_m *FileConnectorService) GetLock(ctx context.Context) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) Lock(ctx context.Context, lockID string, oldLockID string) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) PutRelativeFileRelative(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, ...) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) PutRelativeFileSuggested(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, ...) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) RefreshLock(ctx context.Context, lockID string) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) RenameFile(ctx context.Context, lockID string, target string) (*connector.ConnectorResponse, error)
- func (_m *FileConnectorService) UnLock(ctx context.Context, lockID string) (*connector.ConnectorResponse, error)
- type FileConnectorService_CheckFileInfo_Call
- func (_c *FileConnectorService_CheckFileInfo_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_CheckFileInfo_Call
- func (_c *FileConnectorService_CheckFileInfo_Call) Run(run func(ctx context.Context)) *FileConnectorService_CheckFileInfo_Call
- func (_c *FileConnectorService_CheckFileInfo_Call) RunAndReturn(run func(context.Context) (*connector.ConnectorResponse, error)) *FileConnectorService_CheckFileInfo_Call
- type FileConnectorService_DeleteFile_Call
- func (_c *FileConnectorService_DeleteFile_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_DeleteFile_Call
- func (_c *FileConnectorService_DeleteFile_Call) Run(run func(ctx context.Context, lockID string)) *FileConnectorService_DeleteFile_Call
- func (_c *FileConnectorService_DeleteFile_Call) RunAndReturn(run func(context.Context, string) (*connector.ConnectorResponse, error)) *FileConnectorService_DeleteFile_Call
- type FileConnectorService_Expecter
- func (_e *FileConnectorService_Expecter) CheckFileInfo(ctx interface{}) *FileConnectorService_CheckFileInfo_Call
- func (_e *FileConnectorService_Expecter) DeleteFile(ctx interface{}, lockID interface{}) *FileConnectorService_DeleteFile_Call
- func (_e *FileConnectorService_Expecter) GetLock(ctx interface{}) *FileConnectorService_GetLock_Call
- func (_e *FileConnectorService_Expecter) Lock(ctx interface{}, lockID interface{}, oldLockID interface{}) *FileConnectorService_Lock_Call
- func (_e *FileConnectorService_Expecter) PutRelativeFileRelative(ctx interface{}, ccs interface{}, stream interface{}, streamLength interface{}, ...) *FileConnectorService_PutRelativeFileRelative_Call
- func (_e *FileConnectorService_Expecter) PutRelativeFileSuggested(ctx interface{}, ccs interface{}, stream interface{}, streamLength interface{}, ...) *FileConnectorService_PutRelativeFileSuggested_Call
- func (_e *FileConnectorService_Expecter) RefreshLock(ctx interface{}, lockID interface{}) *FileConnectorService_RefreshLock_Call
- func (_e *FileConnectorService_Expecter) RenameFile(ctx interface{}, lockID interface{}, target interface{}) *FileConnectorService_RenameFile_Call
- func (_e *FileConnectorService_Expecter) UnLock(ctx interface{}, lockID interface{}) *FileConnectorService_UnLock_Call
- type FileConnectorService_GetLock_Call
- func (_c *FileConnectorService_GetLock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_GetLock_Call
- func (_c *FileConnectorService_GetLock_Call) Run(run func(ctx context.Context)) *FileConnectorService_GetLock_Call
- func (_c *FileConnectorService_GetLock_Call) RunAndReturn(run func(context.Context) (*connector.ConnectorResponse, error)) *FileConnectorService_GetLock_Call
- type FileConnectorService_Lock_Call
- func (_c *FileConnectorService_Lock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_Lock_Call
- func (_c *FileConnectorService_Lock_Call) Run(run func(ctx context.Context, lockID string, oldLockID string)) *FileConnectorService_Lock_Call
- func (_c *FileConnectorService_Lock_Call) RunAndReturn(...) *FileConnectorService_Lock_Call
- type FileConnectorService_PutRelativeFileRelative_Call
- func (_c *FileConnectorService_PutRelativeFileRelative_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_PutRelativeFileRelative_Call
- func (_c *FileConnectorService_PutRelativeFileRelative_Call) Run(...) *FileConnectorService_PutRelativeFileRelative_Call
- func (_c *FileConnectorService_PutRelativeFileRelative_Call) RunAndReturn(...) *FileConnectorService_PutRelativeFileRelative_Call
- type FileConnectorService_PutRelativeFileSuggested_Call
- func (_c *FileConnectorService_PutRelativeFileSuggested_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_PutRelativeFileSuggested_Call
- func (_c *FileConnectorService_PutRelativeFileSuggested_Call) Run(...) *FileConnectorService_PutRelativeFileSuggested_Call
- func (_c *FileConnectorService_PutRelativeFileSuggested_Call) RunAndReturn(...) *FileConnectorService_PutRelativeFileSuggested_Call
- type FileConnectorService_RefreshLock_Call
- func (_c *FileConnectorService_RefreshLock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_RefreshLock_Call
- func (_c *FileConnectorService_RefreshLock_Call) Run(run func(ctx context.Context, lockID string)) *FileConnectorService_RefreshLock_Call
- func (_c *FileConnectorService_RefreshLock_Call) RunAndReturn(run func(context.Context, string) (*connector.ConnectorResponse, error)) *FileConnectorService_RefreshLock_Call
- type FileConnectorService_RenameFile_Call
- func (_c *FileConnectorService_RenameFile_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_RenameFile_Call
- func (_c *FileConnectorService_RenameFile_Call) Run(run func(ctx context.Context, lockID string, target string)) *FileConnectorService_RenameFile_Call
- func (_c *FileConnectorService_RenameFile_Call) RunAndReturn(...) *FileConnectorService_RenameFile_Call
- type FileConnectorService_UnLock_Call
- func (_c *FileConnectorService_UnLock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_UnLock_Call
- func (_c *FileConnectorService_UnLock_Call) Run(run func(ctx context.Context, lockID string)) *FileConnectorService_UnLock_Call
- func (_c *FileConnectorService_UnLock_Call) RunAndReturn(run func(context.Context, string) (*connector.ConnectorResponse, error)) *FileConnectorService_UnLock_Call
- type LockParser
- type LockParser_Expecter
- type LockParser_ParseLock_Call
- type Selectable
- type Selectable_Expecter
- type Selectable_Next_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectorService ¶
ConnectorService is an autogenerated mock type for the ConnectorService type
func NewConnectorService ¶
func NewConnectorService(t interface {
mock.TestingT
Cleanup(func())
}) *ConnectorService
NewConnectorService creates a new instance of ConnectorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ConnectorService) EXPECT ¶
func (_m *ConnectorService) EXPECT() *ConnectorService_Expecter
func (*ConnectorService) GetContentConnector ¶
func (_m *ConnectorService) GetContentConnector() connector.ContentConnectorService
GetContentConnector provides a mock function with no fields
func (*ConnectorService) GetFileConnector ¶
func (_m *ConnectorService) GetFileConnector() connector.FileConnectorService
GetFileConnector provides a mock function with no fields
type ConnectorService_Expecter ¶
type ConnectorService_Expecter struct {
// contains filtered or unexported fields
}
func (*ConnectorService_Expecter) GetContentConnector ¶
func (_e *ConnectorService_Expecter) GetContentConnector() *ConnectorService_GetContentConnector_Call
GetContentConnector is a helper method to define mock.On call
func (*ConnectorService_Expecter) GetFileConnector ¶
func (_e *ConnectorService_Expecter) GetFileConnector() *ConnectorService_GetFileConnector_Call
GetFileConnector is a helper method to define mock.On call
type ConnectorService_GetContentConnector_Call ¶
ConnectorService_GetContentConnector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetContentConnector'
func (*ConnectorService_GetContentConnector_Call) Run ¶
func (_c *ConnectorService_GetContentConnector_Call) Run(run func()) *ConnectorService_GetContentConnector_Call
func (*ConnectorService_GetContentConnector_Call) RunAndReturn ¶
func (_c *ConnectorService_GetContentConnector_Call) RunAndReturn(run func() connector.ContentConnectorService) *ConnectorService_GetContentConnector_Call
type ConnectorService_GetFileConnector_Call ¶
ConnectorService_GetFileConnector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFileConnector'
func (*ConnectorService_GetFileConnector_Call) Return ¶
func (_c *ConnectorService_GetFileConnector_Call) Return(_a0 connector.FileConnectorService) *ConnectorService_GetFileConnector_Call
func (*ConnectorService_GetFileConnector_Call) Run ¶
func (_c *ConnectorService_GetFileConnector_Call) Run(run func()) *ConnectorService_GetFileConnector_Call
func (*ConnectorService_GetFileConnector_Call) RunAndReturn ¶
func (_c *ConnectorService_GetFileConnector_Call) RunAndReturn(run func() connector.FileConnectorService) *ConnectorService_GetFileConnector_Call
type ContentConnectorService ¶
ContentConnectorService is an autogenerated mock type for the ContentConnectorService type
func NewContentConnectorService ¶
func NewContentConnectorService(t interface {
mock.TestingT
Cleanup(func())
}) *ContentConnectorService
NewContentConnectorService creates a new instance of ContentConnectorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ContentConnectorService) EXPECT ¶
func (_m *ContentConnectorService) EXPECT() *ContentConnectorService_Expecter
func (*ContentConnectorService) GetFile ¶
func (_m *ContentConnectorService) GetFile(ctx context.Context, w http.ResponseWriter) error
GetFile provides a mock function with given fields: ctx, w
type ContentConnectorService_Expecter ¶
type ContentConnectorService_Expecter struct {
// contains filtered or unexported fields
}
func (*ContentConnectorService_Expecter) GetFile ¶
func (_e *ContentConnectorService_Expecter) GetFile(ctx interface{}, w interface{}) *ContentConnectorService_GetFile_Call
GetFile is a helper method to define mock.On call
- ctx context.Context
- w http.ResponseWriter
func (*ContentConnectorService_Expecter) PutFile ¶
func (_e *ContentConnectorService_Expecter) PutFile(ctx interface{}, stream interface{}, streamLength interface{}, lockID interface{}) *ContentConnectorService_PutFile_Call
PutFile is a helper method to define mock.On call
- ctx context.Context
- stream io.Reader
- streamLength int64
- lockID string
type ContentConnectorService_GetFile_Call ¶
ContentConnectorService_GetFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFile'
func (*ContentConnectorService_GetFile_Call) Return ¶
func (_c *ContentConnectorService_GetFile_Call) Return(_a0 error) *ContentConnectorService_GetFile_Call
func (*ContentConnectorService_GetFile_Call) Run ¶
func (_c *ContentConnectorService_GetFile_Call) Run(run func(ctx context.Context, w http.ResponseWriter)) *ContentConnectorService_GetFile_Call
func (*ContentConnectorService_GetFile_Call) RunAndReturn ¶
func (_c *ContentConnectorService_GetFile_Call) RunAndReturn(run func(context.Context, http.ResponseWriter) error) *ContentConnectorService_GetFile_Call
type ContentConnectorService_PutFile_Call ¶
ContentConnectorService_PutFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutFile'
func (*ContentConnectorService_PutFile_Call) Return ¶
func (_c *ContentConnectorService_PutFile_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *ContentConnectorService_PutFile_Call
func (*ContentConnectorService_PutFile_Call) Run ¶
func (_c *ContentConnectorService_PutFile_Call) Run(run func(ctx context.Context, stream io.Reader, streamLength int64, lockID string)) *ContentConnectorService_PutFile_Call
func (*ContentConnectorService_PutFile_Call) RunAndReturn ¶
func (_c *ContentConnectorService_PutFile_Call) RunAndReturn(run func(context.Context, io.Reader, int64, string) (*connector.ConnectorResponse, error)) *ContentConnectorService_PutFile_Call
type FileConnectorService ¶
FileConnectorService is an autogenerated mock type for the FileConnectorService type
func NewFileConnectorService ¶
func NewFileConnectorService(t interface {
mock.TestingT
Cleanup(func())
}) *FileConnectorService
NewFileConnectorService creates a new instance of FileConnectorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FileConnectorService) CheckFileInfo ¶
func (_m *FileConnectorService) CheckFileInfo(ctx context.Context) (*connector.ConnectorResponse, error)
CheckFileInfo provides a mock function with given fields: ctx
func (*FileConnectorService) DeleteFile ¶
func (_m *FileConnectorService) DeleteFile(ctx context.Context, lockID string) (*connector.ConnectorResponse, error)
DeleteFile provides a mock function with given fields: ctx, lockID
func (*FileConnectorService) EXPECT ¶
func (_m *FileConnectorService) EXPECT() *FileConnectorService_Expecter
func (*FileConnectorService) GetLock ¶
func (_m *FileConnectorService) GetLock(ctx context.Context) (*connector.ConnectorResponse, error)
GetLock provides a mock function with given fields: ctx
func (*FileConnectorService) Lock ¶
func (_m *FileConnectorService) Lock(ctx context.Context, lockID string, oldLockID string) (*connector.ConnectorResponse, error)
Lock provides a mock function with given fields: ctx, lockID, oldLockID
func (*FileConnectorService) PutRelativeFileRelative ¶
func (_m *FileConnectorService) PutRelativeFileRelative(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, streamLength int64, target string) (*connector.ConnectorResponse, error)
PutRelativeFileRelative provides a mock function with given fields: ctx, ccs, stream, streamLength, target
func (*FileConnectorService) PutRelativeFileSuggested ¶
func (_m *FileConnectorService) PutRelativeFileSuggested(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, streamLength int64, target string) (*connector.ConnectorResponse, error)
PutRelativeFileSuggested provides a mock function with given fields: ctx, ccs, stream, streamLength, target
func (*FileConnectorService) RefreshLock ¶
func (_m *FileConnectorService) RefreshLock(ctx context.Context, lockID string) (*connector.ConnectorResponse, error)
RefreshLock provides a mock function with given fields: ctx, lockID
func (*FileConnectorService) RenameFile ¶
func (_m *FileConnectorService) RenameFile(ctx context.Context, lockID string, target string) (*connector.ConnectorResponse, error)
RenameFile provides a mock function with given fields: ctx, lockID, target
func (*FileConnectorService) UnLock ¶
func (_m *FileConnectorService) UnLock(ctx context.Context, lockID string) (*connector.ConnectorResponse, error)
UnLock provides a mock function with given fields: ctx, lockID
type FileConnectorService_CheckFileInfo_Call ¶
FileConnectorService_CheckFileInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckFileInfo'
func (*FileConnectorService_CheckFileInfo_Call) Return ¶
func (_c *FileConnectorService_CheckFileInfo_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_CheckFileInfo_Call
func (*FileConnectorService_CheckFileInfo_Call) Run ¶
func (_c *FileConnectorService_CheckFileInfo_Call) Run(run func(ctx context.Context)) *FileConnectorService_CheckFileInfo_Call
func (*FileConnectorService_CheckFileInfo_Call) RunAndReturn ¶
func (_c *FileConnectorService_CheckFileInfo_Call) RunAndReturn(run func(context.Context) (*connector.ConnectorResponse, error)) *FileConnectorService_CheckFileInfo_Call
type FileConnectorService_DeleteFile_Call ¶
FileConnectorService_DeleteFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFile'
func (*FileConnectorService_DeleteFile_Call) Return ¶
func (_c *FileConnectorService_DeleteFile_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_DeleteFile_Call
func (*FileConnectorService_DeleteFile_Call) Run ¶
func (_c *FileConnectorService_DeleteFile_Call) Run(run func(ctx context.Context, lockID string)) *FileConnectorService_DeleteFile_Call
func (*FileConnectorService_DeleteFile_Call) RunAndReturn ¶
func (_c *FileConnectorService_DeleteFile_Call) RunAndReturn(run func(context.Context, string) (*connector.ConnectorResponse, error)) *FileConnectorService_DeleteFile_Call
type FileConnectorService_Expecter ¶
type FileConnectorService_Expecter struct {
// contains filtered or unexported fields
}
func (*FileConnectorService_Expecter) CheckFileInfo ¶
func (_e *FileConnectorService_Expecter) CheckFileInfo(ctx interface{}) *FileConnectorService_CheckFileInfo_Call
CheckFileInfo is a helper method to define mock.On call
- ctx context.Context
func (*FileConnectorService_Expecter) DeleteFile ¶
func (_e *FileConnectorService_Expecter) DeleteFile(ctx interface{}, lockID interface{}) *FileConnectorService_DeleteFile_Call
DeleteFile is a helper method to define mock.On call
- ctx context.Context
- lockID string
func (*FileConnectorService_Expecter) GetLock ¶
func (_e *FileConnectorService_Expecter) GetLock(ctx interface{}) *FileConnectorService_GetLock_Call
GetLock is a helper method to define mock.On call
- ctx context.Context
func (*FileConnectorService_Expecter) Lock ¶
func (_e *FileConnectorService_Expecter) Lock(ctx interface{}, lockID interface{}, oldLockID interface{}) *FileConnectorService_Lock_Call
Lock is a helper method to define mock.On call
- ctx context.Context
- lockID string
- oldLockID string
func (*FileConnectorService_Expecter) PutRelativeFileRelative ¶
func (_e *FileConnectorService_Expecter) PutRelativeFileRelative(ctx interface{}, ccs interface{}, stream interface{}, streamLength interface{}, target interface{}) *FileConnectorService_PutRelativeFileRelative_Call
PutRelativeFileRelative is a helper method to define mock.On call
- ctx context.Context
- ccs connector.ContentConnectorService
- stream io.Reader
- streamLength int64
- target string
func (*FileConnectorService_Expecter) PutRelativeFileSuggested ¶
func (_e *FileConnectorService_Expecter) PutRelativeFileSuggested(ctx interface{}, ccs interface{}, stream interface{}, streamLength interface{}, target interface{}) *FileConnectorService_PutRelativeFileSuggested_Call
PutRelativeFileSuggested is a helper method to define mock.On call
- ctx context.Context
- ccs connector.ContentConnectorService
- stream io.Reader
- streamLength int64
- target string
func (*FileConnectorService_Expecter) RefreshLock ¶
func (_e *FileConnectorService_Expecter) RefreshLock(ctx interface{}, lockID interface{}) *FileConnectorService_RefreshLock_Call
RefreshLock is a helper method to define mock.On call
- ctx context.Context
- lockID string
func (*FileConnectorService_Expecter) RenameFile ¶
func (_e *FileConnectorService_Expecter) RenameFile(ctx interface{}, lockID interface{}, target interface{}) *FileConnectorService_RenameFile_Call
RenameFile is a helper method to define mock.On call
- ctx context.Context
- lockID string
- target string
func (*FileConnectorService_Expecter) UnLock ¶
func (_e *FileConnectorService_Expecter) UnLock(ctx interface{}, lockID interface{}) *FileConnectorService_UnLock_Call
UnLock is a helper method to define mock.On call
- ctx context.Context
- lockID string
type FileConnectorService_GetLock_Call ¶
FileConnectorService_GetLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLock'
func (*FileConnectorService_GetLock_Call) Return ¶
func (_c *FileConnectorService_GetLock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_GetLock_Call
func (*FileConnectorService_GetLock_Call) Run ¶
func (_c *FileConnectorService_GetLock_Call) Run(run func(ctx context.Context)) *FileConnectorService_GetLock_Call
func (*FileConnectorService_GetLock_Call) RunAndReturn ¶
func (_c *FileConnectorService_GetLock_Call) RunAndReturn(run func(context.Context) (*connector.ConnectorResponse, error)) *FileConnectorService_GetLock_Call
type FileConnectorService_Lock_Call ¶
FileConnectorService_Lock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Lock'
func (*FileConnectorService_Lock_Call) Return ¶
func (_c *FileConnectorService_Lock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_Lock_Call
func (*FileConnectorService_Lock_Call) Run ¶
func (_c *FileConnectorService_Lock_Call) Run(run func(ctx context.Context, lockID string, oldLockID string)) *FileConnectorService_Lock_Call
func (*FileConnectorService_Lock_Call) RunAndReturn ¶
func (_c *FileConnectorService_Lock_Call) RunAndReturn(run func(context.Context, string, string) (*connector.ConnectorResponse, error)) *FileConnectorService_Lock_Call
type FileConnectorService_PutRelativeFileRelative_Call ¶
FileConnectorService_PutRelativeFileRelative_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutRelativeFileRelative'
func (*FileConnectorService_PutRelativeFileRelative_Call) Return ¶
func (_c *FileConnectorService_PutRelativeFileRelative_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_PutRelativeFileRelative_Call
func (*FileConnectorService_PutRelativeFileRelative_Call) Run ¶
func (_c *FileConnectorService_PutRelativeFileRelative_Call) Run(run func(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, streamLength int64, target string)) *FileConnectorService_PutRelativeFileRelative_Call
func (*FileConnectorService_PutRelativeFileRelative_Call) RunAndReturn ¶
func (_c *FileConnectorService_PutRelativeFileRelative_Call) RunAndReturn(run func(context.Context, connector.ContentConnectorService, io.Reader, int64, string) (*connector.ConnectorResponse, error)) *FileConnectorService_PutRelativeFileRelative_Call
type FileConnectorService_PutRelativeFileSuggested_Call ¶
FileConnectorService_PutRelativeFileSuggested_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutRelativeFileSuggested'
func (*FileConnectorService_PutRelativeFileSuggested_Call) Return ¶
func (_c *FileConnectorService_PutRelativeFileSuggested_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_PutRelativeFileSuggested_Call
func (*FileConnectorService_PutRelativeFileSuggested_Call) Run ¶
func (_c *FileConnectorService_PutRelativeFileSuggested_Call) Run(run func(ctx context.Context, ccs connector.ContentConnectorService, stream io.Reader, streamLength int64, target string)) *FileConnectorService_PutRelativeFileSuggested_Call
func (*FileConnectorService_PutRelativeFileSuggested_Call) RunAndReturn ¶
func (_c *FileConnectorService_PutRelativeFileSuggested_Call) RunAndReturn(run func(context.Context, connector.ContentConnectorService, io.Reader, int64, string) (*connector.ConnectorResponse, error)) *FileConnectorService_PutRelativeFileSuggested_Call
type FileConnectorService_RefreshLock_Call ¶
FileConnectorService_RefreshLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefreshLock'
func (*FileConnectorService_RefreshLock_Call) Return ¶
func (_c *FileConnectorService_RefreshLock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_RefreshLock_Call
func (*FileConnectorService_RefreshLock_Call) Run ¶
func (_c *FileConnectorService_RefreshLock_Call) Run(run func(ctx context.Context, lockID string)) *FileConnectorService_RefreshLock_Call
func (*FileConnectorService_RefreshLock_Call) RunAndReturn ¶
func (_c *FileConnectorService_RefreshLock_Call) RunAndReturn(run func(context.Context, string) (*connector.ConnectorResponse, error)) *FileConnectorService_RefreshLock_Call
type FileConnectorService_RenameFile_Call ¶
FileConnectorService_RenameFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RenameFile'
func (*FileConnectorService_RenameFile_Call) Return ¶
func (_c *FileConnectorService_RenameFile_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_RenameFile_Call
func (*FileConnectorService_RenameFile_Call) Run ¶
func (_c *FileConnectorService_RenameFile_Call) Run(run func(ctx context.Context, lockID string, target string)) *FileConnectorService_RenameFile_Call
func (*FileConnectorService_RenameFile_Call) RunAndReturn ¶
func (_c *FileConnectorService_RenameFile_Call) RunAndReturn(run func(context.Context, string, string) (*connector.ConnectorResponse, error)) *FileConnectorService_RenameFile_Call
type FileConnectorService_UnLock_Call ¶
FileConnectorService_UnLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnLock'
func (*FileConnectorService_UnLock_Call) Return ¶
func (_c *FileConnectorService_UnLock_Call) Return(_a0 *connector.ConnectorResponse, _a1 error) *FileConnectorService_UnLock_Call
func (*FileConnectorService_UnLock_Call) Run ¶
func (_c *FileConnectorService_UnLock_Call) Run(run func(ctx context.Context, lockID string)) *FileConnectorService_UnLock_Call
func (*FileConnectorService_UnLock_Call) RunAndReturn ¶
func (_c *FileConnectorService_UnLock_Call) RunAndReturn(run func(context.Context, string) (*connector.ConnectorResponse, error)) *FileConnectorService_UnLock_Call
type LockParser ¶
LockParser is an autogenerated mock type for the LockParser type
func NewLockParser ¶
func NewLockParser(t interface {
mock.TestingT
Cleanup(func())
}) *LockParser
NewLockParser creates a new instance of LockParser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*LockParser) EXPECT ¶
func (_m *LockParser) EXPECT() *LockParser_Expecter
func (*LockParser) ParseLock ¶
func (_m *LockParser) ParseLock(id string) string
ParseLock provides a mock function with given fields: id
type LockParser_Expecter ¶
type LockParser_Expecter struct {
// contains filtered or unexported fields
}
func (*LockParser_Expecter) ParseLock ¶
func (_e *LockParser_Expecter) ParseLock(id interface{}) *LockParser_ParseLock_Call
ParseLock is a helper method to define mock.On call
- id string
type LockParser_ParseLock_Call ¶
LockParser_ParseLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseLock'
func (*LockParser_ParseLock_Call) Return ¶
func (_c *LockParser_ParseLock_Call) Return(_a0 string) *LockParser_ParseLock_Call
func (*LockParser_ParseLock_Call) Run ¶
func (_c *LockParser_ParseLock_Call) Run(run func(id string)) *LockParser_ParseLock_Call
func (*LockParser_ParseLock_Call) RunAndReturn ¶
func (_c *LockParser_ParseLock_Call) RunAndReturn(run func(string) string) *LockParser_ParseLock_Call
type Selectable ¶
Selectable is an autogenerated mock type for the Selectable type
func NewSelectable ¶
func NewSelectable[T interface{}](t interface {
mock.TestingT
Cleanup(func())
}) *Selectable[T]
NewSelectable creates a new instance of Selectable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Selectable[T]) EXPECT ¶
func (_m *Selectable[T]) EXPECT() *Selectable_Expecter[T]
type Selectable_Expecter ¶
type Selectable_Expecter[T interface{}] struct {
// contains filtered or unexported fields
}
func (*Selectable_Expecter[T]) Next ¶
func (_e *Selectable_Expecter[T]) Next(opts ...interface{}) *Selectable_Next_Call[T]
Next is a helper method to define mock.On call
- opts ...pool.Option
type Selectable_Next_Call ¶
Selectable_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*Selectable_Next_Call[T]) Return ¶
func (_c *Selectable_Next_Call[T]) Return(_a0 T, _a1 error) *Selectable_Next_Call[T]
func (*Selectable_Next_Call[T]) Run ¶
func (_c *Selectable_Next_Call[T]) Run(run func(opts ...pool.Option)) *Selectable_Next_Call[T]
func (*Selectable_Next_Call[T]) RunAndReturn ¶
func (_c *Selectable_Next_Call[T]) RunAndReturn(run func(...pool.Option) (T, error)) *Selectable_Next_Call[T]