mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 20:57:19 +08:00
18 lines
406 B
Go
18 lines
406 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
|
|
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
|
|
}
|