file

package
v0.0.0-...-83091a0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package file is a generated GoMock package.

Package file is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) GetFile

func (m *MockRepository) GetFile(ctx context.Context, filename string) (io.Reader, error)

GetFile mocks base method.

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

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

type Repository interface {
	GetFile(ctx context.Context, filename string) (io.Reader, error)
}

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)
}

type UseCase

type UseCase interface {
	GetTransactionsFile(ctx context.Context) ([][]string, error)
	GetReportTemplateFile(ctx context.Context) (string, error)
	GetStoriLogoFile(ctx context.Context) ([]byte, error)
}

func NewUseCaseFactory

func NewUseCaseFactory(cfg *configuration.Config) UseCase

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL