Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Backend b where Source #
version :: b -> IO Version Source #
renewLease :: b -> StorageIndex -> [LeaseSecret] -> IO () Source #
Update the lease expiration time on the shares associated with the given storage index.
createImmutableStorageIndex :: b -> StorageIndex -> AllocateBuckets -> IO AllocationResult Source #
writeImmutableShare :: b -> StorageIndex -> ShareNumber -> ShareData -> Maybe ByteRanges -> IO () Source #
adviseCorruptImmutableShare :: b -> StorageIndex -> ShareNumber -> CorruptionDetails -> IO () Source #
getImmutableShareNumbers :: b -> StorageIndex -> IO (CBORSet ShareNumber) Source #
readImmutableShare :: b -> StorageIndex -> ShareNumber -> QueryRange -> IO ShareData Source #
createMutableStorageIndex :: b -> StorageIndex -> AllocateBuckets -> IO AllocationResult Source #
readvAndTestvAndWritev :: b -> StorageIndex -> ReadTestWriteVectors -> IO ReadTestWriteResult Source #
readMutableShare :: b -> StorageIndex -> ShareNumber -> QueryRange -> IO ShareData Source #
getMutableShareNumbers :: b -> StorageIndex -> IO (CBORSet ShareNumber) Source #
adviseCorruptMutableShare :: b -> StorageIndex -> ShareNumber -> CorruptionDetails -> IO () Source #
Instances
writeMutableShare :: Backend b => b -> SlotSecrets -> StorageIndex -> ShareNumber -> ShareData -> Maybe ByteRanges -> IO () Source #