Documentation ¶
Index ¶
- func AppDir(pkg, v string) string
- func AppRoot(pkg string) string
- func DownloadFilename(pkg, v string) string
- func Exit()
- func Init()
- func InitFilesystem() (pkgs []string, e error)
- func Store() string
- func UploadFilename(pkg, v string) string
- type App
- func (App) InstallError(pkg string) (e error)
- func (App) InstallSuccess(app *data.App) (e error)
- func (App) Installed() (m map[string]bool, e error)
- func (App) InstalledVersion() (m map[string]string, e error)
- func (App) IsStopped(pkg string) (yes bool, e error)
- func (App) List() (app []data.App, e error)
- func (App) LockInstall(pkg string) (app *data.App, e error)
- func (App) LockRemove(pkg string) (app *data.App, e error)
- func (App) LockRun(pkg string) (status data.RunStatus, mode data.RunMode, version string, e error)
- func (App) LockStop(pkg string) (e error)
- func (App) LockUpdate(pkg string) (app *data.App, e error)
- func (App) ModeRun(pkg string, mode data.RunMode) (e error)
- func (App) ModeUpdate(pkg string, mode data.UpdateMode) (e error)
- func (m App) RemoveDamaged(app *data.App) (e error)
- func (m App) RemoveRestore(app *data.App) (e error)
- func (App) RemoveSuccess(pkg string) (e error)
- func (App) RunError(pkg string, status data.RunStatus) (e error)
- func (App) RunExit(pkg string, status data.RunStatus) (e error)
- func (App) RunSuccess(pkg string) (e error)
- func (App) SetRestart(pkg string) (e error)
- func (App) SetStop(pkg string) (e error)
- func (App) Show(names []string) (app []data.App, e error)
- func (m App) UnlockUpdate(pkg, version string, dev bool) (e error)
- func (App) Update(app *data.App) (e error)
- func (App) UpdateList() (apps []*data.App, e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { }
App .
func (App) InstallSuccess ¶
InstallSuccess 安裝完成 解鎖 並 設置套件 信息
func (App) InstalledVersion ¶
InstalledVersion 返回 所有 安裝了的 套件名 和 版本
func (App) LockInstall ¶
LockInstall 鎖定一個 安裝 套件
func (App) LockRemove ¶
LockRemove 鎖定一個 移除 套件
func (App) LockUpdate ¶
LockUpdate 鎖定一個 更新 套件
func (App) ModeUpdate ¶
func (App) ModeUpdate(pkg string, mode data.UpdateMode) (e error)
ModeUpdate 設置 更新 模式
func (App) RemoveDamaged ¶
RemoveDamaged 刪除 套件失敗 並且 數據已經損毀 無法恢復
func (App) RemoveRestore ¶
RemoveRestore 刪除 套件失敗 回滾到 安裝狀態
func (App) RemoveSuccess ¶
RemoveSuccess 刪除 套件成功 移除 安裝信息
func (App) UnlockUpdate ¶
UnlockUpdate 解除 更新 鎖定
Click to show internal directories.
Click to hide internal directories.