storage-gcp
v0.7.2
Published
Google cloud storage implementation
Downloads
36
Readme
Storage Google Cloud Platform
This package exports an implementation of Storage
that allows using google
cloud platform storage buckets as a generic storage unit.
Usage
import { GoogleCloudStorage, GoogleCloudStorageOptions } from 'storage-gcp'
const options: GoogleCloudStorageOptions = {
// ...
}
const storage = new GoogleCloudStorage(options)
Optional: Register component with StorageFactory
.
import { getStorageFactory } from 'storage-core'
import { GoogleCloudStorage } from 'storage-gcp'
getStorageFactory().register('google-cloud', GoogleCloudStorage)
//...
const options: GoogleCloudStorageOptions = {
// ...
}
const storage = getStorageFactory().create({ type: 'google-cloud', ...options })