removed commented code no longer used from datastore
This commit is contained in:
parent
f740bf91cf
commit
4071ea73a0
1 changed files with 8 additions and 31 deletions
|
@ -101,42 +101,11 @@ type Datastore interface {
|
||||||
// named repository.
|
// named repository.
|
||||||
BuildLast(string) (*common.Build, error)
|
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
|
// SetBuild inserts or updates a build for the named
|
||||||
// repository. The build number is incremented and
|
// repository. The build number is incremented and
|
||||||
// assigned to the provided build.
|
// assigned to the provided build.
|
||||||
SetBuild(string, *common.Build) error
|
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)
|
|
||||||
|
|
||||||
// StatusList returned a list of all build statues for
|
|
||||||
// the given repository and build number.
|
|
||||||
////StatusList(string, int) ([]*common.Status, error)
|
|
||||||
|
|
||||||
// SetStatus inserts a new build status for the
|
|
||||||
// named repository and build number. If the status already
|
|
||||||
// exists an error is returned.
|
|
||||||
SetStatus(string, int, *common.Status) error
|
|
||||||
|
|
||||||
// LogReader gets the task logs at index N for
|
|
||||||
// the named repository and build number.
|
|
||||||
LogReader(string, int, int) (io.Reader, error)
|
|
||||||
|
|
||||||
// SetLogs inserts or updates a task logs for the
|
|
||||||
// named repository and build number.
|
|
||||||
SetLogs(string, int, int, []byte) error
|
|
||||||
|
|
||||||
// Experimental
|
|
||||||
|
|
||||||
// SetBuildState updates an existing build's start time,
|
// SetBuildState updates an existing build's start time,
|
||||||
// finish time, duration and state. No other fields are
|
// finish time, duration and state. No other fields are
|
||||||
// updated.
|
// updated.
|
||||||
|
@ -150,4 +119,12 @@ type Datastore interface {
|
||||||
// and task must already exist. If the task does not exist
|
// and task must already exist. If the task does not exist
|
||||||
// an error is returned.
|
// an error is returned.
|
||||||
SetBuildTask(string, int, *common.Task) error
|
SetBuildTask(string, int, *common.Task) error
|
||||||
|
|
||||||
|
// LogReader gets the task logs at index N for
|
||||||
|
// the named repository and build number.
|
||||||
|
LogReader(string, int, int) (io.Reader, error)
|
||||||
|
|
||||||
|
// SetLogs inserts or updates a task logs for the
|
||||||
|
// named repository and build number.
|
||||||
|
SetLogs(string, int, int, []byte) error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue