Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAllowedSatelliteList = errs.Class("allowed satellite list")
ErrAllowedSatelliteList is an error class for allowed satellite list errors.
Functions ¶
func LoadSatelliteURLs ¶ added in v1.31.0
func LoadSatelliteURLs(ctx context.Context, configValues []string) (satMap map[storj.NodeURL]struct{}, hasNodeList bool, err error)
LoadSatelliteURLs takes a list of configuration paths and returns a list of satellites URLs suitable for calling ("*Database).SetAllowedSatellites(). ConfigValues may be satellite address URLs with a node id. Alternatively, ConfigValues may be local or HTTP(S) files which contain one satellite address per line, the same format as https://www.storj.io/dcs-satellites. 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.