Documentation ¶
Overview ¶
Package core provides the core structs about the os-related package manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvanceInstaller ¶ added in v0.0.63
AdvanceInstaller is a generic installer
type FakeRegistry ¶ added in v0.0.72
type FakeRegistry struct {
// contains filtered or unexported fields
}
FakeRegistry is a fake registry which only for the test purpose
func (*FakeRegistry) Registry ¶ added in v0.0.72
func (r *FakeRegistry) Registry(id string, installer Installer)
Registry puts the registry to memory
func (*FakeRegistry) Walk ¶ added in v0.0.72
func (r *FakeRegistry) Walk(walkFunc func(string, Installer))
Walk allows to iterate all the installers
type Installer ¶
type Installer interface { Available() bool Install() error Uninstall() error WaitForStart() (bool, error) Start() error Stop() error }
Installer is the interface of a installer Deprecated use AdvanceInstaller instead
type InstallerRegistry ¶
InstallerRegistry is the interface of install registry
Click to show internal directories.
Click to hide internal directories.