-
Notifications
You must be signed in to change notification settings - Fork 0
/
piece.go
27 lines (23 loc) · 1.2 KB
/
piece.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package piece
import (
"github.com/spacemonkeygo/monkit/v3"
"github.com/spf13/cobra"
)
var mon = monkit.Package()
var PieceCmd = &cobra.Command{
Use: "piece",
}
type Piece struct {
UploadDrpc UploadDrpc `cmd:"" help:"Upload piece to the Storagenode"`
DownloadDrpc DownloadDRPC `cmd:"" help:"Download piece from the Storagenode"`
List List `cmd:"" help:"Print out pieces for one particular object"`
Nodes Nodes `cmd:"" help:"Print out piece locations with pieceID and node ID"`
NodeSpeed NodeSpeed `cmd:"" help:"Download one piece from all the nodes"`
Decode Decode `cmd:"" help:"Decode piece alias (from the condensed format, stored in db)"`
DownloadPs DownloadPieceStore `cmd:"" help:"Download piece from the Storagenode using piece store"`
Unalias Unalias `cmd:"" help:"Decode node aliases"`
Exist Exist `cmd:"" help:"check if piece id is on SN"`
Audit Audit `cmd:"" help:"audit pieces on node"`
Derive Derive `cmd:"" help:"derive piece id"`
Checksum Checksum `cmd:"" help:"download piece and checks if stored checksum is fine"`
}