node

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkin

type Checkin struct {
	util.DialerHelper
	URL string `arg:""`
}

func (*Checkin) Run

func (c *Checkin) Run() error

type Convert

type Convert struct {
	NodeID     storj.NodeID
	Input      string `arg:""`
	Conversion int
}

func (Convert) Run

func (c Convert) Run() error

convert rootPieceId,index,... file to pieceId,...

type Export

type Export struct {
	MaxmindDB string
}

func (Export) Run

func (c Export) Run() error

type GeoIP

type GeoIP struct {
	GetDatabase string `arg:""`
	IP          string `arg:""`
}

func (GeoIP) Run

func (g GeoIP) Run() error

type Info

type Info struct {
	NodeID storj.NodeID `arg:""`
}

func (Info) Run

func (i Info) Run() error

type Node

type Node struct {
	Report         Report         `cmd:""`
	NodeStat       NodeStat       `cmd:"nodestat call (sn->satellite)"`
	Export         Export         `cmd:""`
	UnsentOrder    UnsentOrder    `cmd:"" usage:"parse unsent order archive"`
	Paystub        Paystub        `cmd:""`
	Checkin        Checkin        `cmd:"" help:"node checking rpc call (sn->satellite)"`
	PieceList      PieceList      `cmd:"" help:"generate list of pieces for one node"`
	PieceListCheck PieceListCheck `cmd:"" help:"check the generated list based on a real blobstore"`
	GeoIP          GeoIP          `cmd:"" help:"opens and prints out maxmind GeoIP database"`
	Convert        Convert        `cmd:""`
	Usage          Usage          `cmd:"" help:"calls the info endpoint of the satellite in the name of the storagenode (sn->satellite)"`
	Info           Info           `cmd:"" help:"information for one node"`
}

type NodeRecord

type NodeRecord struct {
	NodeID     storj.NodeID
	Address    string
	LastIPPort string
	Country    location.CountryCode
	UpdatedAt  time.Time
}

type NodeStat

type NodeStat struct {
	util.DialerHelper
	URL string `arg:""`
}

func (NodeStat) Run

func (g NodeStat) Run() error

type Paystub

type Paystub struct {
	URL    string `arg:""`
	Period string `arg:""`
	util.DialerHelper
}

func (Paystub) Run

func (g Paystub) Run() error

type PieceList

type PieceList struct {
	Aliases []int32 `arg:""`
	Limit   int64
	// contains filtered or unexported fields
}

func (*PieceList) Run

func (p *PieceList) Run() error

type PieceListCheck

type PieceListCheck struct {
	File              string `arg:""`
	PieceExpirationDB string
	NodeID            storj.NodeID
	Verbose           bool
}

func (*PieceListCheck) Run

func (p *PieceListCheck) Run() error

type Report

type Report struct {
	NodeFile string `arg:""`
}

type Stat

type Stat map[string]int

func (Stat) Increment

func (s Stat) Increment(group string)

func (Stat) Summary

func (s Stat) Summary()

type UnsentOrder

type UnsentOrder struct {
	File           string `arg:""`
	EncryptionKeys string
}

func (UnsentOrder) Run

func (c UnsentOrder) Run() error

type Usage

type Usage struct {
	util.DialerHelper
	SatelliteID storj.NodeURL `arg:""`
}

func (Usage) Run

func (u Usage) Run() error

Jump to

Keyboard shortcuts

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