settings

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 Check

func Check(name, dir string) error

func ConfigHomeDir added in v1.4.3

func ConfigHomeDir() string

ConfigHomeDir returns the path where Empirica config files should be stored.

func CreateEmpiricaDir

func CreateEmpiricaDir(name, dir string) error

func Init

func Init(name, dir string) error

func InitShared

func InitShared()

InitShared initialize shared environment paths.

func InstallVolta

func InstallVolta(ctx context.Context) error

func InstallVoltaIfNeeded

func InstallVoltaIfNeeded(ctx context.Context) error

func ReadIDFile

func ReadIDFile(dir string) (string, error)

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 VoltaDir

func VoltaDir() string

VoltaDir is the directory for the Volta installation.

func VoltaIsInstalled

func VoltaIsInstalled() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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