manipulator

package
v0.2.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppDir

func AppDir(pkg, v string) string

AppDir 返回 app 檔案夾

func AppRoot

func AppRoot(pkg string) string

AppRoot 返回 app 根命令

func DownloadFilename

func DownloadFilename(pkg, v string) string

DownloadFilename 返回 套件 下載 檔案名

func Exit

func Exit()

Exit 退出 程式 關閉 數據庫

func Init

func Init()

Init 初始化 數據庫信息

func InitFilesystem

func InitFilesystem() (pkgs []string, e error)

InitFilesystem 初始化檔案系統

func Store added in v0.0.5

func Store() string

Store 套件目錄

func UploadFilename

func UploadFilename(pkg, v string) string

UploadFilename 返回 套件 上傳 檔案名

Types

type App

type App struct {
}

App .

func (App) InstallError

func (App) InstallError(pkg string) (e error)

InstallError 安裝 套件 失敗 刪除

func (App) InstallSuccess

func (App) InstallSuccess(app *data.App) (e error)

InstallSuccess 安裝完成 解鎖 並 設置套件 信息

func (App) Installed

func (App) Installed() (m map[string]bool, e error)

Installed 返回 所有 安裝了的 套件名

func (App) InstalledVersion

func (App) InstalledVersion() (m map[string]string, e error)

InstalledVersion 返回 所有 安裝了的 套件名 和 版本

func (App) IsStopped

func (App) IsStopped(pkg string) (yes bool, e error)

IsStopped 返回 套件是否已經 結束

func (App) List

func (App) List() (app []data.App, e error)

List 返回 所有 已安裝的 套件

func (App) LockInstall

func (App) LockInstall(pkg string) (app *data.App, e error)

LockInstall 鎖定一個 安裝 套件

func (App) LockRemove

func (App) LockRemove(pkg string) (app *data.App, e error)

LockRemove 鎖定一個 移除 套件

func (App) LockRun

func (App) LockRun(pkg string) (status data.RunStatus, mode data.RunMode, version string, e error)

LockRun 鎖定一個 運行 套件 返回原狀態 版本

func (App) LockStop

func (App) LockStop(pkg string) (e error)

LockStop 鎖定一個 停止 套件

func (App) LockUpdate

func (App) LockUpdate(pkg string) (app *data.App, e error)

LockUpdate 鎖定一個 更新 套件

func (App) ModeRun

func (App) ModeRun(pkg string, mode data.RunMode) (e error)

ModeRun 設置 運行 模式

func (App) ModeUpdate

func (App) ModeUpdate(pkg string, mode data.UpdateMode) (e error)

ModeUpdate 設置 更新 模式

func (App) RemoveDamaged

func (m App) RemoveDamaged(app *data.App) (e error)

RemoveDamaged 刪除 套件失敗 並且 數據已經損毀 無法恢復

func (App) RemoveRestore

func (m App) RemoveRestore(app *data.App) (e error)

RemoveRestore 刪除 套件失敗 回滾到 安裝狀態

func (App) RemoveSuccess

func (App) RemoveSuccess(pkg string) (e error)

RemoveSuccess 刪除 套件成功 移除 安裝信息

func (App) RunError

func (App) RunError(pkg string, status data.RunStatus) (e error)

RunError 鎖定一個 運行 套件 失敗 重置原狀態

func (App) RunExit

func (App) RunExit(pkg string, status data.RunStatus) (e error)

RunExit app 退出 更新運行狀態

func (App) RunSuccess

func (App) RunSuccess(pkg string) (e error)

RunSuccess 鎖定一個 運行 套件

func (App) SetRestart

func (App) SetRestart(pkg string) (e error)

SetRestart 設置 套件 重啓

func (App) SetStop

func (App) SetStop(pkg string) (e error)

SetStop 設置 套件 處於 退出狀態

func (App) Show

func (App) Show(names []string) (app []data.App, e error)

Show 返回 安裝 套件 詳情

func (App) UnlockUpdate

func (m App) UnlockUpdate(pkg, version string, dev bool) (e error)

UnlockUpdate 解除 更新 鎖定

func (App) Update

func (App) Update(app *data.App) (e error)

Update 更新 套件 狀態

func (App) UpdateList

func (App) UpdateList() (apps []*data.App, e error)

UpdateList 返回 自動更新的 套件 列表

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL