Documentation ¶
Index ¶
- Constants
- Variables
- func CacheAndRemoveEnvVars() error
- func CacheEnsureDir(dirName string, cacheKey string, perm os.FileMode, dirDesc string) error
- func ClientArch() string
- func DetermineLang() string
- func DetermineLocale() string
- func EnsureWaveConfigDir() error
- func EnsureWaveDBDir() error
- func EnsureWaveDataDir() error
- func EnsureWavePresetsDir() error
- func ExpandHomeDir(pathStr string) (string, error)
- func ExpandHomeDirSafe(pathStr string) string
- func GetDomainSocketName() string
- func GetHomeDir() string
- func GetWaveAppBinPath() string
- func GetWaveAppPath() string
- func GetWaveConfigDir() string
- func GetWaveDataDir() string
- func IsDevMode() bool
- func ReplaceHomeDir(pathStr string) string
- func TryMkdirs(dirName string, perm os.FileMode, dirDesc string) error
- func UnameKernelRelease() string
- func ValidateWshSupportedArch(os string, arch string) error
- type FDLock
Constants ¶
View Source
const ( WaveConfigHomeEnvVar = "WAVETERM_CONFIG_HOME" WaveDataHomeEnvVar = "WAVETERM_DATA_HOME" WaveAppPathVarName = "WAVETERM_APP_PATH" WaveDevVarName = "WAVETERM_DEV" WaveDevViteVarName = "WAVETERM_DEV_VITE" WaveWshForceUpdateVarName = "WAVETERM_WSHFORCEUPDATE" WaveJwtTokenVarName = "WAVETERM_JWT" WaveSwapTokenVarName = "WAVETERM_SWAPTOKEN" )
View Source
const ( BlockFile_Term = "term" // used for main pty output BlockFile_Cache = "cache:term:full" // for cached block BlockFile_VDom = "vdom" // used for alt html layout BlockFile_Env = "env" )
View Source
const AppPathBinDir = "bin"
View Source
const ConfigDir = "config"
View Source
const DomainSocketBaseName = "wave.sock"
View Source
const JwtSecret = "waveterm" // TODO generate and store this
View Source
const NeedJwtConst = "NEED-JWT"
View Source
const RemoteDomainSocketBaseName = "wave-remote.sock"
View Source
const RemoteFullDomainSocketPath = "~/.waveterm/wave-remote.sock"
View Source
const RemoteFullWshBinPath = "~/.waveterm/bin/wsh"
View Source
const RemoteWaveHomeDirName = ".waveterm"
View Source
const RemoteWshBinDirName = "bin"
View Source
const WaveDBDir = "db"
View Source
const WaveLockFile = "wave.lock"
Variables ¶
View Source
var AppPath_VarCache string // caches WAVETERM_APP_PATH
View Source
var BuildTime = "0"
View Source
var ConfigHome_VarCache string // caches WAVETERM_CONFIG_HOME
View Source
var DataHome_VarCache string // caches WAVETERM_DATA_HOME
View Source
var Dev_VarCache string // caches WAVETERM_DEV
View Source
var SupportedWshBinaries = map[string]bool{ "darwin-x64": true, "darwin-arm64": true, "linux-x64": true, "linux-arm64": true, "windows-x64": true, "windows-arm64": true, }
View Source
var WaveVersion = "0.0.0"
set by main-server.go
Functions ¶
func CacheAndRemoveEnvVars ¶ added in v0.9.0
func CacheAndRemoveEnvVars() error
func CacheEnsureDir ¶
func ClientArch ¶
func ClientArch() string
func DetermineLang ¶
func DetermineLang() string
func DetermineLocale ¶
func DetermineLocale() string
func EnsureWaveConfigDir ¶
func EnsureWaveConfigDir() error
func EnsureWaveDBDir ¶
func EnsureWaveDBDir() error
func EnsureWaveDataDir ¶ added in v0.9.0
func EnsureWaveDataDir() error
func EnsureWavePresetsDir ¶ added in v0.9.0
func EnsureWavePresetsDir() error
func ExpandHomeDir ¶
func ExpandHomeDirSafe ¶ added in v0.8.3
func GetDomainSocketName ¶
func GetDomainSocketName() string
func GetHomeDir ¶
func GetHomeDir() string
func GetWaveAppBinPath ¶ added in v0.8.9
func GetWaveAppBinPath() string
func GetWaveAppPath ¶ added in v0.8.9
func GetWaveAppPath() string
func GetWaveConfigDir ¶ added in v0.9.0
func GetWaveConfigDir() string
func GetWaveDataDir ¶ added in v0.9.0
func GetWaveDataDir() string
func ReplaceHomeDir ¶
func UnameKernelRelease ¶
func UnameKernelRelease() string
func ValidateWshSupportedArch ¶ added in v0.11.0
Types ¶
Click to show internal directories.
Click to hide internal directories.