2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 02:07:18 +08:00
Files
panel/internal/plugin.go
2024-05-30 01:58:17 +08:00

17 lines
359 B
Go

package internal
import (
"github.com/TheTNB/panel/app/models"
"github.com/TheTNB/panel/types"
)
type Plugin interface {
AllInstalled() ([]models.Plugin, error)
All() []types.Plugin
GetBySlug(slug string) types.Plugin
GetInstalledBySlug(slug string) models.Plugin
Install(slug string) error
Uninstall(slug string) error
Update(slug string) error
}