Documentation ¶
Index ¶
- Constants
- func DecorateUrl(dUrl string) string
- func GetAppBinDir() string
- func GetConfPath() string
- func GetFetcher() *request.Fetcher
- func GetManagerDir() string
- func GetVMTempDir() string
- func GetVMVersionsDir(appName string) string
- func GetVersionManagerWorkDir() string
- func GetZipFileDir(appName string) string
- func SaveConfigFile(c *Config)
- func UseMirrorSiteInChina() bool
- type Config
Constants ¶
View Source
const ( VMProxyEnvName string = "VM_PROXY_URI" VMReverseProxyEnvName string = "VM_REVERSE_PROXY_URL" VMWorkDirEnvName string = "VM_APP_INSTALL_DIR" VMDownloadThreadsEnvName string = "VM_DOWNLOAD_THREADS" VMUseMirrorInChinaEnvName string = "VM_USE_MIRROR_IN_CHINA" VMOnlyInCurrentSessionEnvName string = "VM_ONLY_IN_CURRENT_SESSION" // uses a version only in current session. VMDiableEnvName string = "VM_DISABLE" VMLockedVersionEnvName string = "VM_LOCKED_VERSIONS" )
ENVs 1. Proxies for Version Manager. 2. App installation directories. 3. Multi-thread downloading.
Examples: export VM_PROXY_URI="http://127.0.0.1:2023" export VM_REVERSE_PROXY_URL="https://gvc.1710717.xyz/proxy/" export VM_APP_INSTALL_DIR="~/.vm/"
Variables ¶
This section is empty.
Functions ¶
func GetConfPath ¶
func GetConfPath() string
func GetManagerDir ¶
func GetManagerDir() string
func SaveConfigFile ¶
func SaveConfigFile(c *Config)
Types ¶
Click to show internal directories.
Click to hide internal directories.