Documentation ¶
Index ¶
- type BuildDAO
- func (b *BuildDAO) Bootstrap() error
- func (b *BuildDAO) GetLastBuild(repoFullName string) (*models.Build, error)
- func (b *BuildDAO) ListByRepoFullName(repoFullName string) ([]*models.Build, error)
- func (b *BuildDAO) MarkComplete(build *models.Build) error
- func (b *BuildDAO) MarkInProgress(build *models.Build) error
- func (b *BuildDAO) Register(build *models.Build) (*models.Build, error)
- func (b *BuildDAO) SweepExpired(timeout time.Duration) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildDAO ¶
type BuildDAO struct {
// contains filtered or unexported fields
}
BuildDAO provides access to the collection of Builds.
func NewBuildDAO ¶
NewBuildDAO creates a new Build data access object.
func (*BuildDAO) Bootstrap ¶
Bootstrap creates the necessary table to operate builds.
func (*BuildDAO) GetLastBuild ¶
GetLastBuild loads last known build for a repository.
func (*BuildDAO) ListByRepoFullName ¶
ListByRepoFullName all builds for a repository
func (*BuildDAO) MarkComplete ¶
MarkComplete determines a build has completed and update its build information in the database.
func (*BuildDAO) MarkInProgress ¶
MarkInProgress determines a build has started and update its build information in the database.
func (*BuildDAO) Register ¶
Register stores an new build in the database.
Click to show internal directories.
Click to hide internal directories.