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 ¶
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.
Click to show internal directories.
Click to hide internal directories.