{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package wavebase\n\n## Constants\n\n```go\nconst (\n\tWaveConfigHomeEnvVar           = \"WAVETERM_CONFIG_HOME\"\n\tWaveDataHomeEnvVar             = \"WAVETERM_DATA_HOME\"\n\tWaveAppPathVarName             = \"WAVETERM_APP_PATH\"\n\tWaveAppResourcesPathVarName    = \"WAVETERM_RESOURCES_PATH\"\n\tWaveAppElectronExecPathVarName = \"WAVETERM_ELECTRONEXECPATH\"\n\tWaveDevVarName                 = \"WAVETERM_DEV\"\n\tWaveDevViteVarName             = \"WAVETERM_DEV_VITE\"\n\tWaveWshForceUpdateVarName      = \"WAVETERM_WSHFORCEUPDATE\"\n\tWaveNoConfirmQuitVarName       = \"WAVETERM_NOCONFIRMQUIT\"\n\n\tWaveJwtTokenVarName  = \"WAVETERM_JWT\"\n\tWaveSwapTokenVarName = \"WAVETERM_SWAPTOKEN\"\n)\n```\n\n```go\nconst (\n\tBlockFile_Term  = \"term\"            // used for main pty output\n\tBlockFile_Cache = \"cache:term:full\" // for cached block\n\tBlockFile_VDom  = \"vdom\"            // used for alt html layout\n\tBlockFile_Env   = \"env\"\n)\n```\n\n```go\nconst AppPathBinDir = \"bin\"\n```\n\n```go\nconst ConfigDir = \"config\"\n```\n\n```go\nconst DomainSocketBaseName = \"wave.sock\"\n```\n\n```go\nconst NeedJwtConst = \"NEED-JWT\"\n```\n\n```go\nconst RemoteDomainSocketBaseName = \"wave-remote.sock\"\n```\n\n```go\nconst RemoteFullDomainSocketPath = \"~/.waveterm/wave-remote.sock\"\n```\n\n```go\nconst RemoteFullWshBinPath = \"~/.waveterm/bin/wsh\"\n```\n\n```go\nconst RemoteWaveHomeDirName = \".waveterm\"\n```\n\n```go\nconst RemoteWshBinDirName = \"bin\"\n```\n\n```go\nconst WaveDBDir = \"db\"\n```\n\n```go\nconst WaveLockFile = \"wave.lock\"\n```\n\n## Variables\n\n```go\nvar AppElectronExecPath_VarCache string // caches WAVETERM_ELECTRONEXECPATH\n\n```\n\n```go\nvar AppPath_VarCache string // caches WAVETERM_APP_PATH\n\n```\n\n```go\nvar AppResourcesPath_VarCache string // caches WAVETERM_RESOURCES_PATH\n\n```\n\n```go\nvar BuildTime = \"0\"\n```\n\n```go\nvar ConfigHome_VarCache string // caches WAVETERM_CONFIG_HOME\n\n```\n\n```go\nvar DataHome_VarCache string // caches WAVETERM_DATA_HOME\n\n```\n\n```go\nvar Dev_VarCache string // caches WAVETERM_DEV\n\n```\n\n```go\nvar SupportedWshBinaries = map[string]bool{\n\t\"darwin-x64\":    true,\n\t\"darwin-arm64\":  true,\n\t\"linux-x64\":     true,\n\t\"linux-arm64\":   true,\n\t\"windows-x64\":   true,\n\t\"windows-arm64\": true,\n}\n```\n\n```go\nvar WaveVersion = \"0.0.0\"\n```\nset by main-server.go\n\n## Functions\n\n```go\nfunc CacheAndRemoveEnvVars() error\n```\n\n```go\nfunc CacheEnsureDir(dirName string, cacheKey string, perm os.FileMode, dirDesc string) error\n```\n\n```go\nfunc ClientArch() string\n```\n\n```go\nfunc ClientMacOSVersion() string\n```\n\n```go\nfunc ClientPackageType() string\n```\n\n```go\nfunc DetermineLang() string\n```\n\n```go\nfunc DetermineLocale() string\n```\n\n```go\nfunc EnsureWaveCachesDir() error\n```\n\n```go\nfunc EnsureWaveConfigDir() error\n```\n\n```go\nfunc EnsureWaveDBDir() error\n```\n\n```go\nfunc EnsureWaveDataDir() error\n```\n\n```go\nfunc EnsureWavePresetsDir() error\n```\n\n```go\nfunc ExpandHomeDir(pathStr string) (string, error)\n```\n\n```go\nfunc ExpandHomeDirSafe(pathStr string) string\n```\n\n```go\nfunc GetDomainSocketName() string\n```\n\n```go\nfunc GetHomeDir() string\n```\n\n```go\nfunc GetPersistentRemoteSockName(clientId string) string\n```\nreturns a Unix-style path for the remote socket (using fmt.Sprintf instead of filepath.Join because this path is for a remote Unix system, not the local OS which might be Windows)\n\n```go\nfunc GetRemoteJobFilePath(jobId string, extension string) string\n```\njob file path on remote machine\n\n```go\nfunc GetRemoteJobLogDir() string\n```\njob file dir on remote machines\n\n```go\nfunc GetRemoteJobSocketPath(jobId string) string\n```\njob socket path on remote machine\n\n```go\nfunc GetSystemSummary() string\n```\n\n```go\nfunc GetWaveAppBinPath() string\n```\n\n```go\nfunc GetWaveAppElectronExecPath() string\n```\n\n```go\nfunc GetWaveAppPath() string\n```\n\n```go\nfunc GetWaveAppResourcesPath() string\n```\n\n```go\nfunc GetWaveCachesDir() string\n```\n\n```go\nfunc GetWaveConfigDir() string\n```\n\n```go\nfunc GetWaveDataDir() string\n```\n\n```go\nfunc IsDevMode() bool\n```\n\n```go\nfunc ReplaceHomeDir(pathStr string) string\n```\n\n```go\nfunc TryMkdirs(dirName string, perm os.FileMode, dirDesc string) error\n```\n\n```go\nfunc UnameKernelRelease() string\n```\n\n```go\nfunc ValidateWshSupportedArch(os string, arch string) error\n```\n\n## Types\n\n```go\ntype FDLock interface {\n\tClose() error\n}\n```\n\n```go\nfunc AcquireWaveLock() (FDLock, error)\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/wavebase","name":"wavebase","synopsis":"","isRedistributable":true}
