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

Safe HaskellNone

Network.Google.Storage.Encrypted

Contents

Description

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

Synopsis

Object Requests

putEncryptedObjectSource

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.

putEncryptedObjectUsingManagerSource

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.

getEncryptedObjectSource

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.

getEncryptedObjectUsingManagerSource

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.