Documentation ¶
Index ¶
- func GetPath(filename string) string
- type DB
- func (db *DB) BuildCreate(name, repo, branch string) (string, error)
- func (db *DB) BuildDelete(id string) error
- func (db *DB) BuildGet(id string) (domain.Build, error)
- func (db *DB) BuildList() ([]domain.Build, error)
- func (db *DB) BuildListForRepo(name, branch string) ([]domain.Build, error)
- func (db *DB) BuildLogCreate(buildID, message string) error
- func (db *DB) BuildLogDelete(buildID string) error
- func (db *DB) BuildLogList(buildID string) ([]domain.BuildLog, error)
- func (db *DB) BuildUpdate(id, status string, duration int) error
- func (db *DB) BuildUpdateContainer(id, container string) error
- func (db *DB) BuildUpdateDownload(id, download string) error
- func (db *DB) CreateTables() error
- func (db *DB) KeysCreate(name, data, password string) (string, error)
- func (db *DB) KeysDelete(id string) error
- func (db *DB) KeysGet(id string) (domain.Key, error)
- func (db *DB) KeysList() ([]domain.Key, error)
- func (db *DB) RepoCreate(name, repo, branch, keyID string) (string, error)
- func (db *DB) RepoDelete(id string) error
- func (db *DB) RepoGet(id string) (domain.Repo, error)
- func (db *DB) RepoList(watch bool) ([]domain.Repo, error)
- func (db *DB) RepoUpdateHash(id, hash string) error
- func (db *DB) ReposForKey(keyID string) ([]domain.Repo, error)
- func (db *DB) SettingsCreate(key, name, data string) (string, error)
- func (db *DB) SettingsGet(key, name string) (domain.ConfigSetting, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
DB local database with our custom methods.
func (*DB) BuildCreate ¶
BuildCreate stores a new build request
func (*DB) BuildDelete ¶
BuildDelete delete a build request and its logs
func (*DB) BuildListForRepo ¶
BuildListForRepo get the list of builds for a repo
func (*DB) BuildLogCreate ¶
BuildLogCreate logs a message for a build
func (*DB) BuildLogDelete ¶
BuildLogDelete deletes logs for a build
func (*DB) BuildLogList ¶
BuildLogList lists messages for a build
func (*DB) BuildUpdate ¶
BuildUpdate updates a build request
func (*DB) BuildUpdateContainer ¶
BuildUpdateContainer updates a build request's container name
func (*DB) BuildUpdateDownload ¶
BuildUpdateDownload updates a build request's download file path
func (*DB) CreateTables ¶
CreateTables creates the database tables
func (*DB) KeysCreate ¶
KeysCreate stores a new ssh key
func (*DB) KeysDelete ¶
KeysDelete removes a key from its name
func (*DB) RepoCreate ¶
RepoCreate creates a new repository to watch
func (*DB) RepoDelete ¶
RepoDelete removes a repo from its ID
func (*DB) RepoUpdateHash ¶
RepoUpdateHash updates a repo's last commit hash
func (*DB) ReposForKey ¶
ReposForKey get the list repos using a key
func (*DB) SettingsCreate ¶
SettingsCreate stores a new config setting
func (*DB) SettingsGet ¶
func (db *DB) SettingsGet(key, name string) (domain.ConfigSetting, error)
SettingsGet fetches an existing config setting