home

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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