Versions in this module Expand all Collapse all v0 v0.8.4 Oct 11, 2022 Changes in this version + func CreateBuild(c context.Context, build *model.Build, procs ...*model.Proc) error + func CreateRepo(c context.Context, repo *model.Repo) error + func CreateUser(c context.Context, user *model.User) error + func DeleteRepo(c context.Context, repo *model.Repo) error + func DeleteUser(c context.Context, user *model.User) error + func GetBuild(c context.Context, id int64) (*model.Build, error) + func GetBuildCommit(c context.Context, repo *model.Repo, sha, branch string) (*model.Build, error) + func GetBuildLast(c context.Context, repo *model.Repo, branch string) (*model.Build, error) + func GetBuildLastBefore(c context.Context, repo *model.Repo, branch string, number int64) (*model.Build, error) + func GetBuildList(c context.Context, repo *model.Repo) ([]*model.Build, error) + func GetBuildNumber(c context.Context, repo *model.Repo, num int) (*model.Build, error) + func GetBuildQueue(c context.Context) ([]*model.Feed, error) + func GetBuildRef(c context.Context, repo *model.Repo, ref string) (*model.Build, error) + func GetRepo(c context.Context, id int64) (*model.Repo, error) + func GetRepoName(c context.Context, name string) (*model.Repo, error) + func GetRepoOwnerName(c context.Context, owner, name string) (*model.Repo, error) + func GetUser(c context.Context, id int64) (*model.User, error) + func GetUserCount(c context.Context) (int, error) + func GetUserList(c context.Context) ([]*model.User, error) + func GetUserLogin(c context.Context, login string) (*model.User, error) + func ToContext(c Setter, store Store) + func UpdateBuild(c context.Context, build *model.Build) error + func UpdateRepo(c context.Context, repo *model.Repo) error + func UpdateUser(c context.Context, user *model.User) error + type Setter interface + Set func(string, interface{}) + type Store interface + ConfigCreate func(*model.Config) error + ConfigFind func(*model.Repo, string) (*model.Config, error) + ConfigFindApproved func(*model.Config) (bool, error) + ConfigLoad func(int64) (*model.Config, error) + CreateBuild func(*model.Build, ...*model.Proc) error + CreateRepo func(*model.Repo) error + CreateUser func(*model.User) error + DeleteRepo func(*model.Repo) error + DeleteUser func(*model.User) error + FileCreate func(*model.File, io.Reader) error + FileFind func(*model.Proc, string) (*model.File, error) + FileList func(*model.Build) ([]*model.File, error) + FileRead func(*model.Proc, string) (io.ReadCloser, error) + GetBuild func(int64) (*model.Build, error) + GetBuildCommit func(*model.Repo, string, string) (*model.Build, error) + GetBuildCount func() (int, error) + GetBuildLast func(*model.Repo, string) (*model.Build, error) + GetBuildLastBefore func(*model.Repo, string, int64) (*model.Build, error) + GetBuildList func(*model.Repo) ([]*model.Build, error) + GetBuildNumber func(*model.Repo, int) (*model.Build, error) + GetBuildQueue func() ([]*model.Feed, error) + GetBuildRef func(*model.Repo, string) (*model.Build, error) + GetRepo func(int64) (*model.Repo, error) + GetRepoCount func() (int, error) + GetRepoName func(string) (*model.Repo, error) + GetUser func(int64) (*model.User, error) + GetUserCount func() (int, error) + GetUserList func() ([]*model.User, error) + GetUserLogin func(string) (*model.User, error) + LogFind func(*model.Proc) (io.ReadCloser, error) + LogSave func(*model.Proc, io.Reader) error + PermBatch func(perms []*model.Perm) error + PermDelete func(perm *model.Perm) error + PermFind func(user *model.User, repo *model.Repo) (*model.Perm, error) + PermFlush func(user *model.User, before int64) error + PermUpsert func(perm *model.Perm) error + Ping func() error + ProcChild func(*model.Build, int, string) (*model.Proc, error) + ProcClear func(*model.Build) error + ProcCreate func([]*model.Proc) error + ProcFind func(*model.Build, int) (*model.Proc, error) + ProcList func(*model.Build) ([]*model.Proc, error) + ProcLoad func(int64) (*model.Proc, error) + ProcUpdate func(*model.Proc) error + RegistryCreate func(*model.Registry) error + RegistryDelete func(*model.Registry) error + RegistryFind func(*model.Repo, string) (*model.Registry, error) + RegistryList func(*model.Repo) ([]*model.Registry, error) + RegistryUpdate func(*model.Registry) error + RepoBatch func([]*model.Repo) error + RepoList func(*model.User) ([]*model.Repo, error) + RepoListLatest func(*model.User) ([]*model.Feed, error) + SecretCreate func(*model.Secret) error + SecretDelete func(*model.Secret) error + SecretFind func(*model.Repo, string) (*model.Secret, error) + SecretList func(*model.Repo) ([]*model.Secret, error) + SecretUpdate func(*model.Secret) error + SenderCreate func(*model.Sender) error + SenderDelete func(*model.Sender) error + SenderFind func(*model.Repo, string) (*model.Sender, error) + SenderList func(*model.Repo) ([]*model.Sender, error) + SenderUpdate func(*model.Sender) error + TaskDelete func(string) error + TaskInsert func(*model.Task) error + TaskList func() ([]*model.Task, error) + UpdateBuild func(*model.Build) error + UpdateRepo func(*model.Repo) error + UpdateUser func(*model.User) error + UserFeed func(*model.User) ([]*model.Feed, error) + func FromContext(c context.Context) Store