Documentation ¶
Index ¶
- type AvailableVersion
- type GoVersion
- type Manager
- func (m *Manager) Available() ([]AvailableVersion, error)
- func (m *Manager) AvailableBinaries() ([]*GoVersion, error)
- func (m *Manager) AvailableSource() ([]*GoVersion, error)
- func (m *Manager) Build(version *GoVersion) (string, error)
- func (m *Manager) HasVersion(version *GoVersion) (bool, error)
- func (m *Manager) Init() error
- func (m *Manager) Install(version *GoVersion) (string, error)
- func (m *Manager) Installed() ([]*GoVersion, error)
- func (m *Manager) Remove(version *GoVersion) error
- func (m *Manager) UpdateCache() error
- func (m *Manager) VersionGoROOT(version *GoVersion) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailableVersion ¶ added in v0.3.1
type AvailableVersion struct { Version *GoVersion Source bool // Available to install from source. Binary bool // Available to download as a binary. }
func (AvailableVersion) String ¶ added in v0.3.1
func (av AvailableVersion) String() string
type GoVersion ¶
type GoVersion struct {
// contains filtered or unexported fields
}
func MustParseVersion ¶ added in v0.5.0
MustParseVersion parses the given Go version to return a GoVersion. Otherwise, it panics.
func ParseVersion ¶
func (*GoVersion) Prerelease ¶
func (*GoVersion) VendorSupport ¶
type Manager ¶
type Manager struct { // GVM Home directory. Defaults to $HOME/.gvm Home string // GOOS settings. Defaults to current OS. GOOS string // GOARCH setting. Defaults to the current architecture. GOARCH string // Golang binary store URL. Used to download listing and go binaries. // Defaults to https://storage.googleapis.com/golang GoStorageHome string // GoSourceURL configres the update git repository to download and update local // source checkouts from. // Defaults to https://go.googlesource.com/go GoSourceURL string HTTPTimeout time.Duration Logger logrus.FieldLogger // contains filtered or unexported fields }
func (*Manager) Available ¶
func (m *Manager) Available() ([]AvailableVersion, error)
func (*Manager) AvailableBinaries ¶
func (*Manager) AvailableSource ¶
func (*Manager) HasVersion ¶
HasVersion checks if a given go version is installed
func (*Manager) UpdateCache ¶
func (*Manager) VersionGoROOT ¶
VersionGoROOT returns the GOROOT path for a go version. VersionGoROOT does not check if the version is installed.
Click to show internal directories.
Click to hide internal directories.