Documentation ¶
Index ¶
- type PgContainerSuite
- func (s *PgContainerSuite) GetConnection(ctx context.Context) (conn *pgx.Conn, err error)
- func (s *PgContainerSuite) GetConnectionWithUser(ctx context.Context, username, password string) (conn *pgx.Conn, err error)
- func (s *PgContainerSuite) GetSuperUser() string
- func (s *PgContainerSuite) MigrateDown(ctx context.Context)
- func (s *PgContainerSuite) MigrateUp(ctx context.Context)
- func (s *PgContainerSuite) SetMigrationDown(sql string) *PgContainerSuite
- func (s *PgContainerSuite) SetMigrationUp(sql string) *PgContainerSuite
- func (s *PgContainerSuite) SetupSuite()
- func (s *PgContainerSuite) TearDownSuite()
- type StorageMock
- func (s *StorageMock) Delete(ctx context.Context, filePaths ...string) error
- func (s *StorageMock) DeleteAll(ctx context.Context, pathPrefix string) error
- func (s *StorageMock) Dirname() string
- func (s *StorageMock) Exists(ctx context.Context, fileName string) (bool, error)
- func (s *StorageMock) GetCwd() string
- func (s *StorageMock) GetObject(ctx context.Context, filePath string) (reader io.ReadCloser, err error)
- func (s *StorageMock) ListDir(ctx context.Context) (files []string, dirs []storages.Storager, err error)
- func (s *StorageMock) PutObject(ctx context.Context, filePath string, body io.Reader) error
- func (s *StorageMock) Stat(fileName string) (*domains.ObjectStat, error)
- func (s *StorageMock) SubStorage(subPath string, relative bool) storages.Storager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgContainerSuite ¶
type PgContainerSuite struct { suite.Suite Container testcontainers.Container MigrationUp string MigrationDown string // contains filtered or unexported fields }
func (*PgContainerSuite) GetConnection ¶
func (s *PgContainerSuite) GetConnection(ctx context.Context) ( conn *pgx.Conn, err error, )
func (*PgContainerSuite) GetConnectionWithUser ¶
func (s *PgContainerSuite) GetConnectionWithUser(ctx context.Context, username, password string) ( conn *pgx.Conn, err error, )
func (*PgContainerSuite) GetSuperUser ¶
func (s *PgContainerSuite) GetSuperUser() string
func (*PgContainerSuite) MigrateDown ¶
func (s *PgContainerSuite) MigrateDown(ctx context.Context)
func (*PgContainerSuite) MigrateUp ¶
func (s *PgContainerSuite) MigrateUp(ctx context.Context)
func (*PgContainerSuite) SetMigrationDown ¶
func (s *PgContainerSuite) SetMigrationDown(sql string) *PgContainerSuite
func (*PgContainerSuite) SetMigrationUp ¶
func (s *PgContainerSuite) SetMigrationUp(sql string) *PgContainerSuite
func (*PgContainerSuite) SetupSuite ¶
func (s *PgContainerSuite) SetupSuite()
func (*PgContainerSuite) TearDownSuite ¶
func (s *PgContainerSuite) TearDownSuite()
type StorageMock ¶
func (*StorageMock) Delete ¶
func (s *StorageMock) Delete(ctx context.Context, filePaths ...string) error
func (*StorageMock) DeleteAll ¶
func (s *StorageMock) DeleteAll(ctx context.Context, pathPrefix string) error
func (*StorageMock) Dirname ¶
func (s *StorageMock) Dirname() string
func (*StorageMock) GetCwd ¶
func (s *StorageMock) GetCwd() string
func (*StorageMock) GetObject ¶
func (s *StorageMock) GetObject(ctx context.Context, filePath string) (reader io.ReadCloser, err error)
func (*StorageMock) Stat ¶
func (s *StorageMock) Stat(fileName string) (*domains.ObjectStat, error)
func (*StorageMock) SubStorage ¶
func (s *StorageMock) SubStorage(subPath string, relative bool) storages.Storager
Click to show internal directories.
Click to hide internal directories.