Documentation ¶
Overview ¶
Package file is a generated GoMock package.
Package file is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrGetObjectFailed = errors.New("failed to get file from S3")
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
type MockRepository struct {
// contains filtered or unexported fields
}
MockRepository is a mock of Repository interface.
func NewMockRepository ¶
func NewMockRepository(ctrl *gomock.Controller) *MockRepository
NewMockRepository creates a new mock instance.
func (*MockRepository) EXPECT ¶
func (m *MockRepository) EXPECT() *MockRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRepositoryMockRecorder ¶
type MockRepositoryMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryMockRecorder is the mock recorder for MockRepository.
func (*MockRepositoryMockRecorder) GetFile ¶
func (mr *MockRepositoryMockRecorder) GetFile(ctx, filename interface{}) *gomock.Call
GetFile indicates an expected call of GetFile.
type MockS3ClientInterface ¶
type MockS3ClientInterface struct {
// contains filtered or unexported fields
}
MockS3ClientInterface is a mock of S3ClientInterface interface
func NewMockS3ClientInterface ¶
func NewMockS3ClientInterface(ctrl *gomock.Controller) *MockS3ClientInterface
NewMockS3ClientInterface creates a new mock instance
func (*MockS3ClientInterface) EXPECT ¶
func (m *MockS3ClientInterface) EXPECT() *MockS3ClientInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockS3ClientInterface) GetObject ¶
func (m *MockS3ClientInterface) GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
GetObject mocks base method
type MockS3ClientInterfaceMockRecorder ¶
type MockS3ClientInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockS3ClientInterfaceMockRecorder is the mock recorder for MockS3ClientInterface
func (*MockS3ClientInterfaceMockRecorder) GetObject ¶
func (mr *MockS3ClientInterfaceMockRecorder) GetObject(ctx, params interface{}, optFns ...interface{}) *gomock.Call
GetObject indicates an expected call of GetObject
type MockUseCase ¶
type MockUseCase struct {
// contains filtered or unexported fields
}
MockUseCase is a mock of UseCase interface.
func NewMockUseCase ¶
func NewMockUseCase(ctrl *gomock.Controller) *MockUseCase
NewMockUseCase creates a new mock instance.
func (*MockUseCase) EXPECT ¶
func (m *MockUseCase) EXPECT() *MockUseCaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUseCase) GetReportTemplateFile ¶
func (m *MockUseCase) GetReportTemplateFile(ctx context.Context) (string, error)
GetReportTemplateFile mocks base method.
func (*MockUseCase) GetStoriLogoFile ¶
func (m *MockUseCase) GetStoriLogoFile(ctx context.Context) ([]byte, error)
GetStoriLogoFile mocks base method.
func (*MockUseCase) GetTransactionsFile ¶
func (m *MockUseCase) GetTransactionsFile(ctx context.Context) ([][]string, error)
GetTransactionsFile mocks base method.
type MockUseCaseMockRecorder ¶
type MockUseCaseMockRecorder struct {
// contains filtered or unexported fields
}
MockUseCaseMockRecorder is the mock recorder for MockUseCase.
func (*MockUseCaseMockRecorder) GetReportTemplateFile ¶
func (mr *MockUseCaseMockRecorder) GetReportTemplateFile(ctx interface{}) *gomock.Call
GetReportTemplateFile indicates an expected call of GetReportTemplateFile.
func (*MockUseCaseMockRecorder) GetStoriLogoFile ¶
func (mr *MockUseCaseMockRecorder) GetStoriLogoFile(ctx interface{}) *gomock.Call
GetStoriLogoFile indicates an expected call of GetStoriLogoFile.
func (*MockUseCaseMockRecorder) GetTransactionsFile ¶
func (mr *MockUseCaseMockRecorder) GetTransactionsFile(ctx interface{}) *gomock.Call
GetTransactionsFile indicates an expected call of GetTransactionsFile.
type Repository ¶
func NewRepositoryFactory ¶
func NewRepositoryFactory(cfg *configuration.Config) Repository
type S3ClientInterface ¶
type S3ClientInterface interface {
GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}