segment

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: AGPL-3.0 Imports: 39 Imported by: 0

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 {
	StreamID string `arg:""`
}

func (*Checksum) Run added in v1.10.0

func (s *Checksum) Run() error

type Classify

type Classify struct {
	db.WithDatabase
	StreamID      string `arg:""`
	PlacementFile string
}

func (*Classify) Run

func (s *Classify) Run() error

type Decrypt added in v1.10.0

type Decrypt struct {
	StreamID string `arg:""`
	Bucket   string
	Key      string
	db.WithDatabase
	ProjectID uuid.UUID
}

func (*Decrypt) Run added in v1.10.0

func (s *Decrypt) Run() error

type Download

type Download struct {
	util.DialerHelper
	db.WithDatabase
	StreamID string `arg:""`
	Keys     string `required:""`
	NodeInfo bool
}

func (*Download) Run

func (s *Download) Run() error

type ECDecode

type ECDecode struct {
	StreamID    string `arg:""`
	Incremental bool   `help:"if true, segment will be decoded only if the file doesn't exist'"`
	Correct     bool
	K           int `help:"The k number of RS code, default is 29" default:"29"`
}

func (*ECDecode) Run

func (s *ECDecode) Run() error

type Histogram

type Histogram struct {
	db.WithDatabase
	Selector string
	StreamID string `arg:""`
}

func (Histogram) Run

func (h Histogram) Run() error

type Nodes

type Nodes struct {
	db.WithDatabase
	NodeIDs string `arg:""`
	Verbose bool   `default:"true"`
}

func (Nodes) Run

func (h Nodes) Run() error

type PieceList

type PieceList struct {
	StreamID string `arg:""`
	util.DialerHelper
	Keys string
}

PieceList reports the status / availability of one single segment.

func (*PieceList) Run

func (s *PieceList) Run() error

type Report added in v1.2.0

type Report struct {
	db.WithDatabase
	File    string        `arg:""`
	NodeID  *storj.NodeID `help:"optional node ID to filter segments if they are not part of the segment today"`
	InPlace bool          `help:"rewrite the input with actualized data"`
}

func (*Report) Run added in v1.2.0

func (s *Report) Run() error

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"`
}

Segment contains command which uses direct database connection.

type Show

type Show struct {
	StreamID string `arg:""`
	db.WithDatabase
}

func (*Show) Run

func (s *Show) Run() error

Jump to

Keyboard shortcuts

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