Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintBusFactor ¶
func PrintBusFactor(nodes []*nodeselection.SelectedNode, selector nodeselection.NodeAttribute, threshold int)
Types ¶
type Availability ¶
type Availability struct {
StreamID string `arg:""`
util.DialerHelper
Keys string `required:""`
}
Availability reports the status / availability of one single segment.
func (*Availability) Run ¶
func (s *Availability) Run() error
type Checksum ¶ added in v1.10.0
type Checksum struct {
db.WithDatabase
StreamID string `arg:""`
PieceInfo bool `help:"Print additional information (with using db / segment list) "`
}
type Classify ¶
type Classify struct {
db.WithDatabase
StreamID string `arg:""`
PlacementFile string
}
type Decrypt ¶ added in v1.10.0
type Download ¶
type Download struct {
util.DialerHelper
db.WithDatabase
StreamID string `arg:""`
Keys string `required:""`
NodeInfo bool
}
type ECDecode ¶
type Nodes ¶
type Nodes struct {
db.WithDatabase
NodeIDs string `arg:""`
Verbose bool `default:"true"`
}
type PieceList ¶
type PieceList struct {
StreamID string `arg:""`
util.DialerHelper
Keys string
}
PieceList reports the status / availability of one single segment.
type Report ¶ added in v1.2.0
type Segment ¶
type Segment struct {
Histogram Histogram `cmd:"" help:"diversity histogram of a segment"`
List PieceList `cmd:"" help:"list piece locations in a csv for one single segment"`
Availability Availability `cmd:"" help:"test availability of the segment with calling exists endpoints"`
Classify Classify `cmd:"" help:"execute piece classification on segment"`
Download Download `cmd:"" help:"download all the available pieces ASAP"`
Ecdecode ECDecode `cmd:"" help:"decode original segment from downloaded pieces"`
Show Show `cmd:"" help:"show information about the segment"`
Report Report `cmd:"" help:"show segments based on segment id list"`
Nodes Nodes `cmd:"" help:"print details of nodes"`
Checksum Checksum `cmd:"" help:"Check checksum of the downloaded segment"`
Decrypt Decrypt `cmd:"" help:"Decrypt segment with the provided keys"`
Smoketest Smoketest `cmd:"" help:"Download Hash of the pieces and check if they are zero"`
}
Segment contains command which uses direct database connection.
type Show ¶
type Show struct {
StreamID string `arg:""`
db.WithDatabase
}
type Smoketest ¶ added in v1.12.0
type Smoketest struct {
db.WithDatabase
util.DialerHelper
WithStreamIDs
Offset int
Keys string `required:"" help:"the satellite identity directory"`
}
type WithStreamIDs ¶ added in v1.12.0
type WithStreamIDs struct {
StreamID string `arg:""`
}
Click to show internal directories.
Click to hide internal directories.