Documentation ¶
Index ¶
- func CloseTransaction(session *xorm.Session, e *error)
- func Engine() *xorm.Engine
- func Init() (e error)
- func InitFilesystem() (e error)
- func NewSession() *xorm.Session
- func NewTransaction() (session *xorm.Session, e error)
- func PackageDir(pkg string) (path string)
- func Store() string
- func TempFile() (filename string, e error)
- func VersionFilename(pkg, v string) string
- type App
- func (App) DownloadInformation(pkg, version string) (description string, dev bool, size int64, hash string, e error)
- func (App) FindPackage(names []string) (arrs []data.Package, e error)
- func (App) FindPackageEx(names []string) (infos []*data.PackageInfo, e error)
- func (App) Search(names []string, dev bool) (apps []data.App, e error)
- func (App) Upgrade(pkg, version string, dev bool) (bean *data.Version, e error)
- type Package
- func (Package) Add(name, key, description string) (e error)
- func (Package) Delete(name, key string) (e error)
- func (Package) Get(name string) (bean *data.Package, e error)
- func (Package) Init(name, description string) (e error)
- func (Package) IsAllow(keys, pkg string) (yes bool, e error)
- func (Package) Remove(name string) (e error)
- func (Package) Search(name string) (bean []data.Package, e error)
- func (Package) Update(name, description string) (e error)
- type Version
- func (Version) CheckAvailable(pkg, v string) (e error)
- func (Version) List(pkg string) (beans []data.Version, e error)
- func (Version) Push(bean *data.Version, filename string) (e error)
- func (Version) Remove(pkg, version string) (e error)
- func (Version) Update(pkg, version, description string, dev bool) (e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransaction ¶
NewTransaction 創建 一個 事務
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 ¶
FindPackage 查找 套件
func (App) FindPackageEx ¶
func (App) FindPackageEx(names []string) (infos []*data.PackageInfo, e error)
FindPackageEx 查找 套件
type Package ¶
type Package struct { }
Package 套件包 管理
Click to show internal directories.
Click to hide internal directories.