Documentation ¶
Index ¶
- type ReleaseInfoRetriever
- type VersionManager
- func (m VersionManager) Detect() (string, error)
- func (m VersionManager) Install(requestedVersion string) error
- func (m VersionManager) InstallPath() string
- func (m VersionManager) ListLocal(reverseOrder bool) ([]string, error)
- func (m VersionManager) ListRemote(reverseOrder bool) ([]string, error)
- func (m VersionManager) LocalSet() map[string]struct{}
- func (m VersionManager) Reset() error
- func (m VersionManager) Resolve(defaultVersion string) string
- func (m VersionManager) RootVersionFilePath() string
- func (m VersionManager) Uninstall(requestedVersion string) error
- func (m VersionManager) Use(requestedVersion string, workingDir bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseInfoRetriever ¶
type VersionManager ¶
type VersionManager struct { FolderName string VersionEnvName string VersionFileName string // contains filtered or unexported fields }
func MakeVersionManager ¶
func MakeVersionManager(conf *config.Config, folderName string, retriever ReleaseInfoRetriever, versionEnvName string, versionFileName string) VersionManager
func (VersionManager) Detect ¶
func (m VersionManager) Detect() (string, error)
detect version (can install depending on auto install env var)
func (VersionManager) Install ¶
func (m VersionManager) Install(requestedVersion string) error
func (VersionManager) InstallPath ¶
func (m VersionManager) InstallPath() string
try to ensure the directory exists with a MkdirAll call. (made lazy method : not always useful and allows flag override for root path)
func (VersionManager) ListLocal ¶
func (m VersionManager) ListLocal(reverseOrder bool) ([]string, error)
func (VersionManager) ListRemote ¶
func (m VersionManager) ListRemote(reverseOrder bool) ([]string, error)
func (VersionManager) LocalSet ¶
func (m VersionManager) LocalSet() map[string]struct{}
func (VersionManager) Reset ¶
func (m VersionManager) Reset() error
func (VersionManager) Resolve ¶
func (m VersionManager) Resolve(defaultVersion string) string
(made lazy method : not always useful and allows flag override for root path)
func (VersionManager) RootVersionFilePath ¶
func (m VersionManager) RootVersionFilePath() string
(made lazy method : not always useful and allows flag override for root path)
func (VersionManager) Uninstall ¶
func (m VersionManager) Uninstall(requestedVersion string) error
Click to show internal directories.
Click to hide internal directories.