Renames ResumeWritePosition to CurrentSize in storage driver api

This commit is contained in:
Brian Bland 2014-11-07 12:58:48 -08:00
parent abdf927c40
commit cb1bdacbe3
8 changed files with 24 additions and 24 deletions

View file

@ -119,10 +119,10 @@ func handleRequest(driver storagedriver.StorageDriver, request Request) {
if err != nil {
panic(err)
}
case "ResumeWritePosition":
case "CurrentSize":
path, _ := request.Parameters["Path"].(string)
position, err := driver.ResumeWritePosition(path)
response := ResumeWritePositionResponse{
position, err := driver.CurrentSize(path)
response := CurrentSizeResponse{
Position: position,
Error: ResponseError(err),
}