Versions in this module Expand all Collapse all v0 v0.3.1 Oct 26, 2015 v0.3.0 Sep 17, 2015 Changes in this version + func DelCommit(c context.Context, commit *model.Commit) error + func DelPerm(c context.Context, perm *model.Perm) error + func DelRepo(c context.Context, repo *model.Repo) error + func DelUser(c context.Context, user *model.User) error + func GetBuildNumber(c context.Context, commit *model.Commit) (int64, error) + func GetCommit(c context.Context, id int64) (*model.Commit, error) + func GetCommitLast(c context.Context, repo *model.Repo, branch string) (*model.Commit, error) + func GetCommitList(c context.Context, repo *model.Repo, limit, offset int) ([]*model.Commit, error) + func GetCommitListActivity(c context.Context, user *model.User, limit, offset int) ([]*model.CommitRepo, error) + func GetCommitListUser(c context.Context, user *model.User) ([]*model.CommitRepo, error) + func GetCommitPrior(c context.Context, commit *model.Commit) (*model.Commit, error) + func GetCommitSha(c context.Context, repo *model.Repo, branch, sha string) (*model.Commit, error) + func GetPerm(c context.Context, user *model.User, repo *model.Repo) (*model.Perm, error) + func GetRepo(c context.Context, id int64) (*model.Repo, error) + func GetRepoList(c context.Context, user *model.User) ([]*model.Repo, error) + func GetRepoName(c context.Context, remote, owner, name string) (*model.Repo, error) + func GetUser(c context.Context, id int64) (*model.User, error) + func GetUserList(c context.Context) ([]*model.User, error) + func GetUserLogin(c context.Context, remote, login string) (*model.User, error) + func GetUserToken(c context.Context, token string) (*model.User, error) + func KillCommits(c context.Context) error + func NewContext(parent context.Context, ds Datastore) context.Context + func PostCommit(c context.Context, commit *model.Commit) error + func PostPerm(c context.Context, perm *model.Perm) error + func PostRepo(c context.Context, repo *model.Repo) error + func PostUser(c context.Context, user *model.User) error + func PutCommit(c context.Context, commit *model.Commit) error + func PutPerm(c context.Context, perm *model.Perm) error + func PutRepo(c context.Context, repo *model.Repo) error + func PutUser(c context.Context, user *model.User) error + type Commitstore interface + DelCommit func(commit *model.Commit) error + GetBuildNumber func(commit *model.Commit) (int64, error) + GetCommit func(id int64) (*model.Commit, error) + GetCommitLast func(repo *model.Repo, branch string) (*model.Commit, error) + GetCommitList func(repo *model.Repo, limit, offset int) ([]*model.Commit, error) + GetCommitListActivity func(user *model.User, limit, offset int) ([]*model.CommitRepo, error) + GetCommitListUser func(user *model.User) ([]*model.CommitRepo, error) + GetCommitPrior func(commit *model.Commit) (*model.Commit, error) + GetCommitSha func(repo *model.Repo, branch, sha string) (*model.Commit, error) + KillCommits func() error + PostCommit func(commit *model.Commit) error + PutCommit func(commit *model.Commit) error + type Datastore interface + func FromContext(c context.Context) Datastore + type Permstore interface + DelPerm func(perm *model.Perm) error + GetPerm func(user *model.User, repo *model.Repo) (*model.Perm, error) + PostPerm func(perm *model.Perm) error + PutPerm func(perm *model.Perm) error + type Repostore interface + DelRepo func(repo *model.Repo) error + GetRepo func(id int64) (*model.Repo, error) + GetRepoList func(user *model.User) ([]*model.Repo, error) + GetRepoName func(remote, owner, name string) (*model.Repo, error) + PostRepo func(repo *model.Repo) error + PutRepo func(repo *model.Repo) error + type Userstore interface + DelUser func(user *model.User) error + GetUser func(id int64) (*model.User, error) + GetUserList func() ([]*model.User, error) + GetUserLogin func(remote, login string) (*model.User, error) + GetUserToken func(token string) (*model.User, error) + PostUser func(user *model.User) error + PutUser func(user *model.User) error