nodelist

package
v1.73.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = errs.Class("node list")

Error is an error class of node list errors.

Functions

func ParseNodeURL

func ParseNodeURL(s string) (id storj.NodeURL, err error)

ParseNodeURL parses a node address and returns the URL.

func Resolve

func Resolve(ctx context.Context, configValues []string) (satMap map[storj.NodeURL]struct{}, hasNodeList bool, err error)

Resolve takes a list of configuration paths and returns a list of deduplicated NodeURLs.

configValues can be one or more of the following:

  • A URL that responds with node IDs newline separated. e.g. https://www.storj.io/dcs-satellites
  • A local file path containing node IDs newline separated. e.g. /path/to/my/satellites.txt
  • Individual satellite node URLs. e.g. 12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S@us1.storj.io:7777

HasNodeList indicates if any configValue is a node address list, indicating it should be polled for updates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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