assembly

package
v0.47.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package assembly builds a check and the list of its sources from the lists the configuration turns on, the snapshots in service and the registries: the one assembly every command shares, so that none of them consults fewer sources than another without saying so.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lists

func Lists(opts catalog.Options, snaps listing.Snapshots, regs app.Registries) (app.Registries, error)

Lists returns regs with the lists a check reads, each from the snapshot of its source in snaps: the blacklists opts turns on, the white lists, which leave out the shipped hosting platforms, and the numbering plan, and the shipped list of official domains. The registries of regs are kept. A shipped list that does not load is an error.

func Sync

func Sync(opts catalog.Options, st app.SnapshotStore) (*app.Sync, error)

Sync returns the sync of the sources opts turns on, stored in st. It never downloads: the sync process does.

Types

type Service

type Service struct {
	Sync    *app.Sync
	Check   *app.Check
	Sources *app.SourceList
}

Service is what a process answers with: the snapshots in service, the check that reads them and the list of the sources it consults.

func Live

func Live(opts catalog.Options, st app.SnapshotStore, checkOpts ...app.CheckOption) (Service, error)

Live returns the service of the lists opts turns on, their snapshots read from st, and of the live registries, each check configured by checkOpts. Nothing is fetched until a check asks.

func New

func New(opts catalog.Options, st app.SnapshotStore, regs app.Registries, checkOpts ...app.CheckOption) (Service, error)

New returns the service of the lists opts turns on, their snapshots read from st, and of the registries of regs, each check configured by checkOpts. Nothing is restored: the caller restores Service.Sync.

Jump to

Keyboard shortcuts

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