handa-gdata-0.7.0.3: Library and command-line utility for accessing Google services and APIs.

Safe HaskellNone
LanguageHaskell98

Network.Google.Storage.Encrypted

Contents

Description

Functions for putting and getting GnuPG-encrypted objects in Google Storage.

Synopsis

Object Requests

putEncryptedObject Source

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.

getEncryptedObject Source

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.