registries

package
v0.0.0-...-2d1b4f9 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OfficialName = "official"
)

Variables

This section is empty.

Functions

func Add

func Add(fs afero.Fs, name, url string) error

func Remove

func Remove(fs afero.Fs, name string) error

Types

type Source

type Source struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Source identifies a registry repository. Name doubles as the per-registry cache subdirectory, so it is restricted to a filesystem-safe slug.

func Load

func Load(fs afero.Fs) []Source

Load returns the official registry followed by any user-configured extras. A missing or unreadable config yields just the official registry.

func (Source) Official

func (s Source) Official() bool

Jump to

Keyboard shortcuts

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