Documentation
¶
Overview ¶
Package catalog lists the sources Arnakoff syncs, how often, and the hosts they reach: the one list the sync and API processes are built from.
Index ¶
- Variables
- func Blacklists(opts Options, snaps listing.Snapshots) []app.Blacklist
- func Hosts(opts Options) []string
- func Numbering(snaps listing.Snapshots) []app.Numbering
- func Whitelists(snaps listing.Snapshots, platforms domain.Platforms) []app.Whitelist
- type Catalog
- type Getter
- type Offline
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrOffline = errors.New("this process downloads nothing")
ErrOffline is returned by Offline.Get.
Functions ¶
func Blacklists ¶ added in v0.25.0
Blacklists returns the blacklists opts turns on, each read from the snapshot of its source in snaps, for app.Registries.
func Hosts ¶
Hosts returns, once each, the hosts the sources opts turns on reach, for the allowlist of the HTTP client New takes.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
Catalog is the list of the sources turned on, in a stable order.
func (*Catalog) Fetchers ¶
func (c *Catalog) Fetchers() []app.SourceFetcher
Fetchers returns the fetcher of each source, for app.NewSync.
Click to show internal directories.
Click to hide internal directories.