Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockAntivirus
- type MockAntivirusMockRecorder
- type MockContentStorage
- func (m *MockContentStorage) CreatePresignedURL(ctx context.Context, filepath string, expire time.Duration) (string, *controller.APIError)
- func (m *MockContentStorage) DeleteFile(ctx context.Context, filepath string) *controller.APIError
- func (m *MockContentStorage) EXPECT() *MockContentStorageMockRecorder
- func (m *MockContentStorage) GetFile(ctx context.Context, filepath string, headers http.Header) (*controller.File, *controller.APIError)
- func (m *MockContentStorage) GetFileWithPresignedURL(ctx context.Context, filepath, signature string, headers http.Header) (*controller.File, *controller.APIError)
- func (m *MockContentStorage) ListFiles(ctx context.Context) ([]string, *controller.APIError)
- func (m *MockContentStorage) PutFile(ctx context.Context, content io.ReadSeeker, filepath, contentType string) (string, *controller.APIError)
- type MockContentStorageMockRecorder
- func (mr *MockContentStorageMockRecorder) CreatePresignedURL(ctx, filepath, expire any) *gomock.Call
- func (mr *MockContentStorageMockRecorder) DeleteFile(ctx, filepath any) *gomock.Call
- func (mr *MockContentStorageMockRecorder) GetFile(ctx, filepath, headers any) *gomock.Call
- func (mr *MockContentStorageMockRecorder) GetFileWithPresignedURL(ctx, filepath, signature, headers any) *gomock.Call
- func (mr *MockContentStorageMockRecorder) ListFiles(ctx any) *gomock.Call
- func (mr *MockContentStorageMockRecorder) PutFile(ctx, content, filepath, contentType any) *gomock.Call
- type MockMetadataStorage
- func (m *MockMetadataStorage) DeleteFileByID(ctx context.Context, fileID string, headers http.Header) *controller.APIError
- func (m *MockMetadataStorage) EXPECT() *MockMetadataStorageMockRecorder
- func (m *MockMetadataStorage) GetBucketByID(ctx context.Context, id string, headers http.Header) (controller.BucketMetadata, *controller.APIError)
- func (m *MockMetadataStorage) GetFileByID(ctx context.Context, id string, headers http.Header) (controller.FileMetadata, *controller.APIError)
- func (m *MockMetadataStorage) InitializeFile(ctx context.Context, id, name string, size int64, bucketID, mimeType string, ...) *controller.APIError
- func (m *MockMetadataStorage) InsertVirus(ctx context.Context, fileID, filename, virus string, ...) *controller.APIError
- func (m *MockMetadataStorage) ListFiles(ctx context.Context, headers http.Header) ([]controller.FileSummary, *controller.APIError)
- func (m *MockMetadataStorage) PopulateMetadata(ctx context.Context, id, name string, size int64, bucketID, etag string, ...) (controller.FileMetadata, *controller.APIError)
- func (m *MockMetadataStorage) SetIsUploaded(ctx context.Context, fileID string, isUploaded bool, headers http.Header) *controller.APIError
- type MockMetadataStorageMockRecorder
- func (mr *MockMetadataStorageMockRecorder) DeleteFileByID(ctx, fileID, headers any) *gomock.Call
- func (mr *MockMetadataStorageMockRecorder) GetBucketByID(ctx, id, headers any) *gomock.Call
- func (mr *MockMetadataStorageMockRecorder) GetFileByID(ctx, id, headers any) *gomock.Call
- func (mr *MockMetadataStorageMockRecorder) InitializeFile(ctx, id, name, size, bucketID, mimeType, headers any) *gomock.Call
- func (mr *MockMetadataStorageMockRecorder) InsertVirus(ctx, fileID, filename, virus, userSession, headers any) *gomock.Call
- func (mr *MockMetadataStorageMockRecorder) ListFiles(ctx, headers any) *gomock.Call
- func (mr *MockMetadataStorageMockRecorder) PopulateMetadata(...) *gomock.Call
- func (mr *MockMetadataStorageMockRecorder) SetIsUploaded(ctx, fileID, isUploaded, headers any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAntivirus ¶ added in v0.4.0
type MockAntivirus struct {
// contains filtered or unexported fields
}
MockAntivirus is a mock of Antivirus interface.
func NewMockAntivirus ¶ added in v0.4.0
func NewMockAntivirus(ctrl *gomock.Controller) *MockAntivirus
NewMockAntivirus creates a new mock instance.
func (*MockAntivirus) EXPECT ¶ added in v0.4.0
func (m *MockAntivirus) EXPECT() *MockAntivirusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAntivirus) ScanReader ¶ added in v0.4.0
func (m *MockAntivirus) ScanReader(r io.ReaderAt) *controller.APIError
ScanReader mocks base method.
type MockAntivirusMockRecorder ¶ added in v0.4.0
type MockAntivirusMockRecorder struct {
// contains filtered or unexported fields
}
MockAntivirusMockRecorder is the mock recorder for MockAntivirus.
func (*MockAntivirusMockRecorder) ScanReader ¶ added in v0.4.0
func (mr *MockAntivirusMockRecorder) ScanReader(r any) *gomock.Call
ScanReader indicates an expected call of ScanReader.
type MockContentStorage ¶
type MockContentStorage struct {
// contains filtered or unexported fields
}
MockContentStorage is a mock of ContentStorage interface.
func NewMockContentStorage ¶
func NewMockContentStorage(ctrl *gomock.Controller) *MockContentStorage
NewMockContentStorage creates a new mock instance.
func (*MockContentStorage) CreatePresignedURL ¶
func (m *MockContentStorage) CreatePresignedURL(ctx context.Context, filepath string, expire time.Duration) (string, *controller.APIError)
CreatePresignedURL mocks base method.
func (*MockContentStorage) DeleteFile ¶
func (m *MockContentStorage) DeleteFile(ctx context.Context, filepath string) *controller.APIError
DeleteFile mocks base method.
func (*MockContentStorage) EXPECT ¶
func (m *MockContentStorage) EXPECT() *MockContentStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContentStorage) GetFile ¶
func (m *MockContentStorage) GetFile(ctx context.Context, filepath string, headers http.Header) (*controller.File, *controller.APIError)
GetFile mocks base method.
func (*MockContentStorage) GetFileWithPresignedURL ¶
func (m *MockContentStorage) GetFileWithPresignedURL(ctx context.Context, filepath, signature string, headers http.Header) (*controller.File, *controller.APIError)
GetFileWithPresignedURL mocks base method.
func (*MockContentStorage) ListFiles ¶
func (m *MockContentStorage) ListFiles(ctx context.Context) ([]string, *controller.APIError)
ListFiles mocks base method.
func (*MockContentStorage) PutFile ¶
func (m *MockContentStorage) PutFile(ctx context.Context, content io.ReadSeeker, filepath, contentType string) (string, *controller.APIError)
PutFile mocks base method.
type MockContentStorageMockRecorder ¶
type MockContentStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockContentStorageMockRecorder is the mock recorder for MockContentStorage.
func (*MockContentStorageMockRecorder) CreatePresignedURL ¶
func (mr *MockContentStorageMockRecorder) CreatePresignedURL(ctx, filepath, expire any) *gomock.Call
CreatePresignedURL indicates an expected call of CreatePresignedURL.
func (*MockContentStorageMockRecorder) DeleteFile ¶
func (mr *MockContentStorageMockRecorder) DeleteFile(ctx, filepath any) *gomock.Call
DeleteFile indicates an expected call of DeleteFile.
func (*MockContentStorageMockRecorder) GetFile ¶
func (mr *MockContentStorageMockRecorder) GetFile(ctx, filepath, headers any) *gomock.Call
GetFile indicates an expected call of GetFile.
func (*MockContentStorageMockRecorder) GetFileWithPresignedURL ¶
func (mr *MockContentStorageMockRecorder) GetFileWithPresignedURL(ctx, filepath, signature, headers any) *gomock.Call
GetFileWithPresignedURL indicates an expected call of GetFileWithPresignedURL.
type MockMetadataStorage ¶
type MockMetadataStorage struct {
// contains filtered or unexported fields
}
MockMetadataStorage is a mock of MetadataStorage interface.
func NewMockMetadataStorage ¶
func NewMockMetadataStorage(ctrl *gomock.Controller) *MockMetadataStorage
NewMockMetadataStorage creates a new mock instance.
func (*MockMetadataStorage) DeleteFileByID ¶
func (m *MockMetadataStorage) DeleteFileByID(ctx context.Context, fileID string, headers http.Header) *controller.APIError
DeleteFileByID mocks base method.
func (*MockMetadataStorage) EXPECT ¶
func (m *MockMetadataStorage) EXPECT() *MockMetadataStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMetadataStorage) GetBucketByID ¶
func (m *MockMetadataStorage) GetBucketByID(ctx context.Context, id string, headers http.Header) (controller.BucketMetadata, *controller.APIError)
GetBucketByID mocks base method.
func (*MockMetadataStorage) GetFileByID ¶
func (m *MockMetadataStorage) GetFileByID(ctx context.Context, id string, headers http.Header) (controller.FileMetadata, *controller.APIError)
GetFileByID mocks base method.
func (*MockMetadataStorage) InitializeFile ¶
func (m *MockMetadataStorage) InitializeFile(ctx context.Context, id, name string, size int64, bucketID, mimeType string, headers http.Header) *controller.APIError
InitializeFile mocks base method.
func (*MockMetadataStorage) InsertVirus ¶ added in v0.4.0
func (m *MockMetadataStorage) InsertVirus(ctx context.Context, fileID, filename, virus string, userSession map[string]any, headers http.Header) *controller.APIError
InsertVirus mocks base method.
func (*MockMetadataStorage) ListFiles ¶
func (m *MockMetadataStorage) ListFiles(ctx context.Context, headers http.Header) ([]controller.FileSummary, *controller.APIError)
ListFiles mocks base method.
func (*MockMetadataStorage) PopulateMetadata ¶
func (m *MockMetadataStorage) PopulateMetadata(ctx context.Context, id, name string, size int64, bucketID, etag string, IsUploaded bool, mimeType string, metadata map[string]any, headers http.Header) (controller.FileMetadata, *controller.APIError)
PopulateMetadata mocks base method.
func (*MockMetadataStorage) SetIsUploaded ¶
func (m *MockMetadataStorage) SetIsUploaded(ctx context.Context, fileID string, isUploaded bool, headers http.Header) *controller.APIError
SetIsUploaded mocks base method.
type MockMetadataStorageMockRecorder ¶
type MockMetadataStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockMetadataStorageMockRecorder is the mock recorder for MockMetadataStorage.
func (*MockMetadataStorageMockRecorder) DeleteFileByID ¶
func (mr *MockMetadataStorageMockRecorder) DeleteFileByID(ctx, fileID, headers any) *gomock.Call
DeleteFileByID indicates an expected call of DeleteFileByID.
func (*MockMetadataStorageMockRecorder) GetBucketByID ¶
func (mr *MockMetadataStorageMockRecorder) GetBucketByID(ctx, id, headers any) *gomock.Call
GetBucketByID indicates an expected call of GetBucketByID.
func (*MockMetadataStorageMockRecorder) GetFileByID ¶
func (mr *MockMetadataStorageMockRecorder) GetFileByID(ctx, id, headers any) *gomock.Call
GetFileByID indicates an expected call of GetFileByID.
func (*MockMetadataStorageMockRecorder) InitializeFile ¶
func (mr *MockMetadataStorageMockRecorder) InitializeFile(ctx, id, name, size, bucketID, mimeType, headers any) *gomock.Call
InitializeFile indicates an expected call of InitializeFile.
func (*MockMetadataStorageMockRecorder) InsertVirus ¶ added in v0.4.0
func (mr *MockMetadataStorageMockRecorder) InsertVirus(ctx, fileID, filename, virus, userSession, headers any) *gomock.Call
InsertVirus indicates an expected call of InsertVirus.
func (*MockMetadataStorageMockRecorder) ListFiles ¶
func (mr *MockMetadataStorageMockRecorder) ListFiles(ctx, headers any) *gomock.Call
ListFiles indicates an expected call of ListFiles.
func (*MockMetadataStorageMockRecorder) PopulateMetadata ¶
func (mr *MockMetadataStorageMockRecorder) PopulateMetadata(ctx, id, name, size, bucketID, etag, IsUploaded, mimeType, metadata, headers any) *gomock.Call
PopulateMetadata indicates an expected call of PopulateMetadata.
func (*MockMetadataStorageMockRecorder) SetIsUploaded ¶
func (mr *MockMetadataStorageMockRecorder) SetIsUploaded(ctx, fileID, isUploaded, headers any) *gomock.Call
SetIsUploaded indicates an expected call of SetIsUploaded.