2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 20:57:19 +08:00
Files
panel/internal/plugin.go
2024-07-29 03:25:53 +08:00

17 lines
371 B
Go

package internal
import (
"github.com/TheTNB/panel/v2/app/models"
"github.com/TheTNB/panel/v2/pkg/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
}