Documentation ¶
Index ¶
- Constants
- Variables
- func CacheHomeDir() string
- func Check(name, dir string) error
- func ConfigHomeDir() string
- func CreateEmpiricaDir(name, dir string) error
- func Init(name, dir string) error
- func InitShared()
- func InstallVolta(ctx context.Context) error
- func InstallVoltaIfNeeded(ctx context.Context) error
- func ReadIDFile(dir string) (string, error)
- func SharedDataDir() string
- func VoltaBinDir() string
- func VoltaDir() string
- func VoltaIsInstalled() bool
Constants ¶
View Source
const ( EmpiricaDir = ".empirica" BuildSelectionFile = "release" LocalDir = "local" TreatmentsYAML = "treatments.yaml" LobbiesYAML = "lobbies.yaml" EmpiricaTOML = "empirica.toml" )
Variables ¶
View Source
var ErrEmpiricaDirMissing = errors.New("empirica directory missing")
Functions ¶
func CacheHomeDir ¶ added in v1.4.3
func CacheHomeDir() string
CacheHomeDir returns the path where Empirica cache files should be stored.
func ConfigHomeDir ¶ added in v1.4.3
func ConfigHomeDir() string
ConfigHomeDir returns the path where Empirica config files should be stored.
func CreateEmpiricaDir ¶
func InstallVolta ¶
func InstallVoltaIfNeeded ¶
func ReadIDFile ¶
func SharedDataDir ¶
func SharedDataDir() string
SharedDataDir returns the path where shared Empirica files should be stored. This is generally used as a cache.
func VoltaBinDir ¶
func VoltaBinDir() string
VoltaBinDir is the directory containing the Volta shim executables.
func VoltaIsInstalled ¶
func VoltaIsInstalled() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.