Documentation ¶
Index ¶
- Variables
- func CreatePkg(pkg model.Package) (err error)
- func CreateSelfBuild(selfBuild model.SelfBuild) (err error)
- func FindPkgByImportPath(importPath string) (pkg model.Package, err error)
- func FindPkgByPkgPath(pkgPath string) (pkg model.Package, err error)
- func FindPkgByPkgPathOrImportPath(pkgPath string, importPath string) (pkg model.Package, err error)
- func FindSelfBuildByPkgPath(pkgPath string) (selfBuild model.SelfBuild, err error)
- func Init(filepath string)
- func InitGormDB(dsn string) (err error)
- func IsPrebuilt() (prebuilt bool, err error)
- func ListPackages() (packages []model.Package, err error)
- func ListSelfBuild() (selfBuildList []model.SelfBuild, err error)
- func Migrate() (err error)
- func MigrateTables(models ...interface{}) (err error)
- func MustPkgNotExists(pkgPath string)
- func PkgExists(pkgPath string) (exists bool, pkg model.Package, err error)
- func Prebuilt() (err error)
- func SelfBuildExists(pkgPath string) (exists bool, selfBuild model.SelfBuild, err error)
- func UpdatePkg(pkg model.Package) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
View Source
var Dsn string
View Source
var Inited bool
Functions ¶
func CreateSelfBuild ¶
func FindPkgByImportPath ¶ added in v0.0.28
func FindPkgByPkgPathOrImportPath ¶ added in v0.0.28
func FindSelfBuildByPkgPath ¶
func InitGormDB ¶
func IsPrebuilt ¶
func ListPackages ¶
func ListSelfBuild ¶
func MigrateTables ¶
func MigrateTables(models ...interface{}) (err error)
func MustPkgNotExists ¶
func MustPkgNotExists(pkgPath string)
func SelfBuildExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.