Documentation
¶
Index ¶
- Variables
- func BuildPropsFromZip(filepath string) map[string]string
- func CheckErr(err error, msg string)
- func CreateFile(file File)
- func CreateRelease(release Release)
- func CreateUser(username string, password string) error
- func DeleteFile(file File)
- func DeleteRelease(release Release)
- func InitDb(dbPath string, builds string) *gorp.DbMap
- func Md5File(filepath string) string
- func PruneMissingFiles()
- func PublishFile(file File)
- func RefreshBuilds()
- func ReleasesIndexJSON() []map[string]string
- func ReleasesListJSON(device string, channels []string) []map[string]string
- func StringInSlice(a string, list []string) bool
- func UnpublishFile(file File)
- func UpdateFile(file File)
- func UpdateRelease(release Release)
- type File
- type LoginForm
- type Release
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildsPath string
Functions ¶
func BuildPropsFromZip ¶
func CreateFile ¶
func CreateFile(file File)
func CreateRelease ¶
func CreateRelease(release Release)
func CreateUser ¶
func DeleteFile ¶
func DeleteFile(file File)
func DeleteRelease ¶
func DeleteRelease(release Release)
func PruneMissingFiles ¶
func PruneMissingFiles()
func PublishFile ¶
func PublishFile(file File)
func RefreshBuilds ¶
func RefreshBuilds()
func ReleasesIndexJSON ¶
func StringInSlice ¶
func UnpublishFile ¶
func UnpublishFile(file File)
func UpdateFile ¶
func UpdateFile(file File)
func UpdateRelease ¶
func UpdateRelease(release Release)
Types ¶
type File ¶
type File struct {
Id int64 `db:"file_id"`
Created int64
Name string
Size int64
Md5 string
BuildDate string
ApiLevel string
Incremental string
Device string
User string
Published bool
}
func FilesIndex ¶
func FilesIndex() []File
func FindFileByIncremental ¶
func FindFileByName ¶
func (File) ChangelogUrl ¶
func (File) DownloadPath ¶
func (File) DownloadUrl ¶
type Release ¶
type Release struct {
Id int64 `db:"release_id"`
Created int64
FileId int64
FileName string
Changelog string
Channel string
}
func FindRelease ¶
func FindReleaseByFile ¶
func NewRelease ¶
func NewRelease() Release
func ReleasesIndex ¶
func ReleasesIndex() []Release
func (Release) ChannelNightly ¶
func (Release) ChannelSnapshot ¶
Click to show internal directories.
Click to hide internal directories.