Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInstallerNotApplicable = fmt.Errorf("installer is not available")
View Source
var ErrSkip = fmt.Errorf("skip")
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
// Key returns the key of the installer
//
// The key is used to identify the installer, and it's also
// the key of the options in the extension registry.
Key() string
// GetInstaller returns the installer if it's available
//
// If the installer is not available, it will return (nil, some error)
// (the returned error is only for inform purpose, it's safe to ignore)
GetInstaller(o eroptions.AnyOptions) (Installer, error)
}
type InstallOptions ¶
type Installer ¶
type Installer interface {
// Install will install the app to the given destination
//
// If the installer is not application, it will return ErrSkip
Install(o *InstallOptions) error
}
Click to show internal directories.
Click to hide internal directories.