some stubs for build config

This commit is contained in:
Brad Rydzewski 2015-04-21 13:08:56 -07:00
parent 3520a295d5
commit 85e17393fa

View file

@ -101,11 +101,19 @@ type Datastore interface {
// named repository.
BuildLast(string) (*common.Build, error)
// BuildConf gets the build configuration file (yaml)
// for the named repository and build number.
// BuildConf(string, int) ([]byte, error)
// SetBuild inserts or updates a build for the named
// repository. The build number is incremented and
// assigned to the provided build.
SetBuild(string, *common.Build) error
// SetBuildConf persists the build configuration file (yaml)
// for the named repository and build number.
// SetBuildConf(string, int) ([]byte, error)
// Status returns the status for the given repository
// and build number.
Status(string, int, string) (*common.Status, error)