Documentation
¶
Index ¶
- type ConfigInfoResult
- type ConfigService
- func (s ConfigService) AddPackage(repo, name string, opts install.Options) error
- func (s ConfigService) ConfigGet(key string) (string, error)
- func (s ConfigService) ConfigInfo() (ConfigInfoResult, error)
- func (s ConfigService) ConfigInit() (string, error)
- func (s ConfigService) ConfigList() (*cfgpkg.File, error)
- func (s ConfigService) ConfigSet(key, value string) error
- type InstallExtras
- type InstalledLoader
- type InstalledStore
- type Installer
- type ListItem
- type ListService
- type PackageAdder
- type ReleaseInfoFunc
- type RemovableInstalledStore
- type RunResult
- type Runner
- type Service
- type UninstallResult
- type UninstallService
- type UpdateResult
- type UpdateService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigInfoResult ¶
type ConfigService ¶
type ConfigService struct {
ConfigPath string
Load func() (*cfgpkg.File, error)
Save func(path string, file *cfgpkg.File) error
}
func (ConfigService) AddPackage ¶
func (s ConfigService) AddPackage(repo, name string, opts install.Options) error
func (ConfigService) ConfigInfo ¶
func (s ConfigService) ConfigInfo() (ConfigInfoResult, error)
func (ConfigService) ConfigInit ¶
func (s ConfigService) ConfigInit() (string, error)
func (ConfigService) ConfigList ¶
func (s ConfigService) ConfigList() (*cfgpkg.File, error)
func (ConfigService) ConfigSet ¶
func (s ConfigService) ConfigSet(key, value string) error
type InstallExtras ¶
type InstalledLoader ¶
type InstalledStore ¶
type ListService ¶
type ListService struct {
LoadConfig func() (*cfgpkg.File, error)
LoadInstalled func() (*storepkg.Config, error)
}
func (ListService) ListPackages ¶
func (s ListService) ListPackages() ([]ListItem, error)
type PackageAdder ¶
type RemovableInstalledStore ¶
type Service ¶
type Service struct {
Runner Runner
Store InstalledStore
Config PackageAdder
Now func() time.Time
ReleaseInfo ReleaseInfoFunc
LoadConfig func() (*cfgpkg.File, error)
}
func (Service) DownloadTarget ¶
func (Service) InstallTarget ¶
type UninstallResult ¶
type UninstallService ¶
type UninstallService struct {
Store RemovableInstalledStore
LoadConfig func() (*cfgpkg.File, error)
}
func (UninstallService) Uninstall ¶
func (s UninstallService) Uninstall(target string) (UninstallResult, error)
type UpdateResult ¶
type UpdateService ¶
func (UpdateService) UpdateAllPackages ¶
func (s UpdateService) UpdateAllPackages(cli install.Options) ([]UpdateResult, error)
func (UpdateService) UpdatePackage ¶
Click to show internal directories.
Click to hide internal directories.