Merge branch 'master' into 14988-wb-rails5-upgrade
[arvados.git] / services / keepstore / volume_test.go
index 9a745b6299df72d7378034da71506730ae166c98..0b8af330fb2d86f771926f07f5f38a34cf09b8ef 100644 (file)
@@ -22,10 +22,14 @@ import (
 // impractical to achieve with a sequence of normal Volume operations.
 type TestableVolume interface {
        Volume
+
        // [Over]write content for a locator with the given data,
        // bypassing all constraints like readonly and serialize.
        PutRaw(locator string, data []byte)
 
+       // Returns the strings that a driver uses to record read/write operations.
+       ReadWriteOperationLabelValues() (r, w string)
+
        // Specify the value Mtime() should return, until the next
        // call to Touch, TouchWithDate, or Put.
        TouchWithDate(locator string, lastPut time.Time)