registry

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package registry reads the repos a registry file names: which exist, who owns each, where each is checked out, and which provider hosts it.

Index

Constants

View Source
const (
	GitHub    = "github"
	Bitbucket = "bitbucket"
)

The providers a repo can name. A file names its default, and an entry can override it.

Variables

View Source
var Providers = []string{GitHub, Bitbucket}

Providers is every provider a registry may name.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	Name string
	// Owner is the GitHub owner, or the Bitbucket project key.
	Owner string
	// Slug is owner/name, which identifies the repo on its provider. Two Bitbucket projects
	// can each hold a repo of one name.
	Slug     string
	Path     string
	Provider string
}

Repo is one active registry entry.

func Hosted

func Hosted(repos []Repo, provider string) []Repo

Hosted is the repos one provider hosts.

func Load

func Load(path string) ([]Repo, error)

Load reads every active repo the file names, in the file's order.

Jump to

Keyboard shortcuts

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