identities

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package identities tells a registry client what each package's branch is named after.

A branch is named after the package's id, so nothing about a branch's name says which package it holds. Every command that reads or writes one starts by reading the table out of the branches 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 what each package's branch is named after, and returns the definition each branch holds 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.

Jump to

Keyboard shortcuts

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