satellitelist

package
v1.43.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

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.

func ParseSatelliteURL added in v1.31.0

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

ParseSatelliteURL parses a Satellite address and returns the URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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