plugins

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
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

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

Find ...

func (*PluginDaoImpl) Insert

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

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

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

Insert ...

func (*PluginServiceImpl) Install added in v0.1.2

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

Remove ...

func (*PluginServiceImpl) Uninstall added in v0.1.2

func (inst *PluginServiceImpl) Uninstall(ctx context.Context, id dxo.SoftwarePackageID) error

Uninstall ...

func (*PluginServiceImpl) UpdateItem

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

Find ...

func (*SoftInstalledFileDAO) Insert added in v0.1.8

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

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

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

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 卸载插件包

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL