registryindex

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 1

Variables

This section is empty.

Functions

func Path

func Path() (string, error)

func Remove

func Remove(path, repo string) error

func Save

func Save(path string, idx *Index) error

func Upsert

func Upsert(path string, entry Registry) error

Types

type Index

type Index struct {
	Version    int        `json:"version"`
	UpdatedAt  time.Time  `json:"updated_at"`
	Registries []Registry `json:"registries"`
}

func Load

func Load(path string) (*Index, error)

type ManifestMetadata

type ManifestMetadata struct {
	APIVersion string `json:"api_version,omitempty"`
	Kind       string `json:"kind,omitempty"`
	TeamName   string `json:"team_name,omitempty"`
	Present    bool   `json:"present"`
}

type MetadataClient

type MetadataClient interface {
	RepositoryDefaultBranch(ctx context.Context, owner, repo string) (string, error)
	LatestCommitSHA(ctx context.Context, owner, repo, branch string) (string, error)
}

type Registry

type Registry struct {
	Repo            string           `json:"repo"`
	SourceRepo      string           `json:"source_repo"`
	Visibility      string           `json:"visibility"`
	DefaultBranch   string           `json:"default_branch,omitempty"`
	HeadSHA         string           `json:"head_sha,omitempty"`
	ManifestPresent bool             `json:"manifest_present"`
	Manifest        ManifestMetadata `json:"manifest"`
	SkillCount      int              `json:"skill_count"`
	KitCount        int              `json:"kit_count"`
	LastFetchedAt   time.Time        `json:"last_fetched_at"`
	Tags            []string         `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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