Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAppInstaller ¶
IAppInstaller should be able install and uninstall software
type IRegistry ¶
type IRegistry interface {
Register(installer IAppInstaller)
FindInstaller(osInfo system.OsInfo) IAppInstaller
}
IRegistry is an interface of registry
type OperationType ¶
type OperationType int
OperationType is an alias for operation types
const ( // NotSpecified means that it hasn't been set NotSpecified OperationType = iota // Install for installation Install // Uninstall for deinstallation Uninstall )
type Registry ¶
type Registry struct {
IRegistry
// contains filtered or unexported fields
}
Registry contains all installers
func (*Registry) FindInstaller ¶
func (registry *Registry) FindInstaller(osInfo system.OsInfo) IAppInstaller
FindInstaller looks up for an appropriate installer
func (*Registry) Register ¶
func (registry *Registry) Register(installer IAppInstaller)
Register an installer in the installers repository
Click to show internal directories.
Click to hide internal directories.