Versions in this module Expand all Collapse all v0 v0.2.1 Oct 7, 2014 Changes in this version + func Close() + func FailUnfinishedBuilds() error + func FailUnfinishedCommits() error + func GetCommitBranchHash(branch string, hash string, repo int64) (*Commit, error) + func Init(name, datasource string) error + func IsRepoAdmin(user *User, repo *Repo) (bool, error) v0.2.0 Mar 12, 2014 Changes in this version + func DeleteBuild(id int64) error + func DeleteCommit(id int64) error + func DeleteMember(user, team int64) error + func DeleteRepo(id int64) error + func DeleteTeam(id int64) error + func DeleteUser(id int64) error + func GetBranch(repo int64, branch string) (*Commit, error) + func GetBuild(id int64) (*Build, error) + func GetBuildSlug(slug string, commit int64) (*Build, error) + func GetCommit(id int64) (*Commit, error) + func GetCommitHash(hash string, repo int64) (*Commit, error) + func GetMember(user, team int64) (*Member, error) + func GetPassEmail(email string) ([]byte, error) + func GetRepo(id int64) (*Repo, error) + func GetRepoSlug(slug string) (*Repo, error) + func GetSettings() (*Settings, error) + func GetTeam(id int64) (*Team, error) + func GetTeamSlug(slug string) (*Team, error) + func GetUser(id int64) (*User, error) + func GetUserEmail(email string) (*User, error) + func IsMember(user, team int64) (bool, error) + func IsMemberAdmin(user, team int64) (bool, error) + func ListBranches(repo int64) ([]*Commit, error) + func ListBuilds(id int64) ([]*Build, error) + func ListCommits(repo int64, branch string) ([]*Commit, error) + func ListCommitsTeam(team int64) ([]*RepoCommit, error) + func ListCommitsUser(user int64) ([]*RepoCommit, error) + func ListMembers(team int64) ([]*Member, error) + func ListRepos(id int64) ([]*Repo, error) + func ListReposTeam(id int64) ([]*Repo, error) + func ListTeams(id int64) ([]*Team, error) + func ListUsers() ([]*User, error) + func ListUsersRange(limit, offset int) ([]*User, error) + func SaveBuild(build *Build) error + func SaveCommit(commit *Commit) error + func SaveMember(user, team int64, role string) error + func SaveRepo(repo *Repo) error + func SaveSettings(settings *Settings) error + func SaveTeam(team *Team) error + func SaveUser(user *User) error + func Set(database *sql.DB) + func SettingsMust() *Settings