Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data UploadResult
- data Uploadable = Uploadable {}
- data Parameters = Parameters SegmentSize Total Happy Required
- defaultParameters :: Parameters
- filesystemUploadable :: Key AES128 -> FilePath -> Parameters -> IO Uploadable
- filesystemUploadableWithConvergence :: ByteString -> FilePath -> Parameters -> IO Uploadable
- filesystemUploadableRandomConvergence :: FilePath -> Parameters -> IO Uploadable
- memoryUploadableWithConvergence :: ByteString -> Integer -> ByteString -> Parameters -> IO Uploadable
- getConvergentKey :: ByteString -> Parameters -> ByteString -> Key AES128
- upload :: [StorageServer] -> Key AES128 -> Parameters -> ([ByteString], Reader) -> IO UploadResult
- store :: [StorageServer] -> Uploadable -> IO UploadResult
- prettyFormatSharemap :: ShareMap -> Text
- adjustSegmentSize :: Parameters -> Size -> Parameters
- encryptAndEncode :: Uploadable -> IO ([ByteString], Reader)
Documentation
data UploadResult Source #
Instances
Show UploadResult Source # | |
Defined in Tahoe.CHK.Upload showsPrec :: Int -> UploadResult -> ShowS # show :: UploadResult -> String # showList :: [UploadResult] -> ShowS # |
data Uploadable Source #
data Parameters Source #
Instances
filesystemUploadable :: Key AES128 -> FilePath -> Parameters -> IO Uploadable Source #
filesystemUploadableWithConvergence :: ByteString -> FilePath -> Parameters -> IO Uploadable Source #
memoryUploadableWithConvergence :: ByteString -> Integer -> ByteString -> Parameters -> IO Uploadable Source #
getConvergentKey :: ByteString -> Parameters -> ByteString -> Key AES128 Source #
:: [StorageServer] | The servers to consider uploading shares to. |
-> Key AES128 | The encryption key (to derive the storage index). |
-> Parameters | The encoding parameters (XXX only for happy, right?) |
-> ([ByteString], Reader) | The share data to upload. |
-> IO UploadResult | Describe the outcome of the upload. |
Given some cleartext, some encoding parameters, and some servers: encrypt, encode, and upload some shares that can later be used to reconstruct the cleartext.
This replaces allmydata.immutable.upload.Uploader.upload.
:: [StorageServer] | The servers to consider using. |
-> Uploadable | The application data to operate on. |
-> IO UploadResult | The result of the attempt. |
Encrypt and encode some application data to some ZFEC shares and upload them to some servers.
prettyFormatSharemap :: ShareMap -> Text Source #
adjustSegmentSize :: Parameters -> Size -> Parameters Source #
:: Uploadable | The application data to encrypt and encode. |
-> IO ([ByteString], Reader) | An action to get an action that can be repeatedly evaluated to get share data. As long as there is more share data, it evaluates to Left. When shares are done, it evaluates to Right. |
Given some cleartext and some encoding parameters: encrypt and encode some shares that can later be used to reconstruct the cleartext.