Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler func(err error)
type FinishHandler ¶
type FinishHandler func(source InstallSource)
type InstallSource ¶
type InstallSource struct {
Version string
}
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
func NewInstaller(settings InstallerSettings) *Installer
type InstallerSettings ¶
type InstallerSettings struct {
AppName string
Localizer *localize.Localizer
OnError ErrorHandler
OnProgressLabel ProgressLabelHandler
OnProgress ProgressHandler
OnFinish FinishHandler
OnSource SourceHandler
}
type Multiverse ¶
type Multiverse interface {
// true if the basedir had a marker
// the rest of the fields won't make sense
IsValid() bool
GetValidAppDir() (string, bool)
GetAppDir(version string) string
ListAppDirs() []string
}
func NewMultiverse ¶
func NewMultiverse(params *MultiverseParams) (Multiverse, error)
type MultiverseParams ¶
type ProgressHandler ¶
type ProgressHandler func(progress float64)
type ProgressLabelHandler ¶
type ProgressLabelHandler func(label string)
type SourceHandler ¶
type SourceHandler func(source InstallSource)
Click to show internal directories.
Click to hide internal directories.