manipulator

package
v0.1.23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseTransaction

func CloseTransaction(session *xorm.Session, e *error)

CloseTransaction .

func Engine

func Engine() *xorm.Engine

Engine 返回 數據庫 引擎

func Init

func Init() (e error)

Init 初始化 數據庫

func InitFilesystem

func InitFilesystem() (e error)

InitFilesystem 初始化 檔案系統

func NewSession

func NewSession() *xorm.Session

NewSession 返回 數據庫 session

func NewTransaction

func NewTransaction() (session *xorm.Session, e error)

NewTransaction 創建 一個 事務

func PackageDir

func PackageDir(pkg string) (path string)

PackageDir 返回 套件 數據 檔案夾

func Store

func Store() string

Store 套件包 根目錄

func TempFile

func TempFile() (filename string, e error)

TempFile 返回一個臨時檔案

func VersionFilename

func VersionFilename(pkg, v string) string

VersionFilename 返回 版本 數據檔案名

Types

type App

type App struct {
}

App .

func (App) DownloadInformation

func (App) DownloadInformation(pkg, version string) (description string, dev bool, size int64, hash string, e error)

DownloadInformation 返回 app 下載 信息

func (App) FindPackage

func (App) FindPackage(names []string) (arrs []data.Package, e error)

FindPackage 查找 套件

func (App) FindPackageEx

func (App) FindPackageEx(names []string) (infos []*data.PackageInfo, e error)

FindPackageEx 查找 套件

func (App) Search

func (App) Search(names []string, dev bool) (apps []data.App, e error)

Search 查找 application

func (App) Upgrade

func (App) Upgrade(pkg, version string, dev bool) (bean *data.Version, e error)

Upgrade 查找 可升級 版本

type Package

type Package struct {
}

Package 套件包 管理

func (Package) Add

func (Package) Add(name, key, description string) (e error)

Add 增加 套件包 下載 key

func (Package) Delete

func (Package) Delete(name, key string) (e error)

Delete 刪除 套件包 下載 key

func (Package) Get

func (Package) Get(name string) (bean *data.Package, e error)

Get 返回 套件包 信息

func (Package) Init

func (Package) Init(name, description string) (e error)

Init 創建一個 套件包

func (Package) IsAllow

func (Package) IsAllow(keys, pkg string) (yes bool, e error)

IsAllow 返回是否 允許 下載

func (Package) Remove

func (Package) Remove(name string) (e error)

Remove 刪除 套件包

func (Package) Search

func (Package) Search(name string) (bean []data.Package, e error)

Search 查找 套件包

func (Package) Update

func (Package) Update(name, description string) (e error)

Update 更新 套件包 信息

type Version

type Version struct {
}

Version 套件的 發行版本 管理

func (Version) CheckAvailable

func (Version) CheckAvailable(pkg, v string) (e error)

CheckAvailable 驗證 套件 版本 是否可用

func (Version) List

func (Version) List(pkg string) (beans []data.Version, e error)

List 返回指定 套件的 所有 版本信息

func (Version) Push

func (Version) Push(bean *data.Version, filename string) (e error)

Push 提交 新 版本

func (Version) Remove

func (Version) Remove(pkg, version string) (e error)

Remove 刪除 套件 版本

func (Version) Update

func (Version) Update(pkg, version, description string, dev bool) (e error)

Update 更新 版本 描述信息

Jump to

Keyboard shortcuts

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