# README
juju/blobstore
This package provides a Mongo GridFS-backed blob storage engine.
# Functions
NewGridFS returns a ResourceStorage instance backed by a mongo GridFS.
NewManagedStorage creates a new ManagedStorage using the transaction runner, storing resource entries in the specified database, and resource data in the specified resource storage.
NewPutResponse creates a new putResponse for the given requestId and hashes.
# Variables
ErrRequestExpired is used to indicate that a put request has already expired when an attempt is made to supply a response.
ErrResourceDeleted is used to indicate that a resource was deleted before the put response could be acted on.
ErrResponseMismatch is used to indicate that a put response did not contain the expected checksums.
ErrUploadPending is used to indicate that the underlying resource for a catalog entry is not yet fully uploaded.
# Structs
ManagedResource is a catalog entry for stored data.
PutRequest is to record a request to put a file pending proof of access.
RequestResponse is returned by a put request to inform the caller the data range over which to calculate the hashes for the response.
Resource is a catalog entry for stored data.
# Interfaces
ManagedStorage instances persist data for a bucket, for a user, or globally.
ResourceCatalog instances persist Resources.
ResourceStorage instances save and retrieve data from an underlying storage implementation.