2960: Refactor keepstore into a streaming server.
[arvados.git] / sdk / go / arvados / api.go
index a6b240e2149d5892d3fc2a2dfdbb3d3b22feb857..e7310818f7d745b55fda3ceed59bf2438bfab9e1 100644 (file)
@@ -242,8 +242,9 @@ type LogoutOptions struct {
 }
 
 type BlockReadOptions struct {
-       Locator string
-       WriteTo io.Writer
+       Locator      string
+       WriteTo      io.Writer
+       LocalLocator func(string)
 }
 
 type BlockWriteOptions struct {
@@ -258,8 +259,9 @@ type BlockWriteOptions struct {
 }
 
 type BlockWriteResponse struct {
-       Locator  string
-       Replicas int
+       Locator        string
+       Replicas       int
+       StorageClasses map[string]int
 }
 
 type WebDAVOptions struct {