Documentation
¶
Overview ¶
Package identities tells a registry client which id each package is kept under.
A package's directory is named after its id, so nothing about the directory says which package it holds. Every command that reads or writes one starts by reading the table out of the definitions themselves, which is one query per hundred of them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Read ¶
func Read(ctx context.Context, logger *slog.Logger, registry *g2.Client, httpClient *http.Client, owner, repo string) (*g2.Identities, map[string]string, error)
Read tells the registry which id each package is kept under, and returns the definition each package on the default branch holds, keyed by id, along with the table.
The definitions come back because they are what the table was read out of: a command that works through every definition would otherwise read the same pages again.
Types ¶
This section is empty.