Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // TODO: just trying to match the names in storagenodedb.Config. Change these to be more descriptive. Storage string `help:"path to the storage database directory"` Info string `help:"path to the piecestore db"` Info2 string `help:"path to the info database"` Driver string `help:"database driver to use" default:"sqlite3"` Pieces string `help:"path to store pieces in"` Filestore filestore.Config }
Config is the config for lazyfilewalker process.
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
Supervisor performs filewalker operations in a subprocess with lower I/O priority.
func NewSupervisor ¶
func NewSupervisor(log *zap.Logger, executable string, args []string) *Supervisor
NewSupervisor creates a new lazy filewalker Supervisor.
func (*Supervisor) WalkAndComputeSpaceUsedBySatellite ¶
func (fw *Supervisor) WalkAndComputeSpaceUsedBySatellite(ctx context.Context, satelliteID storj.NodeID) (piecesTotal int64, piecesContentSize int64, err error)
WalkAndComputeSpaceUsedBySatellite returns the total used space by satellite.
type UsedSpaceRequest ¶
UsedSpaceRequest is the request struct for the used-space-filewalker process.
type UsedSpaceResponse ¶
type UsedSpaceResponse struct { PiecesTotal int64 `json:"piecesTotal"` PiecesContentSize int64 `json:"piecesContentSize"` }
UsedSpaceResponse is the response struct for the used-space-filewalker process.
Click to show internal directories.
Click to hide internal directories.