Documentation ¶
Index ¶
- Constants
- type ImpSoftwareSetService
- func (inst *ImpSoftwareSetService) GetOne(ctx context.Context, id dxo.SoftwarePackageID) (*dto.SoftwareSet, error)
- func (inst *ImpSoftwareSetService) Install(ctx context.Context, ss *dto.SoftwareSet) error
- func (inst *ImpSoftwareSetService) ListAll(ctx context.Context) ([]*dto.SoftwareSet, error)
- func (inst *ImpSoftwareSetService) ReInstall(ctx context.Context, ss *dto.SoftwareSet) error
- func (inst *ImpSoftwareSetService) Uninstall(ctx context.Context, ss *dto.SoftwareSet) error
- func (inst *ImpSoftwareSetService) Upgrade(ctx context.Context, ss *dto.SoftwareSet) error
- type PluginDaoImpl
- func (inst *PluginDaoImpl) Find(id dxo.SoftwarePackageID) (*entity.SoftwarePackage, error)
- func (inst *PluginDaoImpl) Insert(o *entity.SoftwarePackage) (*entity.SoftwarePackage, error)
- func (inst *PluginDaoImpl) ListAll() ([]*entity.SoftwarePackage, error)
- func (inst *PluginDaoImpl) ListByModuleName(mod string) ([]*entity.SoftwarePackage, error)
- func (inst *PluginDaoImpl) Remove(id dxo.SoftwarePackageID) error
- func (inst *PluginDaoImpl) Update(id dxo.SoftwarePackageID, o1 *entity.SoftwarePackage) (*entity.SoftwarePackage, error)
- type PluginServiceImpl
- func (inst *PluginServiceImpl) Find(ctx context.Context, id dxo.SoftwarePackageID) (*dto.SoftwarePackage, error)
- func (inst *PluginServiceImpl) GetInstaller(ic *packs.InstallingContext) (packs.Installer, error)
- func (inst *PluginServiceImpl) GetPacksManger() packs.Manager
- func (inst *PluginServiceImpl) Insert(ctx context.Context, o1 *dto.SoftwarePackage) (*dto.SoftwarePackage, error)
- func (inst *PluginServiceImpl) Install(ctx context.Context, id dxo.SoftwarePackageID) error
- func (inst *PluginServiceImpl) ListAll(ctx context.Context) ([]*dto.SoftwarePackage, error)
- func (inst *PluginServiceImpl) ListByModuleName(ctx context.Context, moduleName string) ([]*dto.SoftwarePackage, error)
- func (inst *PluginServiceImpl) Remove(ctx context.Context, id dxo.SoftwarePackageID) error
- func (inst *PluginServiceImpl) Uninstall(ctx context.Context, id dxo.SoftwarePackageID) error
- func (inst *PluginServiceImpl) UpdateItem(ctx context.Context, id dxo.SoftwarePackageID, o1 *dto.SoftwarePackage) (*dto.SoftwarePackage, error)
- func (inst *PluginServiceImpl) UpdateList(ctx context.Context) error
- type SoftInstalledFileDAO
- func (inst *SoftInstalledFileDAO) Find(id dxo.InstalledFileID) (*entity.InstalledFile, error)
- func (inst *SoftInstalledFileDAO) Insert(o *entity.InstalledFile) (*entity.InstalledFile, error)
- func (inst *SoftInstalledFileDAO) ListAll() ([]*entity.InstalledFile, error)
- func (inst *SoftInstalledFileDAO) Remove(id dxo.InstalledFileID) error
- func (inst *SoftInstalledFileDAO) Update(id dxo.InstalledFileID, o1 *entity.InstalledFile) (*entity.InstalledFile, error)
- type SoftwarePackageController
- type SoftwareSetController
- type WPMPluginInstaller
- func (inst *WPMPluginInstaller) Accept(ic *packs.InstallingContext) bool
- func (inst *WPMPluginInstaller) GetInstallerRegistration() *packs.InstallerRegistration
- func (inst *WPMPluginInstaller) GetLifeRegistration() *application.LifeRegistration
- func (inst *WPMPluginInstaller) Install(ic *packs.InstallingContext) error
- func (inst *WPMPluginInstaller) Uninstall(ic *packs.InstallingContext) error
Constants ¶
const ( PackTypeZip = "application/x-wpm-plug-in-zip" PackTypeTarGz = "application/x-wpm-plug-in-tar-gz" PackTypeOlder = "application/x-wpm-plug-in-package" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImpSoftwareSetService ¶
type ImpSoftwareSetService struct { markup.Component `id:"SoftwareSetService"` SoftwarePackageService service.SoftwarePackageService `inject:"#SoftwarePackageService"` }
ImpSoftwareSetService ...
func (*ImpSoftwareSetService) GetOne ¶ added in v0.1.2
func (inst *ImpSoftwareSetService) GetOne(ctx context.Context, id dxo.SoftwarePackageID) (*dto.SoftwareSet, error)
GetOne ...
func (*ImpSoftwareSetService) Install ¶
func (inst *ImpSoftwareSetService) Install(ctx context.Context, ss *dto.SoftwareSet) error
Install ... 安装指定的软件集合
func (*ImpSoftwareSetService) ListAll ¶
func (inst *ImpSoftwareSetService) ListAll(ctx context.Context) ([]*dto.SoftwareSet, error)
ListAll ...
func (*ImpSoftwareSetService) ReInstall ¶
func (inst *ImpSoftwareSetService) ReInstall(ctx context.Context, ss *dto.SoftwareSet) error
ReInstall ... 重新安装指定的软件集合
func (*ImpSoftwareSetService) Uninstall ¶
func (inst *ImpSoftwareSetService) Uninstall(ctx context.Context, ss *dto.SoftwareSet) error
Uninstall ... 卸载指定的软件集合
func (*ImpSoftwareSetService) Upgrade ¶
func (inst *ImpSoftwareSetService) Upgrade(ctx context.Context, ss *dto.SoftwareSet) error
Upgrade ... 升级指定的软件集合
type PluginDaoImpl ¶
type PluginDaoImpl struct { markup.Component `id:"SoftwarePackageDAO"` Agent dbagent.GormDBAgent `inject:"#GormDBAgent"` TrashService service.TrashService `inject:"#TrashService"` UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"` }
PluginDaoImpl ...
func (*PluginDaoImpl) Find ¶
func (inst *PluginDaoImpl) Find(id dxo.SoftwarePackageID) (*entity.SoftwarePackage, error)
Find ...
func (*PluginDaoImpl) Insert ¶
func (inst *PluginDaoImpl) Insert(o *entity.SoftwarePackage) (*entity.SoftwarePackage, error)
Insert ...
func (*PluginDaoImpl) ListAll ¶
func (inst *PluginDaoImpl) ListAll() ([]*entity.SoftwarePackage, error)
ListAll ...
func (*PluginDaoImpl) ListByModuleName ¶ added in v0.1.2
func (inst *PluginDaoImpl) ListByModuleName(mod string) ([]*entity.SoftwarePackage, error)
ListByModuleName ...
func (*PluginDaoImpl) Remove ¶
func (inst *PluginDaoImpl) Remove(id dxo.SoftwarePackageID) error
Remove ...
func (*PluginDaoImpl) Update ¶
func (inst *PluginDaoImpl) Update(id dxo.SoftwarePackageID, o1 *entity.SoftwarePackage) (*entity.SoftwarePackage, error)
Update ...
type PluginServiceImpl ¶
type PluginServiceImpl struct { markup.Component `id:"SoftwarePackageService"` SoftwarePackageDAO dao.SoftwarePackageDAO `inject:"#SoftwarePackageDAO"` GormDBAgent dbagent.GormDBAgent `inject:"#GormDBAgent"` NamespaceService service.NamespaceService `inject:"#NamespaceService"` HTTPClient service.HTTPClientService `inject:"#HTTPClientService"` HTTPClientEx service.HTTPClientExService `inject:"#HTTPClientExService"` TrashService service.TrashService `inject:"#TrashService"` IntentTemplateSer service.IntentTemplateService `inject:"#IntentTemplateService"` ExecutableSer service.ExecutableService `inject:"#ExecutableService"` ContentTypeSer service.ContentTypeService `inject:"#ContentTypeService"` MediaSer service.MediaService `inject:"#MediaService"` AppDataService service.AppDataService `inject:"#AppDataService"` FileSystemService service.FileSystemService `inject:"#FileSystemService"` InstallerRegistryList []packs.InstallerRegistry `inject:".packs.InstallerRegistry"` // contains filtered or unexported fields }
PluginServiceImpl ...
func (*PluginServiceImpl) Find ¶
func (inst *PluginServiceImpl) Find(ctx context.Context, id dxo.SoftwarePackageID) (*dto.SoftwarePackage, error)
Find ...
func (*PluginServiceImpl) GetInstaller ¶ added in v0.1.8
func (inst *PluginServiceImpl) GetInstaller(ic *packs.InstallingContext) (packs.Installer, error)
GetInstaller ...
func (*PluginServiceImpl) GetPacksManger ¶ added in v0.1.8
func (inst *PluginServiceImpl) GetPacksManger() packs.Manager
GetPacksManger ...
func (*PluginServiceImpl) Insert ¶
func (inst *PluginServiceImpl) Insert(ctx context.Context, o1 *dto.SoftwarePackage) (*dto.SoftwarePackage, error)
Insert ...
func (*PluginServiceImpl) Install ¶ added in v0.1.2
func (inst *PluginServiceImpl) Install(ctx context.Context, id dxo.SoftwarePackageID) error
Install ...
func (*PluginServiceImpl) ListAll ¶
func (inst *PluginServiceImpl) ListAll(ctx context.Context) ([]*dto.SoftwarePackage, error)
ListAll ...
func (*PluginServiceImpl) ListByModuleName ¶ added in v0.1.2
func (inst *PluginServiceImpl) ListByModuleName(ctx context.Context, moduleName string) ([]*dto.SoftwarePackage, error)
ListByModuleName ...
func (*PluginServiceImpl) Remove ¶
func (inst *PluginServiceImpl) Remove(ctx context.Context, id dxo.SoftwarePackageID) error
Remove ...
func (*PluginServiceImpl) Uninstall ¶ added in v0.1.2
func (inst *PluginServiceImpl) Uninstall(ctx context.Context, id dxo.SoftwarePackageID) error
Uninstall ...
func (*PluginServiceImpl) UpdateItem ¶
func (inst *PluginServiceImpl) UpdateItem(ctx context.Context, id dxo.SoftwarePackageID, o1 *dto.SoftwarePackage) (*dto.SoftwarePackage, error)
UpdateItem ...
func (*PluginServiceImpl) UpdateList ¶
func (inst *PluginServiceImpl) UpdateList(ctx context.Context) error
UpdateList ...
type SoftInstalledFileDAO ¶ added in v0.1.8
type SoftInstalledFileDAO struct { markup.Component `id:"InstalledFileDAO"` Agent dbagent.GormDBAgent `inject:"#GormDBAgent"` TrashService service.TrashService `inject:"#TrashService"` UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"` }
SoftInstalledFileDAO ...
func (*SoftInstalledFileDAO) Find ¶ added in v0.1.8
func (inst *SoftInstalledFileDAO) Find(id dxo.InstalledFileID) (*entity.InstalledFile, error)
Find ...
func (*SoftInstalledFileDAO) Insert ¶ added in v0.1.8
func (inst *SoftInstalledFileDAO) Insert(o *entity.InstalledFile) (*entity.InstalledFile, error)
Insert ...
func (*SoftInstalledFileDAO) ListAll ¶ added in v0.1.8
func (inst *SoftInstalledFileDAO) ListAll() ([]*entity.InstalledFile, error)
ListAll ...
func (*SoftInstalledFileDAO) Remove ¶ added in v0.1.8
func (inst *SoftInstalledFileDAO) Remove(id dxo.InstalledFileID) error
Remove ...
func (*SoftInstalledFileDAO) Update ¶ added in v0.1.8
func (inst *SoftInstalledFileDAO) Update(id dxo.InstalledFileID, o1 *entity.InstalledFile) (*entity.InstalledFile, error)
Update ...
type SoftwarePackageController ¶
type SoftwarePackageController struct { markup.RestController `class:"rest-controller"` SoftwarePackageService service.SoftwarePackageService `inject:"#SoftwarePackageService"` Responder glass.MainResponder `inject:"#glass-main-responder"` }
SoftwarePackageController 软件包控制器
func (*SoftwarePackageController) Init ¶
func (inst *SoftwarePackageController) Init(ec glass.EngineConnection) error
Init 初始化
type SoftwareSetController ¶
type SoftwareSetController struct { markup.RestController `class:"rest-controller"` SoftwareSetService service.SoftwareSetService `inject:"#SoftwareSetService"` Responder glass.MainResponder `inject:"#glass-main-responder"` }
SoftwareSetController 软件包控制器
func (*SoftwareSetController) Init ¶
func (inst *SoftwareSetController) Init(ec glass.EngineConnection) error
Init 初始化
type WPMPluginInstaller ¶ added in v0.1.8
type WPMPluginInstaller struct { markup.Component `class:"life packs.InstallerRegistry"` HTTPClientExService service.HTTPClientExService `inject:"#HTTPClientExService"` FileSystemService service.FileSystemService `inject:"#FileSystemService"` MediaService service.MediaService `inject:"#MediaService"` ExecutableService service.ExecutableService `inject:"#ExecutableService"` IntentTemplateService service.IntentTemplateService `inject:"#IntentTemplateService"` ContentTypeService service.ContentTypeService `inject:"#ContentTypeService"` InstalledFileDAO dao.InstalledFileDAO `inject:"#InstalledFileDAO"` }
WPMPluginInstaller ...
func (*WPMPluginInstaller) Accept ¶ added in v0.1.8
func (inst *WPMPluginInstaller) Accept(ic *packs.InstallingContext) bool
Accept 判断是否支持传入的 IC
func (*WPMPluginInstaller) GetInstallerRegistration ¶ added in v0.1.8
func (inst *WPMPluginInstaller) GetInstallerRegistration() *packs.InstallerRegistration
GetInstallerRegistration ...
func (*WPMPluginInstaller) GetLifeRegistration ¶ added in v0.1.8
func (inst *WPMPluginInstaller) GetLifeRegistration() *application.LifeRegistration
GetLifeRegistration ...
func (*WPMPluginInstaller) Install ¶ added in v0.1.8
func (inst *WPMPluginInstaller) Install(ic *packs.InstallingContext) error
Install 安装插件包
func (*WPMPluginInstaller) Uninstall ¶ added in v0.1.8
func (inst *WPMPluginInstaller) Uninstall(ic *packs.InstallingContext) error
Uninstall 卸载插件包