internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 4 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 struct {
	Name        string             `json:"name"`
	Description string             `json:"description"`
	Version     string             `json:"version"`
	Modules     []module.Manifesto `json:"modules"`
}

func LoadLocalRegistry

func LoadLocalRegistry(projPath string) (Registry, error)

func NewFromFs

func NewFromFs(manifestFs fs.FS, filename string) (*Registry, error)

func (*Registry) AddModule

func (m *Registry) AddModule(moduleManifesto module.Manifesto)

func (*Registry) ReadFromJSON

func (m *Registry) ReadFromJSON(data []byte) error

func (*Registry) SaveAsLocalFile

func (m *Registry) SaveAsLocalFile(projPath string) error

func (*Registry) UpdateModule

func (m *Registry) UpdateModule(module module.Manifesto)

func (*Registry) WriteToJSON

func (m *Registry) WriteToJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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