X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6e10831be039fb540fc252d35e0ffe673ea8d398..4e26efd8ee2d1896e329dc32488346341557a15b:/services/keepstore/volume.go diff --git a/services/keepstore/volume.go b/services/keepstore/volume.go index f581b28fbf..64fea34bfe 100644 --- a/services/keepstore/volume.go +++ b/services/keepstore/volume.go @@ -5,16 +5,20 @@ package main import ( + "io" "sync/atomic" "time" ) type Volume interface { + // Get a block. IFF the returned error is nil, the caller must + // put the returned slice back into the buffer pool when it's + // finished with it. Get(loc string) ([]byte, error) Put(loc string, block []byte) error Touch(loc string) error Mtime(loc string) (time.Time, error) - Index(prefix string) string + IndexTo(prefix string, writer io.Writer) error Delete(loc string) error Status() *VolumeStatus String() string