storagenodedbtest

package
v1.95.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeStorageUsageStamps added in v1.67.1

func MakeStorageUsageStamps(satellites []storj.NodeID, days int, endDate time.Time) []storageusage.Stamp

MakeStorageUsageStamps creates storage usage stamps and expected summaries for provided satellites. Creates one entry per day for 30 days with last date as beginning of provided endDate.

func OpenNew added in v1.69.1

func OpenNew(ctx context.Context, log *zap.Logger, config storagenodedb.Config) (*storagenodedb.DB, error)

OpenNew opens a new storage node database pre-populated with a newly initialized and migrated database snapshot.

func Run

func Run(t *testing.T, test func(ctx *testcontext.Context, t *testing.T, db storagenode.DB))

Run method will iterate over all supported databases. Will establish connection and will create tables for each DB.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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