Documentation
¶
Index ¶
- func BaseDir() string
- func BenchDir() string
- func ConfigDir() string
- func EnsureAll() error
- func EnsureDir(path string) error
- func ExpandHome(path string) string
- func LogDir() string
- func MarkerFile(name string) string
- func ModelLockDir() string
- func ModelLockFile(name string) string
- func ModelsDir() string
- func StateFile() string
- func StateLockFile() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseDir ¶
func BaseDir() string
BaseDir returns the llmconfig root directory (LLMCONFIG_CONFIG_DIR or the user's home dir joined with ".llmconfig"). It is platform-independent: os.UserHomeDir resolves to %USERPROFILE% on Windows and $HOME elsewhere.
func ExpandHome ¶
ExpandHome resolves leading "~" to the user's home directory. Handles bare "~", "~/<rest>", and "~\<rest>" (the last form is what Windows users typically type when editing YAML by hand).
func MarkerFile ¶ added in v1.2.0
MarkerFile returns the path of an opaque "we did this once" marker under BaseDir(). Used by one-shot bookkeeping like the .yaml→.llmc migration: the file's presence is the only signal; its contents are ignored.
func ModelLockDir ¶
func ModelLockDir() string
ModelLockDir is the directory holding per-model lock files for serialising concurrent operations (e.g. `llmconfig up X`) against the same model.
func ModelLockFile ¶
ModelLockFile is the path of the lock file for a single model.
func StateLockFile ¶
func StateLockFile() string
Types ¶
This section is empty.