installtool

package
v0.0.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoAPPName    = "go"
	GoEnvAPPName = "goenv"
)

Variables

This section is empty.

Functions

func AddInstaller added in v0.0.39

func AddInstaller(appName string, installer APPInstaller)

Types

type APPInstaller added in v0.0.39

type APPInstaller interface {
	Install(version string) error
	InstallForce(version string) error
	Uninstall(version string) error
	Exists(version string) bool
	NeedRoot() bool
}

type GoEnvInstaller added in v0.0.39

type GoEnvInstaller struct {
}

func NewGoEnvInstaller added in v0.0.39

func NewGoEnvInstaller() *GoEnvInstaller

func (*GoEnvInstaller) Exists added in v0.0.39

func (s *GoEnvInstaller) Exists(version string) bool

func (*GoEnvInstaller) Install added in v0.0.39

func (s *GoEnvInstaller) Install(version string) error

func (*GoEnvInstaller) InstallForce added in v0.0.39

func (s *GoEnvInstaller) InstallForce(version string) error

func (*GoEnvInstaller) NeedRoot added in v0.0.39

func (s *GoEnvInstaller) NeedRoot() bool

func (*GoEnvInstaller) Uninstall added in v0.0.39

func (s *GoEnvInstaller) Uninstall(version string) error

type GoInstaller added in v0.0.39

type GoInstaller struct {
}

func NewGoInstaller added in v0.0.39

func NewGoInstaller() *GoInstaller

func (*GoInstaller) Exists added in v0.0.39

func (s *GoInstaller) Exists(version string) bool

func (*GoInstaller) Install added in v0.0.39

func (s *GoInstaller) Install(version string) error

func (*GoInstaller) InstallForce added in v0.0.39

func (s *GoInstaller) InstallForce(version string) error

func (*GoInstaller) NeedRoot added in v0.0.39

func (s *GoInstaller) NeedRoot() bool

func (*GoInstaller) Uninstall added in v0.0.39

func (s *GoInstaller) Uninstall(version string) error

type InstallTool

type InstallTool struct {
}

func NewInstallTool

func NewInstallTool() *InstallTool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL