Documentation
¶
Overview ¶
Package home is anfra's own folder on this machine: everything anfra keeps between runs, in one place to find, mount or delete.
<home>/ ├── bin/anfra the installer's binary (install.sh) ├── sidecars/<name>-<hash> the embedded sidecars, unpacked to run (internal/sidecar) ├── update-check.json the last update check (internal/update) └── repos/<repo id>/ each repo's state: logs, caches, the running server (internal/repo)
It is ~/.anfra, or ANFRA_HOME. A repo's own config is not here: it is the repo's .anfra/ folder, committed with it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
func Dir() string
Dir is anfra's folder: ANFRA_HOME, else ~/.anfra (in the temp folder when there is no home folder).
func RemoveLegacy ¶
func RemoveLegacy()
RemoveLegacy removes what anfra kept in the user's cache folder before it kept everything in Dir: the unpacked sidecars and the last update check, which are made again on demand. Best-effort, and cheap once it is gone.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.