manifesto

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotGetLocalManifest = errsys.New("cannot get a local manifest", "Cannot get a local manifesto")

Functions

This section is empty.

Types

type Entrypoint

type Entrypoint struct {
	LocalPath string `json:"localPath"`
	Name      string `json:"name"`
}

type LocalManifesto

type LocalManifesto struct {
	Entries []Entrypoint       `json:"entries,omitempty"`
	Modules []module.Manifesto `json:"modules"`
}

func LoadLocalManifesto

func LoadLocalManifesto(projPath string) (res LocalManifesto, err error)

func NewFromFs

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

func (*LocalManifesto) AddModule

func (m *LocalManifesto) AddModule(module module.Manifesto)

func (*LocalManifesto) FindLocalModule

func (m *LocalManifesto) FindLocalModule(moduleName string) (module.Manifesto, bool)

func (*LocalManifesto) LocalModules

func (m *LocalManifesto) LocalModules() []module.Manifesto

func (*LocalManifesto) ReadFromJSON

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

func (*LocalManifesto) SaveAsLocalManifest

func (m *LocalManifesto) SaveAsLocalManifest(projPath string) error

func (*LocalManifesto) UpdateModule

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

func (*LocalManifesto) WriteToJSON

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

Jump to

Keyboard shortcuts

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