mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 17:17:13 +08:00
17 lines
363 B
Go
17 lines
363 B
Go
package internal
|
|
|
|
import (
|
|
"github.com/TheTNB/panel/app/models"
|
|
"github.com/TheTNB/panel/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
|
|
}
|