Documentation ¶
Index ¶
- Constants
- func GetSDKVersionDir(sdkName string) string
- func InstallExeForWindows(exePath, installDir string) (err error)
- func InstallMiniconda(exePath, installDir string) (err error)
- func InstallStandAloneExecutables(exePath, installDir string) (err error)
- func InstallVSCode(pkgFilePath, installDir string) (err error)
- func IsSDKInstalledByVMR(sdkName string) bool
- type AdditionalEnv
- type AdditionalEnvList
- type ArchiverInstaller
- func (a *ArchiverInstaller) FormatSDKName()
- func (a *ArchiverInstaller) GetInstallDir() string
- func (a *ArchiverInstaller) GetSymbolLinkPath() string
- func (a *ArchiverInstaller) Initiate(originSDKName, versionName string, version download.Item)
- func (a *ArchiverInstaller) Install()
- func (a *ArchiverInstaller) SetInstallConf(iconf download.InstallerConfig)
- type BinaryRename
- type CondaInstaller
- func (c *CondaInstaller) FormatSDKName()
- func (c *CondaInstaller) GetInstallDir() string
- func (c *CondaInstaller) GetSymbolLinkPath() string
- func (c *CondaInstaller) Initiate(originSDKName, versionName string, version download.Item)
- func (c *CondaInstaller) Install()
- func (c *CondaInstaller) SetInstallConf(iconf download.InstallerConfig)
- type CoursierInstaller
- func (c *CoursierInstaller) FormatSDKName()
- func (c *CoursierInstaller) GetInstallDir() string
- func (c *CoursierInstaller) GetSymbolLinkPath() string
- func (c *CoursierInstaller) Initiate(originSDKName, versionName string, version download.Item)
- func (c *CoursierInstaller) Install()
- func (c *CoursierInstaller) SetInstallConf(iconf download.InstallerConfig)
- type ExeInstaller
- func (ei *ExeInstaller) FormatSDKName()
- func (ei *ExeInstaller) GetInstallDir() string
- func (ei *ExeInstaller) GetSymbolLinkPath() string
- func (ei *ExeInstaller) Initiate(originSDKName, versionName string, version download.Item)
- func (ei *ExeInstaller) Install()
- func (ei *ExeInstaller) RenameFile()
- func (ei *ExeInstaller) SetInstallConf(iconf download.InstallerConfig)
- type FileItems
- type InstallerConfig
Constants ¶
View Source
const ( VerisonDirPattern string = "%s_versions" VersionInstallDirPattern string = "%s-%s" )
View Source
const ( MinicondaSDKName string = "miniconda" ErlangSDKName string = "erlang" ElixirSDKName string = "elixir" VSCodeSDKName string = "vscode" )
View Source
const (
CondaPathEnvName string = "VMR_CONDA_PATH"
)
View Source
const (
CoursierPathEnvName string = "VMR_COURSIER_PATH"
)
Variables ¶
This section is empty.
Functions ¶
func GetSDKVersionDir ¶
func InstallExeForWindows ¶
install *.exe for windows 1. erlang 2. elixir
func InstallMiniconda ¶
Install miniconda.
func InstallStandAloneExecutables ¶
Other standalone executables.
func IsSDKInstalledByVMR ¶ added in v0.6.2
Types ¶
type AdditionalEnv ¶
type AdditionalEnvList ¶
type AdditionalEnvList []AdditionalEnv
type ArchiverInstaller ¶
type ArchiverInstaller struct { OriginSDKName string SDKName string VersionName string Version download.Item // contains filtered or unexported fields }
Install use unarchiver.
func NewArchiverInstaller ¶
func NewArchiverInstaller() (a *ArchiverInstaller)
func (*ArchiverInstaller) FormatSDKName ¶
func (a *ArchiverInstaller) FormatSDKName()
func (*ArchiverInstaller) GetInstallDir ¶
func (a *ArchiverInstaller) GetInstallDir() string
func (*ArchiverInstaller) GetSymbolLinkPath ¶
func (a *ArchiverInstaller) GetSymbolLinkPath() string
func (*ArchiverInstaller) Initiate ¶
func (a *ArchiverInstaller) Initiate(originSDKName, versionName string, version download.Item)
func (*ArchiverInstaller) Install ¶
func (a *ArchiverInstaller) Install()
func (*ArchiverInstaller) SetInstallConf ¶
func (a *ArchiverInstaller) SetInstallConf(iconf download.InstallerConfig)
type BinaryRename ¶
type CondaInstaller ¶
type CondaInstaller struct { OriginSDKName string SDKName string VersionName string Version download.Item // contains filtered or unexported fields }
Install using conda.
func NewCondaInstaller ¶
func NewCondaInstaller() (c *CondaInstaller)
func (*CondaInstaller) FormatSDKName ¶
func (c *CondaInstaller) FormatSDKName()
func (*CondaInstaller) GetInstallDir ¶
func (c *CondaInstaller) GetInstallDir() string
func (*CondaInstaller) GetSymbolLinkPath ¶
func (c *CondaInstaller) GetSymbolLinkPath() string
func (*CondaInstaller) Initiate ¶
func (c *CondaInstaller) Initiate(originSDKName, versionName string, version download.Item)
func (*CondaInstaller) Install ¶
func (c *CondaInstaller) Install()
func (*CondaInstaller) SetInstallConf ¶
func (c *CondaInstaller) SetInstallConf(iconf download.InstallerConfig)
type CoursierInstaller ¶
type CoursierInstaller struct { OriginSDKName string SDKName string VersionName string Version download.Item // contains filtered or unexported fields }
Install use coursier.
func NewCoursierInstaller ¶
func NewCoursierInstaller() (c *CoursierInstaller)
func (*CoursierInstaller) FormatSDKName ¶
func (c *CoursierInstaller) FormatSDKName()
func (*CoursierInstaller) GetInstallDir ¶
func (c *CoursierInstaller) GetInstallDir() string
func (*CoursierInstaller) GetSymbolLinkPath ¶
func (c *CoursierInstaller) GetSymbolLinkPath() string
func (*CoursierInstaller) Initiate ¶
func (c *CoursierInstaller) Initiate(originSDKName, versionName string, version download.Item)
func (*CoursierInstaller) Install ¶
func (c *CoursierInstaller) Install()
func (*CoursierInstaller) SetInstallConf ¶
func (c *CoursierInstaller) SetInstallConf(iconf download.InstallerConfig)
type ExeInstaller ¶
type ExeInstaller struct { OriginSDKName string SDKName string VersionName string Version download.Item Fetcher *request.Fetcher // contains filtered or unexported fields }
1. *.exe 2. *.deb 3. *.rpm 4. *.sh (miniconda) 5. unix-like executable
func NewExeInstaller ¶
func NewExeInstaller() (ei *ExeInstaller)
func (*ExeInstaller) FormatSDKName ¶
func (ei *ExeInstaller) FormatSDKName()
func (*ExeInstaller) GetInstallDir ¶
func (ei *ExeInstaller) GetInstallDir() string
func (*ExeInstaller) GetSymbolLinkPath ¶
func (ei *ExeInstaller) GetSymbolLinkPath() string
func (*ExeInstaller) Initiate ¶
func (ei *ExeInstaller) Initiate(originSDKName, versionName string, version download.Item)
func (*ExeInstaller) Install ¶
func (ei *ExeInstaller) Install()
func (*ExeInstaller) RenameFile ¶
func (ei *ExeInstaller) RenameFile()
func (*ExeInstaller) SetInstallConf ¶
func (ei *ExeInstaller) SetInstallConf(iconf download.InstallerConfig)
type FileItems ¶
type FileItems struct { Windows []string `toml:"windows"` Linux []string `toml:"linux"` MacOS []string `toml:"darwin"` }
============================ Installation configs. ============================
type InstallerConfig ¶
type InstallerConfig struct { FlagFiles *FileItems `toml:"flag_files"` FlagDirExcepted bool `toml:"flag_dir_excepted"` BinaryDirs *FileItems `toml:"binary_dirs"` BinaryRename *BinaryRename `toml:"binary_rename"` AdditionalEnvs AdditionalEnvList `toml:"additional_envs"` }
Installation configs
Click to show internal directories.
Click to hide internal directories.