Documentation
¶
Index ¶
- type FileSystemRepo
- func (_m *FileSystemRepo) CreateFilesInDirectories(directoryList []string, fileNames []string) error
- func (_m *FileSystemRepo) GetMigrationFilesFromDirectory(directory string, database int) []string
- func (_m *FileSystemRepo) GetMigrationsFromFiles(_a0 string, _a1 []string, _a2 string) (*[]entities.PGMigration, error)
- func (_m *FileSystemRepo) MkAlldirIfnotExists(paths []string) error
- type MigratorService
- func (_m *MigratorService) CleanMigrationTable() error
- func (_m *MigratorService) GetMigrationEntries() (*[]entities.MigrationEntry, error)
- func (_m *MigratorService) InitializeMigrationTable() error
- func (_m *MigratorService) MigrateDown(_a0 int) error
- func (_m *MigratorService) MigrateUp(_a0 int) error
- type PGRepo
- func (_m *PGRepo) ApplyMigration(migration *entities.PGMigration) error
- func (_m *PGRepo) CleanMigrationTable() error
- func (_m *PGRepo) CreateMigrationTableIfNotExists() error
- func (_m *PGRepo) GetLastAppliedMigrationFromDatabase() (*entities.MigrationEntry, error)
- func (_m *PGRepo) GetMigrationEntries() (*[]entities.MigrationEntry, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystemRepo ¶
FileSystemRepo is an autogenerated mock type for the FileSystemRepo type
func NewFileSystemRepo ¶
func NewFileSystemRepo(t mockConstructorTestingTNewFileSystemRepo) *FileSystemRepo
NewFileSystemRepo creates a new instance of FileSystemRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileSystemRepo) CreateFilesInDirectories ¶
func (_m *FileSystemRepo) CreateFilesInDirectories(directoryList []string, fileNames []string) error
CreateFilesInDirectories provides a mock function with given fields: directoryList, fileNames
func (*FileSystemRepo) GetMigrationFilesFromDirectory ¶
func (_m *FileSystemRepo) GetMigrationFilesFromDirectory(directory string, database int) []string
GetMigrationFilesFromDirectory provides a mock function with given fields: directory, database
func (*FileSystemRepo) GetMigrationsFromFiles ¶
func (_m *FileSystemRepo) GetMigrationsFromFiles(_a0 string, _a1 []string, _a2 string) (*[]entities.PGMigration, error)
GetMigrationsFromFiles provides a mock function with given fields: _a0, _a1, _a2
func (*FileSystemRepo) MkAlldirIfnotExists ¶
func (_m *FileSystemRepo) MkAlldirIfnotExists(paths []string) error
MkAlldirIfnotExists provides a mock function with given fields: paths
type MigratorService ¶
MigratorService is an autogenerated mock type for the MigratorService type
func NewMigratorService ¶
func NewMigratorService(t mockConstructorTestingTNewMigratorService) *MigratorService
NewMigratorService creates a new instance of MigratorService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MigratorService) CleanMigrationTable ¶
func (_m *MigratorService) CleanMigrationTable() error
CleanMigrationTable provides a mock function with given fields:
func (*MigratorService) GetMigrationEntries ¶
func (_m *MigratorService) GetMigrationEntries() (*[]entities.MigrationEntry, error)
GetMigrationEntries provides a mock function with given fields:
func (*MigratorService) InitializeMigrationTable ¶
func (_m *MigratorService) InitializeMigrationTable() error
InitializeMigrationTable provides a mock function with given fields:
func (*MigratorService) MigrateDown ¶
func (_m *MigratorService) MigrateDown(_a0 int) error
MigrateDown provides a mock function with given fields: _a0
func (*MigratorService) MigrateUp ¶
func (_m *MigratorService) MigrateUp(_a0 int) error
MigrateUp provides a mock function with given fields: _a0
type PGRepo ¶
PGRepo is an autogenerated mock type for the PGRepo type
func NewPGRepo ¶
func NewPGRepo(t mockConstructorTestingTNewPGRepo) *PGRepo
NewPGRepo creates a new instance of PGRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PGRepo) ApplyMigration ¶
func (_m *PGRepo) ApplyMigration(migration *entities.PGMigration) error
ApplyMigration provides a mock function with given fields: migration
func (*PGRepo) CleanMigrationTable ¶
CleanMigrationTable provides a mock function with given fields:
func (*PGRepo) CreateMigrationTableIfNotExists ¶
CreateMigrationTableIfNotExists provides a mock function with given fields:
func (*PGRepo) GetLastAppliedMigrationFromDatabase ¶
func (_m *PGRepo) GetLastAppliedMigrationFromDatabase() (*entities.MigrationEntry, error)
GetLastAppliedMigrationFromDatabase provides a mock function with given fields:
func (*PGRepo) GetMigrationEntries ¶
func (_m *PGRepo) GetMigrationEntries() (*[]entities.MigrationEntry, error)
GetMigrationEntries provides a mock function with given fields: