2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 13:47:15 +08:00
Files
panel/internal/biz/environment.go
2026-01-09 17:12:57 +08:00

19 lines
443 B
Go

package biz
import (
"github.com/acepanel/panel/pkg/api"
"github.com/acepanel/panel/pkg/types"
)
type EnvironmentRepo interface {
Types() []types.LV
All(typ ...string) api.Environments
IsInstalled(typ, slug string) bool
InstalledSlugs(typ string) []string
InstalledVersion(typ, slug string) string
HasUpdate(typ, slug string) bool
Install(typ, slug string) error
Uninstall(typ, slug string) error
Update(typ, slug string) error
}