store

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generate

type Generate struct {
	WithStore
	Repeat int `default:"10000"`
	Size   int `default:"100000"`
	Thread int `default:"1"`
	// contains filtered or unexported fields
}

func (Generate) Run

func (g Generate) Run() error
type Header struct {
	File string `arg:"" help:"file to read"`
}

func (Header) Run

func (h Header) Run() error

type Size

type Size struct {
	WithStore
	Cache string
}

func (Size) Run

func (s Size) Run() error

type Store

type Store struct {
	Header   Header   `cmd:"" usage:"read header of sj1 file"`
	Generate Generate `cmd:"" usage:"generate blobs"`
	Size     Size     `cmd:"" usage:"walk a blob directory for one satellite and calculate size"`
}

type WithStore

type WithStore struct {
	Dir         string       `arg:"" help:"directory to store pieces in"`
	Satellite   storj.NodeID `default:"1PFhx8cVX2gmesYbRooS3Banj3eBKsLgibQorQuhCwWGHg66U6"`
	BadgerCache string
	Badger      bool
}

func (WithStore) CreateStore

func (w WithStore) CreateStore(log *zap.Logger) (store blobstore.Blobs, err error)

Jump to

Keyboard shortcuts

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