Documentation ¶
Index ¶
- func CheckInstall() bool
- func CheckUpgrade(v int, print bool) bool
- func DoBackup(app *GoInk.App, withData bool) (string, error)
- func DoInstall()
- func DoUpdateZipBytes(file string) error
- func DoUpgrade(v int, app *GoInk.App)
- func ExtractBundleBytes()
- func GetBackupFileAbsPath(name string) string
- func GetBackupFiles() ([]os.FileInfo, error)
- func GetLogs(app *GoInk.App) []*logItem
- func GetThemes(dir string) map[string]*themeItem
- func Init(app *GoInk.App)
- func ReadMemStats() *monitorStats
- func RemoveBackupFile(file string)
- func RemoveLogFile(app *GoInk.App, file string)
- func SetThemeCache(ctx *GoInk.Context, cache bool)
- func SetUpgradeScript(v int, script func(app *GoInk.App) bool)
- func StartBackupTimer(app *GoInk.App, t int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInstall ¶
func CheckInstall() bool
func CheckUpgrade ¶ added in v0.1.5
func DoBackup ¶
DoBackup backups whole files to zip archive. If withData is false, it compresses static files to zip archive without data files, config files and install lock file.
func DoUpdateZipBytes ¶
func ExtractBundleBytes ¶ added in v0.1.5
func ExtractBundleBytes()
func GetBackupFileAbsPath ¶ added in v0.2.0
GetBackupFileAbsPath returns backup zip absolute filepath by filename.
func GetBackupFiles ¶
GetBackupFile returns fileinfo slice of all backup files.
func ReadMemStats ¶ added in v0.2.0
func ReadMemStats() *monitorStats
func RemoveBackupFile ¶
func RemoveBackupFile(file string)
RemoveBackupFile removes backup zip file with filename(not filepath).
func RemoveLogFile ¶ added in v0.2.0
func SetThemeCache ¶ added in v0.2.5
func SetUpgradeScript ¶ added in v0.1.5
func StartBackupTimer ¶ added in v0.2.5
StartBackupTimer starts backup operation timer for auto backup stuff.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.