| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Network.Google.Storage.Encrypted
Contents
Description
Functions for putting and getting GnuPG-encrypted objects in Google Storage.
- putEncryptedObject :: [Recipient] -> ProjectId -> StorageAcl -> BucketName -> KeyName -> Maybe MIMEType -> ByteString -> Maybe MD5Info -> AccessToken -> IO [(String, String)]
- putEncryptedObjectUsingManager :: Manager -> [Recipient] -> ProjectId -> StorageAcl -> BucketName -> KeyName -> Maybe MIMEType -> ByteString -> Maybe MD5Info -> AccessToken -> IO [(String, String)]
- getEncryptedObject :: ProjectId -> BucketName -> KeyName -> AccessToken -> IO ByteString
- getEncryptedObjectUsingManager :: Manager -> ProjectId -> BucketName -> KeyName -> AccessToken -> IO ByteString
Object Requests
Arguments
| :: [Recipient] | The recipients for GnuPG encryption of the uploaded files. |
| -> ProjectId | The project ID. |
| -> StorageAcl | The pre-defined access control. |
| -> BucketName | The bucket. |
| -> KeyName | The object's key. |
| -> Maybe MIMEType | The object's MIME type. |
| -> ByteString | The object's data. |
| -> Maybe MD5Info | The MD5 checksum. |
| -> AccessToken | The OAuth 2.0 access token. |
| -> IO [(String, String)] | The action to put the object and return the response header. |
Encrypt an object and upload it.
putEncryptedObjectUsingManager Source
Arguments
| :: Manager | The conduit HTTP manager to use. |
| -> [Recipient] | The recipients for GnuPG encryption of the uploaded files. |
| -> ProjectId | The project ID. |
| -> StorageAcl | The pre-defined access control. |
| -> BucketName | The bucket. |
| -> KeyName | The object's key. |
| -> Maybe MIMEType | The object's MIME type. |
| -> ByteString | The object's data. |
| -> Maybe MD5Info | The MD5 checksum. |
| -> AccessToken | The OAuth 2.0 access token. |
| -> IO [(String, String)] | The action to put the object and return the response header. |
Arguments
| :: ProjectId | The project ID. |
| -> BucketName | The bucket. |
| -> KeyName | The object's key. |
| -> AccessToken | The OAuth 2.0 access token. |
| -> IO ByteString | The action returning the object. |
Downloads an object and decrypts it.
getEncryptedObjectUsingManager Source
Arguments
| :: Manager | The conduit HTTP manager to use. |
| -> ProjectId | The project ID. |
| -> BucketName | The bucket. |
| -> KeyName | The object's key. |
| -> AccessToken | The OAuth 2.0 access token. |
| -> IO ByteString | The action returning the object. |
Downloads an object and decrypts it.