Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Compact ¶
type Compact struct {
Dir string `usage:"directory of the store (not the db!)" default:"/tmp/store"`
}
type Convert ¶
func (*Convert) Copy ¶
func (i *Convert) Copy(ctx context.Context, store blobstore.Blobs, op *piecestore.HashStoreBackend, info blobstore.BlobInfo, buf []byte, header *pb.PieceHeader) (err error)
type Diff ¶ added in v1.4.0
type Generate ¶ added in v1.1.0
type Generate struct {
load.PieceIDStream
Dir string `usage:"directory of the store (not the db!)" default:"/tmp/store"`
Samples int `usage:"number of pieces to be written" default:"1"`
Size int64 `usage:"size of the pieces to be written" default:"100000"`
TTL time.Duration `usage:"TTL to be used"`
TTLModulo int `usage:"modulo for TTL. Only the selected pieces with this modulo will be TTLed" default:"1"`
MinTableSize uint64 `usage:"minimum table size for the store" default:"20"`
MetaPath string `usage:"path to the meta file" default:""`
}
type Get ¶ added in v1.4.0
type Hashstore ¶
type Hashstore struct {
Convert Convert `cmd:"" usage:"import data to the hashtable"`
List List `cmd:"" usage:"list content of a hashtable"`
Stat Stat `cmd:"" usage:"list content of a hashtable stat"`
//Generate Generate `cmd:"" usage:"generate data to a hashtable store"`
Compact Compact `cmd:"" usage:"compact a hashtable store"`
Report Report `cmd:"" usage:"show additional reports on a hashtable store"`
Logs Logs `cmd:"" usage:"show current log file load"`
TTLReport TTLReport `cmd:"" usage:"print out ttl expiration per file"`
Recover Recover `cmd:"" usage:"recover hashtable (metadata) from a hashstore log files"`
RestoreTime RestoreTime `cmd:"" usage:"get/set restore time for a satellite"`
Get Get `cmd:"" usage:"get a record from a hashtable"`
Diff Diff `cmd:"" usage:"diff two hashstore"`
}
type List ¶
type List struct {
Path string `arg:""`
Expired bool `help:"list expired records" default:"true"`
Trash bool `help:"list trashed records" default:"true"`
ValidAt string `help:"list records only if valid at this time (created before, expired after)"`
Key bool `help:"print only keys in PieceID format"`
}
type Recover ¶ added in v1.3.0
type Recover struct {
Dir string `default:"." help:"the directory to recover"`
MetaDir string `help:"the directory to create the recovered hashtable"`
Size int `default:"26" help:"size of the new hashtable (power of 2)"`
}
func (*Recover) RecoverOne ¶ added in v1.3.0
type RestoreTime ¶ added in v1.3.0
type RestoreTime struct {
NewValue time.Time `cmd:"arg"`
Dir string `default:"" help:"the directory to recover"`
SatelliteID storj.NodeID `default:"12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S"`
}
func (*RestoreTime) Run ¶ added in v1.3.0
func (r *RestoreTime) Run() error
type TimeHistogram ¶ added in v1.4.0
type TimeHistogram struct {
// contains filtered or unexported fields
}
func NewTimeHistogram ¶ added in v1.4.0
func NewTimeHistogram() *TimeHistogram
func (*TimeHistogram) Count ¶ added in v1.4.0
func (t *TimeHistogram) Count() (res int)
func (*TimeHistogram) Increment ¶ added in v1.4.0
func (t *TimeHistogram) Increment(idx int)
func (*TimeHistogram) Print ¶ added in v1.4.0
func (t *TimeHistogram) Print(minLimit int, maxLimit int)
Click to show internal directories.
Click to hide internal directories.