registry

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry map[string]string

A Registry is a map of app names to spec file paths.

func Load

func Load() (Registry, error)

Load loads the registry from disk.

func (Registry) Add

func (r Registry) Add(name string, path string) error

Add registers an app.

func (Registry) Prune

func (r Registry) Prune() (int, error)

Prune removes any registered apps whose paths no longer exist.

func (Registry) Remove

func (r Registry) Remove(name string) error

Remove unregisters an app.

func (Registry) Save

func (r Registry) Save() error

Save saves the registry to disk.

Jump to

Keyboard shortcuts

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