Versions in this module Expand all Collapse all v0 v0.7.0 Jan 11, 2023 Changes in this version type Workspace + func (ws *Workspace) InternalPath() string + func (ws *Workspace) WarehousePath() string v0.6.0 Jan 5, 2023 Changes in this version + const CatalogNameFormat + func PlaceWorkspace(rootPath string, opts ...PlaceWorkspaceOpt) error + type Catalog struct + func OpenCatalog(fsys fs.FS, path string) (Catalog, error) + func (cat *Catalog) AddByModuleMirror(ref wfapi.CatalogRef, packType wfapi.Packtype, addr wfapi.WarehouseAddr) error + func (cat *Catalog) AddByWareMirror(ref wfapi.CatalogRef, wareId wfapi.WareID, addr wfapi.WarehouseAddr) error + func (cat *Catalog) AddItem(ref wfapi.CatalogRef, wareId wfapi.WareID, overwrite bool) error + func (cat *Catalog) AddReplay(ref wfapi.CatalogRef, plot wfapi.Plot, overwrite bool) error + func (cat *Catalog) GetMirror(ref wfapi.CatalogRef) (*wfapi.CatalogMirrors, error) + func (cat *Catalog) GetModule(ref wfapi.CatalogRef) (*wfapi.CatalogModule, error) + func (cat *Catalog) GetRelease(ref wfapi.CatalogRef) (*wfapi.CatalogRelease, error) + func (cat *Catalog) GetReplay(ref wfapi.CatalogRef) (*wfapi.Plot, error) + func (cat *Catalog) GetWare(ref wfapi.CatalogRef) (*wfapi.WareID, *wfapi.WarehouseAddr, error) + func (cat *Catalog) Modules() []wfapi.ModuleName + type PlaceWorkspaceOpt func(rootPath string) error + func SetRootWorkspaceOpt() PlaceWorkspaceOpt + type Workspace struct + func FindRootWorkspace(fsys fs.FS, basisPath string, searchPath string) (*Workspace, error) + func FindWorkspace(fsys fs.FS, basisPath, searchPath string) (ws *Workspace, remainingSearchPath string, err error) + func OpenHomeWorkspace(fsys fs.FS) (*Workspace, error) + func OpenWorkspace(fsys fs.FS, rootPath string) (*Workspace, error) + func (ws *Workspace) CachePath(wareId wfapi.WareID) (string, error) + func (ws *Workspace) CatalogBasePath() string + func (ws *Workspace) CatalogPath(name string) (string, error) + func (ws *Workspace) CreateCatalog(name string) error + func (ws *Workspace) CreateOrOpenCatalog(name string) (Catalog, error) + func (ws *Workspace) GetCatalogReplay(ref wfapi.CatalogRef) (*wfapi.Plot, error) + func (ws *Workspace) GetCatalogWare(ref wfapi.CatalogRef) (*wfapi.WareID, *wfapi.WarehouseAddr, error) + func (ws *Workspace) GetWarehouseAddress() wfapi.WarehouseAddr + func (ws *Workspace) HasCatalog(name string) (bool, error) + func (ws *Workspace) IsHomeWorkspace() bool + func (ws *Workspace) IsRootWorkspace() bool + func (ws *Workspace) ListCatalogs() ([]string, error) + func (ws *Workspace) MemoBasePath() string + func (ws *Workspace) MemoPath(fid string) string + func (ws *Workspace) OpenCatalog(name string) (Catalog, error) + func (ws *Workspace) Path() (fs.FS, string) + type WorkspaceSet []*Workspace + func FindWorkspaceStack(fsys fs.FS, basisPath, searchPath string) (wss WorkspaceSet, err error) + func (wsSet WorkspaceSet) GetCatalogReplay(ref wfapi.CatalogRef) (*wfapi.Plot, error) + func (wsSet WorkspaceSet) GetCatalogWare(ref wfapi.CatalogRef) (*wfapi.WareID, *wfapi.WarehouseAddr, error) + func (wsSet WorkspaceSet) GetWarehouseAddresses() []wfapi.WarehouseAddr + func (wsSet WorkspaceSet) Local() *Workspace + func (wsSet WorkspaceSet) Root() *Workspace + func (wsSet WorkspaceSet) Tidy(ctx context.Context, plot wfapi.Plot, force bool) error