Discover Packages
storj.io/storj
storagenode
storagenodedb
storagenodedbtest
package
Version:
v1.125.0-rc
Opens a new window with list of versions in this module.
Published: Mar 19, 2025
License: AGPL-3.0
Opens a new window with license information.
Imports: 22
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Directories Index Constants Variables Functions Types MakeStorageUsageStamps(satellites, days, endDate) OpenNew(ctx, log, config) Run(t, test)
Documentation
¶
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 (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 (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.
Source Files
¶
Directories
¶
Show internal
Collapse all
Click to show internal directories.
Click to hide internal directories.